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/fifteen.html | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 apps/plugins/puzzles/src/fifteen.html (limited to 'apps/plugins/puzzles/src/fifteen.html') diff --git a/apps/plugins/puzzles/src/fifteen.html b/apps/plugins/puzzles/src/fifteen.html new file mode 100644 index 0000000000..05d3661dad --- /dev/null +++ b/apps/plugins/puzzles/src/fifteen.html @@ -0,0 +1,41 @@ + + + + +Fifteen + + + + + + + +

Previous | Contents | Index | Next

+

Chapter 5: Fifteen

+

+The old ones are the best: this is the good old ‘15-puzzle’ with sliding tiles. You have a 4×4 square grid; 15 squares contain numbered tiles, and the sixteenth is empty. Your move is to choose a tile next to the empty space, and slide it into the space. The aim is to end up with the tiles in numerical order, with the space in the bottom right (so that the top row reads 1,2,3,4 and the bottom row reads 13,14,15,space). +

+

5.1 Fifteen controls

+

+This game can be controlled with the mouse or the keyboard. +

+

+A left-click with the mouse in the row or column containing the empty space will move as many tiles as necessary to move the space to the mouse pointer. +

+

+The arrow keys will move a tile adjacent to the space in the direction indicated (moving the space in the opposite direction). +

+

+Pressing ‘h’ will make a suggested move. Pressing ‘h’ enough times will solve the game, but it may scramble your progress while doing so. +

+

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

+

5.2 Fifteen parameters

+

+The only options available from the ‘Custom...’ option on the ‘Type’ menu are Width and Height, which are self-explanatory. (Once you've changed these, it's not a ‘15-puzzle’ any more, of course!) +

+ +
+ -- cgit v1.2.3