summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/fifteen.html
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-04-29 18:21:56 -0400
committerFranklin Wei <git@fwei.tk>2017-04-29 18:24:42 -0400
commit881746789a489fad85aae8317555f73dbe261556 (patch)
treecec2946362c4698c8db3c10f3242ef546c2c22dd /apps/plugins/puzzles/src/fifteen.html
parent03dd4b92be7dcd5c8ab06da3810887060e06abd5 (diff)
downloadrockbox-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/fifteen.html')
-rw-r--r--apps/plugins/puzzles/src/fifteen.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/fifteen.html b/apps/plugins/puzzles/src/fifteen.html
new file mode 100644
index 0000000000..05d3661dad
--- /dev/null
+++ b/apps/plugins/puzzles/src/fifteen.html
@@ -0,0 +1,41 @@
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>Fifteen</title>
7<link rel="previous" href="cube.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="sixteen.html">
12</head>
13<body>
14<p><a href="cube.html">Previous</a> | <a href="index.html">Contents</a> | <a href="docindex.html">Index</a> | <a href="sixteen.html">Next</a></p>
15<h1><a name="C5"></a>Chapter 5: <a name="i0"></a>Fifteen</h1>
16<p>
17The old ones are the best: this is the good old &#8216;<a name="i1"></a>15-puzzle&#8217; with sliding tiles. You have a 4&#215;4 square grid; 15 squares contain numbered tiles, and the sixteenth is empty. Your move is to choose a tile next to the empty space, and slide it into the space. The aim is to end up with the tiles in numerical order, with the space in the bottom right (so that the top row reads 1,2,3,4 and the bottom row reads 13,14,15,<em>space</em>).
18</p>
19<h2><a name="S5.1"></a>5.1 <a name="i2"></a>Fifteen controls</h2>
20<p>
21This game can be controlled with the mouse or the keyboard.
22</p>
23<p>
24A left-click with the mouse in the row or column containing the empty space will move as many tiles as necessary to move the space to the mouse pointer.
25</p>
26<p>
27The arrow keys will move a tile adjacent to the space in the direction indicated (moving the space in the <em>opposite</em> direction).
28</p>
29<p>
30Pressing &#8216;h&#8217; will make a suggested move. Pressing &#8216;h&#8217; enough times will solve the game, but it may scramble your progress while doing so.
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="S5.2"></a>5.2 <a name="i3"></a>Fifteen parameters</h2>
36<p>
37The only options available from the &#8216;Custom...&#8217; option on the &#8216;Type&#8217; menu are <em>Width</em> and <em>Height</em>, which are self-explanatory. (Once you've changed these, it's not a &#8216;15-puzzle&#8217; any more, of course!)
38</p>
39
40<hr><address></address></body>
41</html>