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

Previous | Contents | Index | Next

+

Chapter 16: Pegs

+

+A number of pegs are placed in holes on a board. You can remove a peg by jumping an adjacent peg over it (horizontally or vertically) to a vacant hole on the other side. Your aim is to remove all but one of the pegs initially present. +

+

+This game, best known as ‘Peg Solitaire’, is possibly one of the oldest puzzle games still commonly known. +

+

16.1 Pegs controls

+

+To move a peg, drag it with the mouse from its current position to its final position. If the final position is exactly two holes away from the initial position, is currently unoccupied by a peg, and there is a peg in the intervening square, the move will be permitted and the intervening peg will be removed. +

+

+Vacant spaces which you can move a peg into are marked with holes. A space with no peg and no hole is not available for moving at all: it is an obstacle which you must work around. +

+

+You can also use the cursor keys to move a position indicator around the board. Pressing the return key while over a peg, followed by a cursor key, will jump the peg in that direction (if that is a legal move). +

+

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

+

16.2 Pegs parameters

+

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

+
+Width, Height +
+
+Size of grid in holes. +
+
+Board type +
+
+Controls whether you are given a board of a standard shape or a randomly generated shape. The two standard shapes currently supported are ‘Cross’ and ‘Octagon’ (also commonly known as the English and European traditional board layouts respectively). Selecting ‘Random’ will give you a different board shape every time (but always one that is known to have a solution). +
+
+ +
+ -- cgit v1.2.3