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/tents.html | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 apps/plugins/puzzles/src/tents.html (limited to 'apps/plugins/puzzles/src/tents.html') diff --git a/apps/plugins/puzzles/src/tents.html b/apps/plugins/puzzles/src/tents.html new file mode 100644 index 0000000000..c503f008d8 --- /dev/null +++ b/apps/plugins/puzzles/src/tents.html @@ -0,0 +1,67 @@ + + + + +Tents + + + + + + + +

Previous | Contents | Index | Next

+

Chapter 25: Tents

+

+You have a grid of squares, some of which contain trees. Your aim is to place tents in some of the remaining squares, in such a way that the following conditions are met: +

+ +

+This puzzle can be found in several places on the Internet, and was brought to my attention by e-mail. I don't know who I should credit for inventing it. +

+

25.1 Tents controls

+

+Left-clicking in a blank square will place a tent in it. Right-clicking in a blank square will colour it green, indicating that you are sure it isn't a tent. Clicking either button in an occupied square will clear it. +

+

+If you drag with the right button along a row or column, every blank square in the region you cover will be turned green, and no other squares will be affected. (This is useful for clearing the remainder of a row once you have placed all its tents.) +

+

+You can also use the cursor keys to move around the grid. Pressing the return key over an empty square will place a tent, and pressing the space bar over an empty square will colour it green; either key will clear an occupied square. Holding Shift and pressing the cursor keys will colour empty squares green. Holding Control and pressing the cursor keys will colour green both empty squares and squares with tents. +

+

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

+

25.2 Tents 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. More difficult puzzles require more complex deductions, but at present none of the available difficulty levels requires guesswork or backtracking. +
+
+ +
+ -- cgit v1.2.3