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/pearl.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/pearl.html')
-rw-r--r-- | apps/plugins/puzzles/src/pearl.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/pearl.html b/apps/plugins/puzzles/src/pearl.html new file mode 100644 index 0000000000..c366ed3a4c --- /dev/null +++ b/apps/plugins/puzzles/src/pearl.html | |||
@@ -0,0 +1,65 @@ | |||
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>Pearl</title> | ||
7 | <link rel="previous" href="range.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="undead.html"> | ||
12 | </head> | ||
13 | <body> | ||
14 | <p><a href="range.html">Previous</a> | <a href="index.html">Contents</a> | <a href="docindex.html">Index</a> | <a href="undead.html">Next</a></p> | ||
15 | <h1><a name="C36"></a>Chapter 36: <a name="i0"></a>Pearl</h1> | ||
16 | <p> | ||
17 | You have a grid of squares. Your job is to draw lines between the centres of horizontally or vertically adjacent squares, so that the lines form a single closed loop. In the resulting grid, some of the squares that the loop passes through will contain corners, and some will be straight horizontal or vertical lines. (And some squares can be completely empty – the loop doesn't have to pass through every square.) | ||
18 | </p> | ||
19 | <p> | ||
20 | Some of the squares contain black and white circles, which are clues that the loop must satisfy. | ||
21 | </p> | ||
22 | <p> | ||
23 | A black circle in a square indicates that that square is a corner, but neither of the squares adjacent to it in the loop is also a corner. | ||
24 | </p> | ||
25 | <p> | ||
26 | A white circle indicates that the square is a straight edge, but <em>at least one</em> of the squares adjacent to it in the loop is a corner. | ||
27 | </p> | ||
28 | <p> | ||
29 | (In both cases, the clue only constrains the two squares adjacent <em>in the loop</em>, that is, the squares that the loop passes into after leaving the clue square. The squares that are only adjacent <em>in the grid</em> are not constrained.) | ||
30 | </p> | ||
31 | <p> | ||
32 | Credit for this puzzle goes to <a name="i1"></a>Nikoli, who call it ‘Masyu’. <a href="#p0">[19]</a> | ||
33 | </p> | ||
34 | <p> | ||
35 | Thanks to James Harvey for assistance with the implementation. | ||
36 | </p> | ||
37 | <p><a name="p0"></a> | ||
38 | [19] <a href="http://www.nikoli.co.jp/en/puzzles/masyu.html"><code>http://www.nikoli.co.jp/en/puzzles/masyu.html</code></a> (beware of Flash) | ||
39 | </p> | ||
40 | <h2><a name="S36.1"></a>36.1 <a name="i2"></a>Pearl controls</h2> | ||
41 | <p> | ||
42 | Click with the left button on a grid edge to draw a segment of the loop through that edge, or to remove a segment once it is drawn. | ||
43 | </p> | ||
44 | <p> | ||
45 | Drag with the left button through a series of squares to draw more than one segment of the loop in one go. Alternatively, drag over an existing part of the loop to undraw it, or to undraw part of it and then go in a different direction. | ||
46 | </p> | ||
47 | <p> | ||
48 | Click with the right button on a grid edge to mark it with a cross, indicating that you are sure the loop does not go through that edge. (For instance, if you have decided which of the squares adjacent to a white clue has to be a corner, but don't yet know which way the corner turns, you might mark the one way it <em>can't</em> go with a cross.) | ||
49 | </p> | ||
50 | <p> | ||
51 | Alternatively, use the cursor keys to move the cursor. Use the Enter key to begin and end keyboard ‘drag’ operations. Use the Space, Escape or Backspace keys to cancel the drag. Or, hold Control while dragging with the cursor keys to toggle segments as you move between squares. | ||
52 | </p> | ||
53 | <p> | ||
54 | Pressing Control-Shift-arrowkey or Shift-arrowkey simulates a left or right click, respectively, on the edge in the direction of the key. | ||
55 | </p> | ||
56 | <p> | ||
57 | (All the actions described in <a href="common.html#S2.1">section 2.1</a> are also available.) | ||
58 | </p> | ||
59 | <h2><a name="S36.2"></a>36.2 <a name="i3"></a>Pearl parameters</h2> | ||
60 | <p> | ||
61 | These parameters are available from the ‘Custom...’ option on the ‘Type’ menu. | ||
62 | </p> | ||
63 | |||
64 | <hr><address></address></body> | ||
65 | </html> | ||