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: 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.