Files
Tester.jar
Source Code
Palette
Usage
To use the visualizer for testing your solution locally, you'll have to adopt your solution to read
the parameters from standard in and write the output to standard out.
This doesn't affect the functioning of the solution you submit to our server.
You may also play manually in a browser.
Your program should first read the number of layers on the board K,
the number of rows of the board R and R strings representing the elements of board
(in order, each string in a separate line).
Second, output the result of call to start.
After this, you should repeatedly read the value of revealed,
and output the string representing your move.
Remember to flush standard output after writing to it.
To do this, you should implement the following pseudocode:
K = int(readLine())
R = int(readLine())
for (i=0; i<R; i++)
board[i] = readLine()
printLine(start(K, board))
flush(stdout)
while (true)
revealed = readLine()
printLine(click(revealed))
flush(stdout)
To run the visualizer with your solution, you should run:
java -jar Visualizer.jar -exec "<command>" -seed <seed>
Here, <command> is the command to execute your program,
and <seed> is seed for test case generation.
Additionally you can use the following options:
-
-novis to turn off the visualization.
-
-delay <ms> to set the delay between visualizing moves, in milliseconds.
-
-palette <file> to set the colors used for visualizing the tiles of different layers.
<file> should contain 10 hexadecimal colors, each color in a separate line.
-
-manual to play the game yourself. Red and green highlights show the current cell
and the cells which can be clicked next. Top right corner shows the tile which was just removed
(the one which defines next click), and below it the colors used to denote layers are listed.
Finally, you can print any debug information of your solution to standard error,
and it will be forwarded to the standard out of the visualizer.