N M row1 row2 rowNFor instance, the input for one move might be as follows:
10 10 .......... .......... .......... .......... .......... .......... .......... .......... .......... .......... 2 4 XXXX. ...XXAfter reading the information for each placement, you should write a single line with three integers, indicating the location to place the piece. These three integers should be in the same order that you would return them from your placeTile method. After each placement, you should read the board state and next piece from standard in.
main() while(true) board = readStringArray(); piece = readStringArray(); placement = placeTile(board,piece) if(length(placement) == 0) exit() print(placement[0]+" "+placement[1]+" "+placement[2]+"\n")
-height <height> | Specify the initial height of the window |
-width <width> | Specify the initial width of the window |
-cols <r> | Specify the number of columns |
-rows <c> | Specify the number of rows |
-seed <seed> | Specify the initial seed |
-speed <speed> | Specify the initial speed |
-exec <command> | Specify the command to execute your code |
-novis | Run the test case without the visualizer (requires -exec, implies -go) |
-go | Start running immediately (requires -exec) |
-drop | Tell the visualizer to drop frames if it can't keep up |