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/range.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/range.html')
-rw-r--r-- | apps/plugins/puzzles/src/range.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/range.html b/apps/plugins/puzzles/src/range.html new file mode 100644 index 0000000000..7a93216805 --- /dev/null +++ b/apps/plugins/puzzles/src/range.html | |||
@@ -0,0 +1,67 @@ | |||
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>Range</title> | ||
7 | <link rel="previous" href="signpost.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="pearl.html"> | ||
12 | </head> | ||
13 | <body> | ||
14 | <p><a href="signpost.html">Previous</a> | <a href="index.html">Contents</a> | <a href="docindex.html">Index</a> | <a href="pearl.html">Next</a></p> | ||
15 | <h1><a name="C35"></a>Chapter 35: <a name="i0"></a>Range</h1> | ||
16 | <p> | ||
17 | You have a grid of squares; some squares contain numbers. Your job is to colour some of the squares black, such that several criteria are satisfied: | ||
18 | </p> | ||
19 | <ul><li> | ||
20 | no square with a number is coloured black. | ||
21 | </li> | ||
22 | <li> | ||
23 | no two black squares are adjacent (horizontally or vertically). | ||
24 | </li> | ||
25 | <li> | ||
26 | for any two white squares, there is a path between them using only white squares. | ||
27 | </li> | ||
28 | <li> | ||
29 | for each square with a number, that number denotes the total number of white squares reachable from that square going in a straight line in any horizontal or vertical direction until hitting a wall or a black square; the square with the number is included in the total (once). | ||
30 | </li> | ||
31 | </ul> | ||
32 | <p> | ||
33 | For instance, a square containing the number one must have four black squares as its neighbours by the last criterion; but then it's impossible for it to be connected to any outside white square, which violates the second to last criterion. So no square will contain the number one. | ||
34 | </p> | ||
35 | <p> | ||
36 | Credit for this puzzle goes to <a name="i1"></a>Nikoli, who have variously called it ‘Kurodoko’, ‘Kuromasu’ or ‘Where is Black Cells’. <a href="#p0">[18]</a>. | ||
37 | </p> | ||
38 | <p> | ||
39 | Range was contributed to this collection by Jonas Kölker. | ||
40 | </p> | ||
41 | <p><a name="p0"></a> | ||
42 | [18] <a href="http://www.nikoli.co.jp/en/puzzles/where_is_black_cells.html"><code>http://www.nikoli.co.jp/en/puzzles/where_is_black_cells.html</code></a> | ||
43 | </p> | ||
44 | <h2><a name="S35.1"></a>35.1 <a name="i2"></a>Range controls</h2> | ||
45 | <p> | ||
46 | Click with the left button to paint a square black, or with the right button to mark a square with a dot to indicate that you are sure it should <em>not</em> be painted black. Repeated clicking with either button will cycle the square through the three possible states (filled, dotted or empty) in opposite directions. | ||
47 | </p> | ||
48 | <p> | ||
49 | You can also use the cursor keys to move around the grid squares. Pressing Return does the same as clicking with the left button, while pressing Space does the same as a right button click. Moving with the cursor keys while holding Shift will place dots in all squares that are moved through. | ||
50 | </p> | ||
51 | <p> | ||
52 | (All the actions described in <a href="common.html#S2.1">section 2.1</a> are also available.) | ||
53 | </p> | ||
54 | <h2><a name="S35.2"></a>35.2 <a name="i3"></a>Range parameters</h2> | ||
55 | <p> | ||
56 | These parameters are available from the ‘Custom...’ option on the ‘Type’ menu. | ||
57 | </p> | ||
58 | <dl><dt> | ||
59 | <em>Width</em>, <em>Height</em> | ||
60 | </dt> | ||
61 | <dd> | ||
62 | Size of grid in squares. | ||
63 | </dd> | ||
64 | </dl> | ||
65 | |||
66 | <hr><address></address></body> | ||
67 | </html> | ||