Javascript Lights Out Cube

Javascript Lights Out Cube

Buttons Pressed


Current Mode

Instructions
This is a simulation of a Lights Out Cube. You have to imagine the above folded into a cube shape to be able to work out which buttons are neighbours. Clicking on a button will toggle the state of that button and of all the surrounding buttons (any buttons that are on will turn off and vice versa). The aim of the game is to switch all of the lights off.
If you want to start the current game again, press the reset button
To see the shortest solution, press the solve button. The highlighted buttons are the ones you need to push. To resume play, press the solve button again.
To play a new, random puzzle - press the New Game button

Enter Your Own Puzzle

Press the mode button to change to "create" mode. You can then turn the lights on
and off individually. You can check if your puzzle is solvable by pressing the solve
button. If a solution is shown - you're OK. To clear the board, press the clear button.
To change back to "play" mode, press the mode button again.

Comments
It's actually quite difficult to play Lights Out Cube like this (as you may have noticed!). The main reason I've put this up is for the solver. To use this program to solve an actual problem on a real Lights Out cube you need to know the orientation so here goes - Hold the cube with face 1 on top, and face 4 pointing towards you. Face 1 is the central face in the above diagram, with face 4 underneath it and face 3 above. You should now be able to follow the solutions on a real cube!

I do want to improve the look (and playability) of this game, so if you have any suggestions, please contact me