Toggle Squares Game
This game originated from a Java game by Dr. Ken Housley, whose personal site has since gone offline. This implementation is JavaScript-based.
Rules
You are presented with a board of squares that can be either of two colours. The objective is to convert all squares to the same colour.
By clicking on a square, you toggle the colour of the square as well as that of all the neighbouring squares (without wrapping and including the diagonal ones). As a result, clicking on side or corner or side squares will toggle only 6 or 4 squares.
Links
- Mathematical Analysis of the game - also describes an efficient algorithm that can be done by a human without extra aids.
- A similar game called "LightsOut" - this time without toggling the diagonals.