diff options
author | Franklin Wei <git@fwei.tk> | 2017-04-29 18:21:56 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-04-29 18:24:42 -0400 |
commit | 881746789a489fad85aae8317555f73dbe261556 (patch) | |
tree | cec2946362c4698c8db3c10f3242ef546c2c22dd /apps/plugins/puzzles/src/pegs.html | |
parent | 03dd4b92be7dcd5c8ab06da3810887060e06abd5 (diff) | |
download | rockbox-881746789a489fad85aae8317555f73dbe261556.tar.gz rockbox-881746789a489fad85aae8317555f73dbe261556.zip |
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
Diffstat (limited to 'apps/plugins/puzzles/src/pegs.html')
-rw-r--r-- | apps/plugins/puzzles/src/pegs.html | 54 |
1 files changed, 54 insertions, 0 deletions
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 @@ | |||
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||
2 | "http://www.w3.org/TR/html4/strict.dtd"> | ||
3 | <html> | ||
4 | <head> | ||
5 | <meta http-equiv="content-type" content="text/html; charset=US-ASCII"> | ||
6 | <title>Pegs</title> | ||
7 | <link rel="previous" href="guess.html"> | ||
8 | <link rel="ToC" href="index.html"> | ||
9 | <link rel="up" href="index.html"> | ||
10 | <link rel="index" href="docindex.html"> | ||
11 | <link rel="next" href="dominosa.html"> | ||
12 | </head> | ||
13 | <body> | ||
14 | <p><a href="guess.html">Previous</a> | <a href="index.html">Contents</a> | <a href="docindex.html">Index</a> | <a href="dominosa.html">Next</a></p> | ||
15 | <h1><a name="C16"></a>Chapter 16: <a name="i0"></a>Pegs</h1> | ||
16 | <p> | ||
17 | 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. | ||
18 | </p> | ||
19 | <p> | ||
20 | This game, best known as <a name="i1"></a>‘Peg Solitaire’, is possibly one of the oldest puzzle games still commonly known. | ||
21 | </p> | ||
22 | <h2><a name="S16.1"></a>16.1 <a name="i2"></a>Pegs controls</h2> | ||
23 | <p> | ||
24 | 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. | ||
25 | </p> | ||
26 | <p> | ||
27 | 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. | ||
28 | </p> | ||
29 | <p> | ||
30 | 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). | ||
31 | </p> | ||
32 | <p> | ||
33 | (All the actions described in <a href="common.html#S2.1">section 2.1</a> are also available.) | ||
34 | </p> | ||
35 | <h2><a name="S16.2"></a>16.2 <a name="i3"></a>Pegs parameters</h2> | ||
36 | <p> | ||
37 | These parameters are available from the ‘Custom...’ option on the ‘Type’ menu. | ||
38 | </p> | ||
39 | <dl><dt> | ||
40 | <em>Width</em>, <em>Height</em> | ||
41 | </dt> | ||
42 | <dd> | ||
43 | Size of grid in holes. | ||
44 | </dd> | ||
45 | <dt> | ||
46 | <em>Board type</em> | ||
47 | </dt> | ||
48 | <dd> | ||
49 | 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). | ||
50 | </dd> | ||
51 | </dl> | ||
52 | |||
53 | <hr><address></address></body> | ||
54 | </html> | ||