The colors are represented through the following constants: BLUE, WHITE and RED. You can use them directly in your code.
This world is very simple, with only 5 provided functions.
[!java|c]void [/!]alterna([!java|c]int [/!]x[!scala]:Int[/!], [!java|c]int [/!]y[!scala]:Int[/!])Swap the lines number
x
and y
.
[!java|c]int [/!]getTamanho() [!scala]:Int[/!]Returns the amount of lines on this flag.
[!java|c]int [/!]getCor([!java|c]int [/!]linha[!scala]:Int[/!]) [!scala]:Int[/!]Returns the color of the given line.
[!java]boolean [/!][!c]int [/!]estáOrdenado() [!scala]:Boolean[/!]Returns whether the flag is sorted.
[!java]boolean [/!][!c]int [/!]estáSelecionado() [!scala]:Boolean[/!]Returns whether the current world is selected in the interface.