summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help/bridges.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/help/bridges.c')
-rw-r--r--apps/plugins/puzzles/help/bridges.c144
1 files changed, 144 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/help/bridges.c b/apps/plugins/puzzles/help/bridges.c
new file mode 100644
index 0000000000..6a7f301f1a
--- /dev/null
+++ b/apps/plugins/puzzles/help/bridges.c
@@ -0,0 +1,144 @@
1/* auto-generated by genhelp.sh */
2/* DO NOT EDIT! */
3const char help_text[] =
4"#Chapter 26: Bridges "
5"\n"
6"You have a set of islands distributed across the playing area. "
7"Each island contains a number. Your aim is to connect the islands "
8"together with bridges, in such a way that: "
9"\n"
10"- Bridges run horizontally or vertically. "
11"\n"
12"- The number of bridges terminating at any island is equal to the "
13"number written in that island. "
14"\n"
15"- Two bridges may run in parallel between the same two islands, "
16"but no more than two may do so. "
17"\n"
18"- No bridge crosses another bridge. "
19"\n"
20"- All the islands are connected together. "
21"\n"
22"There are some configurable alternative modes, which involve "
23"changing the parallel-bridge limit to something other than 2, and "
24"introducing the additional constraint that no sequence of bridges "
25"may form a loop from one island back to the same island. The rules "
26"stated above are the default ones. "
27"\n"
28"Credit for this puzzle goes to Nikoli [12]. "
29"\n"
30"Bridges was contributed to this collection by James Harvey. "
31"\n"
32"[12] http://www.nikoli.co.jp/en/puzzles/hashiwokakero.html (beware "
33"of Flash) "
34"\n"
35"\n#26.1 Bridges controls "
36"\n"
37"To place a bridge between two islands, click the mouse down on one "
38"island and drag it towards the other. You do not need to drag all "
39"the way to the other island; you only need to move the mouse far "
40"enough for the intended bridge direction to be unambiguous. (So you "
41"can keep the mouse near the starting island and conveniently throw "
42"bridges out from it in many directions.) "
43"\n"
44"Doing this again when a bridge is already present will add another "
45"parallel bridge. If there are already as many bridges between the "
46"two islands as permitted by the current game rules (i.e. two by "
47"default), the same dragging action will remove all of them. "
48"\n"
49"If you want to remind yourself that two islands definitely _do not_ "
50"have a bridge between them, you can right-drag between them in the "
51"same way to draw a `non-bridge' marker. "
52"\n"
53"If you think you have finished with an island (i.e. you have placed "
54"all its bridges and are confident that they are in the right "
55"places), you can mark the island as finished by left-clicking on it. "
56"This will highlight it and all the bridges connected to it, and you "
57"will be prevented from accidentally modifying any of those bridges "
58"in future. Left-clicking again on a highlighted island will unmark "
59"it and restore your ability to modify it. "
60"\n"
61"You can also use the cursor keys to move around the grid: if "
62"possible the cursor will always move orthogonally, otherwise it "
63"will move towards the nearest island to the indicated direction. "
64"Holding Control and pressing a cursor key will lay a bridge in that "
65"direction (if available); Shift and a cursor key will lay a `non-\n"
66"bridge' marker. Pressing the return key followed by a cursor key "
67"will also lay a bridge in that direction. "
68"\n"
69"You can mark an island as finished by pressing the space bar or by "
70"pressing the return key twice. "
71"\n"
72"By pressing a number key, you can jump to the nearest island with "
73"that number. Letters `a', ..., `f' count as 10, ..., 15 and `0' as "
74"16. "
75"\n"
76"Violations of the puzzle rules will be marked in red: "
77"\n"
78"- An island with too many bridges will be highlighted in red. "
79"\n"
80"- An island with too few bridges will be highlighted in red if it "
81"is definitely an error (as opposed to merely not being finished "
82"yet): if adding enough bridges would involve having to cross "
83"another bridge or remove a non-bridge marker, or if the island "
84"has been highlighted as complete. "
85"\n"
86"- A group of islands and bridges may be highlighted in red if it "
87"is a closed subset of the puzzle with no way to connect it to "
88"the rest of the islands. For example, if you directly connect "
89"two 1s together with a bridge and they are not the only two "
90"islands on the grid, they will light up red to indicate that "
91"such a group cannot be contained in any valid solution. "
92"\n"
93"- If you have selected the (non-default) option to disallow loops "
94"in the solution, a group of bridges which forms a loop will be "
95"highlighted. "
96"\n"
97"(All the actions described in section 2.1 are also available.) "
98"\n"
99"\n#26.2 Bridges parameters "
100"\n"
101"These parameters are available from the `Custom...' option on the "
102"`Type' menu. "
103"\n"
104"_Width_, _Height_ "
105"\n"
106"Size of grid in squares. "
107"\n"
108"_Difficulty_ "
109"\n"
110"Difficulty level of puzzle. "
111"\n"
112"_Allow loops_ "
113"\n"
114"This is set by default. If cleared, puzzles will be generated in "
115"such a way that they are always soluble without creating a loop, "
116"and solutions which do involve a loop will be disallowed. "
117"\n"
118"_Max. bridges per direction_ "
119"\n"
120"Maximum number of bridges in any particular direction. The "
121"default is 2, but you can change it to 1, 3 or 4. In general, "
122"fewer is easier. "
123"\n"
124"_%age of island squares_ "
125"\n"
126"Gives a rough percentage of islands the generator will try and "
127"lay before finishing the puzzle. Certain layouts will not manage "
128"to lay enough islands; this is an upper bound. "
129"\n"
130"_Expansion factor (%age)_ "
131"\n"
132"The grid generator works by picking an existing island at random "
133"(after first creating an initial island somewhere). It then "
134"decides on a direction (at random), and then works out how far "
135"it could extend before creating another island. This parameter "
136"determines how likely it is to extend as far as it can, rather "
137"than choosing somewhere closer. "
138"\n"
139"High expansion factors usually mean easier puzzles with fewer "
140"possible islands; low expansion factors can create lots of "
141"tightly-packed islands. "
142"\n"
143;
144const char quick_help_text[] = "Connect all the islands with a network of bridges.";