summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/cube.html
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/cube.html')
-rw-r--r--apps/plugins/puzzles/src/cube.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/cube.html b/apps/plugins/puzzles/src/cube.html
new file mode 100644
index 0000000000..0e32be600e
--- /dev/null
+++ b/apps/plugins/puzzles/src/cube.html
@@ -0,0 +1,57 @@
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>Cube</title>
7<link rel="previous" href="net.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="fifteen.html">
12</head>
13<body>
14<p><a href="net.html">Previous</a> | <a href="index.html">Contents</a> | <a href="docindex.html">Index</a> | <a href="fifteen.html">Next</a></p>
15<h1><a name="C4"></a>Chapter 4: <a name="i0"></a>Cube</h1>
16<p>
17This is another one I originally saw as a web game. This one was a Java game <a href="#p0">[2]</a>, by Paul Scott. You have a grid of 16 squares, six of which are blue; on one square rests a cube. Your move is to use the arrow keys to roll the cube through 90 degrees so that it moves to an adjacent square. If you roll the cube on to a blue square, the blue square is picked up on one face of the cube; if you roll a blue face of the cube on to a non-blue square, the blueness is put down again. (In general, whenever you roll the cube, the two faces that come into contact swap colours.) Your job is to get all six blue squares on to the six faces of the cube at the same time. Count your moves and try to do it in as few as possible.
18</p>
19<p>
20Unlike the original Java game, my version has an additional feature: once you've mastered the game with a cube rolling on a square grid, you can change to a triangular grid and roll any of a tetrahedron, an octahedron or an icosahedron.
21</p>
22<p><a name="p0"></a>
23[2] <a href="http://www3.sympatico.ca/paulscott/cube/cube.htm"><code>http://www3.sympatico.ca/paulscott/cube/cube.htm</code></a>
24</p>
25<h2><a name="S4.1"></a>4.1 <a name="i1"></a>Cube controls</h2>
26<p>
27This game can be played with either the keyboard or the mouse.
28</p>
29<p>
30Left-clicking anywhere on the window will move the cube (or other solid) towards the mouse pointer.
31</p>
32<p>
33The arrow keys can also used to roll the cube on its square grid in the four cardinal directions. On the triangular grids, the mapping of arrow keys to directions is more approximate. Vertical movement is disallowed where it doesn't make sense. The four keys surrounding the arrow keys on the numeric keypad (&#8216;7&#8217;, &#8216;9&#8217;, &#8216;1&#8217;, &#8216;3&#8217;) can be used for diagonal movement.
34</p>
35<p>
36(All the actions described in <a href="common.html#S2.1">section 2.1</a> are also available.)
37</p>
38<h2><a name="S4.2"></a>4.2 <a name="i2"></a>Cube parameters</h2>
39<p>
40These parameters are available from the &#8216;Custom...&#8217; option on the &#8216;Type&#8217; menu.
41</p>
42<dl><dt>
43<em>Type of solid</em>
44</dt>
45<dd>
46Selects the solid to roll (and hence the shape of the grid): tetrahedron, cube, octahedron, or icosahedron.
47</dd>
48<dt>
49<em>Width / top</em>, <em>Height / bottom</em>
50</dt>
51<dd>
52On a square grid, horizontal and vertical dimensions. On a triangular grid, the number of triangles on the top and bottom rows respectively.
53</dd>
54</dl>
55
56<hr><address></address></body>
57</html>