summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help/tents.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-06-03 13:45:07 -0400
committerFranklin Wei <git@fwei.tk>2017-06-03 13:45:07 -0400
commit552a271c6fea8d36390858ca6d12c4c98f663002 (patch)
tree046ea6cdc0cbadae014715c02af6ada4e966a92c /apps/plugins/puzzles/help/tents.c
parentcefbde0bbb5f90523233a56ca6c0b0699b4b359e (diff)
downloadrockbox-552a271c6fea8d36390858ca6d12c4c98f663002.tar.gz
rockbox-552a271c6fea8d36390858ca6d12c4c98f663002.zip
puzzles: remove redundant help content
It used to be that each puzzle had a complete copy of the entire puzzles manual and the "quick help" text for every single puzzle. This was obviously a waste, so now each puzzle only has the sections of the manual that apply to it, saving about 100KB or so per puzzle. This also has the added benefit of shrinking binary size enough to allow full help support on the c200v2, which has been enabled. Change-Id: I76c799635de058e4a48e0c18b79537857af7cf85
Diffstat (limited to 'apps/plugins/puzzles/help/tents.c')
-rw-r--r--apps/plugins/puzzles/help/tents.c66
1 files changed, 66 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/help/tents.c b/apps/plugins/puzzles/help/tents.c
new file mode 100644
index 0000000000..28d45301d0
--- /dev/null
+++ b/apps/plugins/puzzles/help/tents.c
@@ -0,0 +1,66 @@
1/* auto-generated by genhelp.sh */
2/* DO NOT EDIT! */
3const char help_text[] =
4"#Chapter 25: Tents "
5"\n"
6"You have a grid of squares, some of which contain trees. Your aim is "
7"to place tents in some of the remaining squares, in such a way that "
8"the following conditions are met: "
9"\n"
10"- There are exactly as many tents as trees. "
11"\n"
12"- The tents and trees can be matched up in such a way that each "
13"tent is directly adjacent (horizontally or vertically, but not "
14"diagonally) to its own tree. However, a tent may be adjacent to "
15"other trees as well as its own. "
16"\n"
17"- No two tents are adjacent horizontally, vertically _or "
18"diagonally_. "
19"\n"
20"- The number of tents in each row, and in each column, matches the "
21"numbers given round the sides of the grid. "
22"\n"
23"This puzzle can be found in several places on the Internet, and was "
24"brought to my attention by e-mail. I don't know who I should credit "
25"for inventing it. "
26"\n"
27"\n#25.1 Tents controls "
28"\n"
29"Left-clicking in a blank square will place a tent in it. Right-\n"
30"clicking in a blank square will colour it green, indicating that you "
31"are sure it _isn't_ a tent. Clicking either button in an occupied "
32"square will clear it. "
33"\n"
34"If you _drag_ with the right button along a row or column, every "
35"blank square in the region you cover will be turned green, and no "
36"other squares will be affected. (This is useful for clearing the "
37"remainder of a row once you have placed all its tents.) "
38"\n"
39"You can also use the cursor keys to move around the grid. Pressing "
40"the return key over an empty square will place a tent, and pressing "
41"the space bar over an empty square will colour it green; either key "
42"will clear an occupied square. Holding Shift and pressing the cursor "
43"keys will colour empty squares green. Holding Control and pressing "
44"the cursor keys will colour green both empty squares and squares "
45"with tents. "
46"\n"
47"(All the actions described in section 2.1 are also available.) "
48"\n"
49"\n#25.2 Tents parameters "
50"\n"
51"These parameters are available from the `Custom...' option on the "
52"`Type' menu. "
53"\n"
54"_Width_, _Height_ "
55"\n"
56"Size of grid in squares. "
57"\n"
58"_Difficulty_ "
59"\n"
60"Controls the difficulty of the generated puzzle. More difficult "
61"puzzles require more complex deductions, but at present none "
62"of the available difficulty levels requires guesswork or "
63"backtracking. "
64"\n"
65;
66const char quick_help_text[] = "Place a tent next to each tree.";