From 881746789a489fad85aae8317555f73dbe261556 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 29 Apr 2017 18:21:56 -0400 Subject: 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 --- apps/plugins/puzzles/src/slant.html | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 apps/plugins/puzzles/src/slant.html (limited to 'apps/plugins/puzzles/src/slant.html') 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 @@ + + + + +Slant + + + + + + + +

Previous | Contents | Index | Next

+

Chapter 20: Slant

+

+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: +

+ +

+Credit for this puzzle goes to Nikoli [8]. +

+

+[8] http://www.nikoli.co.jp/ja/puzzles/gokigen_naname (in Japanese) +

+

20.1 Slant controls

+

+Left-clicking in a blank square will place a \ 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 / in it (leaning to the right, running from top right to bottom left). +

+

+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 \ to / back to blank, and if you right-click repeatedly the square will change from blank to / to \ back to blank. (Therefore, you can play the game entirely with one button if you need to.) +

+

+You can also use the cursor keys to move around the grid. Pressing the return or space keys will place a \ or a /, respectively, and will then cycle them as above. You can also press / or \ to place a / or \, respectively, independent of what is already in the cursor square. Backspace removes any line from the cursor square. +

+

+(All the actions described in section 2.1 are also available.) +

+

20.2 Slant parameters

+

+These parameters are available from the ‘Custom...’ option on the ‘Type’ menu. +

+
+Width, Height +
+
+Size of grid in squares. +
+
+Difficulty +
+
+Controls the difficulty of the generated puzzle. At Hard level, you are required to do deductions based on knowledge of relationships 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. +
+
+ +
+ -- cgit v1.2.3