# PancakeWorld

This universe is very simple, with only five functions provided.

    [!java|c]int [/!]getStackSize()  [!scala]:Int[/!]

Returns the size of the stack, that is the amount of pancakes it contains.

    [!java|c]int [/!]getPancakeRadius([!java|c]int [/!]rank[!scala]:Int[/!])  [!scala]:Int[/!]

Returns the radius of the pancake passed as argument, with the rank of the top-most pancake being 0.

    [!java]boolean [/!][!c]int [/!]isPancakeUpsideDown([!java|c]int [/!]rank[!scala]:Int[/!])   [!scala]:Boolean[/!]

Returns whether the pancake passed as argument upside-down, that is, if its burned side is on top. As usual, the top-most pancake is of rank 0.

    [!java|c]void [/!]flip([!java|c]int [/!]amount[!scala]:Int[/!])

Flips the `amount` first pancakes composing the stack, from the top of it.

    [!java]boolean [/!][!c]int [/!]isSorted()   [!scala]:Boolean[/!]

Returns whether the pancake stack is correctly sorted.

    [!java]boolean [/!][!c]int [/!]isSelected()   [!scala]:Boolean[/!]

Returns whether the current world is selected in the graphical interface.