Rules for Lights Out
Switch a cell to toggle it and its immediate neighbours. The objective is to turn all cells off within certain number of moves.
|new x||create a x times x board|
|init x y||initialize the board with (x, y) turned on
(you can provide multiple (x, y)’s). End with -1 -1.
|game||set moves left|
|switch x y||toggle (x, y)|
|neighbours||print neighbours of each cell|