From 881746789a489fad85aae8317555f73dbe261556 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 29 Apr 2017 18:21:56 -0400 Subject: puzzles: refactor and resync with upstream This brings puzzles up-to-date with upstream revision 2d333750272c3967cfd5cd3677572cddeaad5932, though certain changes made by me, including cursor-only Untangle and some compilation fixes remain. Upstream code has been moved to its separate subdirectory and future syncs can be done by simply copying over the new sources. Change-Id: Ia6506ca5f78c3627165ea6791d38db414ace0804 --- apps/plugins/puzzles/src/flip.html | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 apps/plugins/puzzles/src/flip.html (limited to 'apps/plugins/puzzles/src/flip.html') diff --git a/apps/plugins/puzzles/src/flip.html b/apps/plugins/puzzles/src/flip.html new file mode 100644 index 0000000000..52790dba6c --- /dev/null +++ b/apps/plugins/puzzles/src/flip.html @@ -0,0 +1,54 @@ + + + + +Flip + + + + + + + +

Previous | Contents | Index | Next

+

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.) +

+

+(All the actions described in section 2.1 are also available.) +

+

14.2 Flip parameters

+

+These parameters are available from the ‘Custom...’ option on the ‘Type’ menu. +

+
+Width, Height +
+
+Size of grid in squares. +
+
+Shape type +
+
+This control determines the shape of the region which is flipped by clicking in any given square. The default setting, ‘Crosses’, causes every square to flip itself and its four immediate neighbours (or three or two if it's at an edge or corner). The other setting, ‘Random’, causes a random shape to be chosen for every square, so the game is different every time. +
+
+ +
+ -- cgit v1.2.3