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/slant.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/slant.html')
-rw-r--r-- | apps/plugins/puzzles/src/slant.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/slant.html b/apps/plugins/puzzles/src/slant.html new file mode 100644 index 0000000000..79ba076d66 --- /dev/null +++ b/apps/plugins/puzzles/src/slant.html | |||
@@ -0,0 +1,64 @@ | |||
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>Slant</title> | ||
7 | <link rel="previous" href="blackbox.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="lightup.html"> | ||
12 | </head> | ||
13 | <body> | ||
14 | <p><a href="blackbox.html">Previous</a> | <a href="index.html">Contents</a> | <a href="docindex.html">Index</a> | <a href="lightup.html">Next</a></p> | ||
15 | <h1><a name="C20"></a>Chapter 20: <a name="i0"></a>Slant</h1> | ||
16 | <p> | ||
17 | You have a grid of squares. Your aim is to draw a diagonal line through each square, and choose which way each line slants so that the following conditions are met: | ||
18 | </p> | ||
19 | <ul><li> | ||
20 | The diagonal lines never form a loop. | ||
21 | </li> | ||
22 | <li> | ||
23 | Any point with a circled number has precisely that many lines meeting at it. (Thus, a 4 is the centre of a cross shape, whereas a zero is the centre of a diamond shape – or rather, a partial diamond shape, because a zero can never appear in the middle of the grid because that would immediately cause a loop.) | ||
24 | </li> | ||
25 | </ul> | ||
26 | <p> | ||
27 | Credit for this puzzle goes to <a name="i1"></a>Nikoli <a href="#p0">[8]</a>. | ||
28 | </p> | ||
29 | <p><a name="p0"></a> | ||
30 | [8] <a href="http://www.nikoli.co.jp/ja/puzzles/gokigen_naname"><code>http://www.nikoli.co.jp/ja/puzzles/gokigen_naname</code></a> (in Japanese) | ||
31 | </p> | ||
32 | <h2><a name="S20.1"></a>20.1 <a name="i2"></a>Slant controls</h2> | ||
33 | <p> | ||
34 | Left-clicking in a blank square will place a <code>\</code> in it (a line leaning to the left, i.e. running from the top left of the square to the bottom right). Right-clicking in a blank square will place a <code>/</code> in it (leaning to the right, running from top right to bottom left). | ||
35 | </p> | ||
36 | <p> | ||
37 | Continuing to click either button will cycle between the three possible square contents. Thus, if you left-click repeatedly in a blank square it will change from blank to <code>\</code> to <code>/</code> back to blank, and if you right-click repeatedly the square will change from blank to <code>/</code> to <code>\</code> back to blank. (Therefore, you can play the game entirely with one button if you need to.) | ||
38 | </p> | ||
39 | <p> | ||
40 | You can also use the cursor keys to move around the grid. Pressing the return or space keys will place a <code>\</code> or a <code>/</code>, respectively, and will then cycle them as above. You can also press <code>/</code> or <code>\</code> to place a <code>/</code> or <code>\</code>, respectively, independent of what is already in the cursor square. Backspace removes any line from the cursor square. | ||
41 | </p> | ||
42 | <p> | ||
43 | (All the actions described in <a href="common.html#S2.1">section 2.1</a> are also available.) | ||
44 | </p> | ||
45 | <h2><a name="S20.2"></a>20.2 <a name="i3"></a>Slant parameters</h2> | ||
46 | <p> | ||
47 | These parameters are available from the ‘Custom...’ option on the ‘Type’ menu. | ||
48 | </p> | ||
49 | <dl><dt> | ||
50 | <em>Width</em>, <em>Height</em> | ||
51 | </dt> | ||
52 | <dd> | ||
53 | Size of grid in squares. | ||
54 | </dd> | ||
55 | <dt> | ||
56 | <em>Difficulty</em> | ||
57 | </dt> | ||
58 | <dd> | ||
59 | Controls the difficulty of the generated puzzle. At Hard level, you are required to do deductions based on knowledge of <em>relationships</em> between squares rather than always being able to deduce the exact contents of one square at a time. (For example, you might know that two squares slant in the same direction, even if you don't yet know what that direction is, and this might enable you to deduce something about still other squares.) Even at Hard level, guesswork and backtracking should never be necessary. | ||
60 | </dd> | ||
61 | </dl> | ||
62 | |||
63 | <hr><address></address></body> | ||
64 | </html> | ||