go back <--~

flip

is this even displaying? why not?? do you, like, not have html5





the following is copied from simon tatham's manual from the original implementation. ive struck out things that ya can't do in this version

Chapter 14: Flip

You have a grid of squares, some light and some dark. Your aim is to light all the squares up at the same time. You can choose any square and flip its state from light to dark or dark to light, but when you do so, other squares around it change state as well.

Each square contains a small diagram showing which other squares change when you flip it.

14.1 Flip controls

This game can be played with either the keyboard or the mouse.

Left-click in a square to flip it and its associated squares, or use the cursor keys to choose a square and the space bar or Enter key to flip.

If you use the ‘Solve’ function on this game, it will mark some of the squares in red. If you click once in every square with a red mark, the game should be solved. (If you click in a square without a red mark, a red mark will appear in it to indicate that you will need to reverse that operation to reach the solution.)

changelog

hi its tala, update, the solve button now always shows the simplest solution! it took as much work to do that as to make the rest of the game lmao.

update 2: im tryna redo the solver again with like, systems of linear equations but its hard so i added a fade to the squares. fun!

the javascript source code


some precomputing source code for the solver written in python