summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help/pegs.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/pegs.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/pegs.c')
-rw-r--r--apps/plugins/puzzles/help/pegs.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/help/pegs.c b/apps/plugins/puzzles/help/pegs.c
new file mode 100644
index 0000000000..d5b1df6040
--- /dev/null
+++ b/apps/plugins/puzzles/help/pegs.c
@@ -0,0 +1,52 @@
1/* auto-generated by genhelp.sh */
2/* DO NOT EDIT! */
3const char help_text[] =
4"#Chapter 16: Pegs "
5"\n"
6"A number of pegs are placed in holes on a board. You can remove a "
7"peg by jumping an adjacent peg over it (horizontally or vertically) "
8"to a vacant hole on the other side. Your aim is to remove all but "
9"one of the pegs initially present. "
10"\n"
11"This game, best known as `Peg Solitaire', is possibly one of the "
12"oldest puzzle games still commonly known. "
13"\n"
14"\n#16.1 Pegs controls "
15"\n"
16"To move a peg, drag it with the mouse from its current position to "
17"its final position. If the final position is exactly two holes away "
18"from the initial position, is currently unoccupied by a peg, and "
19"there is a peg in the intervening square, the move will be permitted "
20"and the intervening peg will be removed. "
21"\n"
22"Vacant spaces which you can move a peg into are marked with holes. A "
23"space with no peg and no hole is not available for moving at all: it "
24"is an obstacle which you must work around. "
25"\n"
26"You can also use the cursor keys to move a position indicator around "
27"the board. Pressing the return key while over a peg, followed by a "
28"cursor key, will jump the peg in that direction (if that is a legal "
29"move). "
30"\n"
31"(All the actions described in section 2.1 are also available.) "
32"\n"
33"\n#16.2 Pegs parameters "
34"\n"
35"These parameters are available from the `Custom...' option on the "
36"`Type' menu. "
37"\n"
38"_Width_, _Height_ "
39"\n"
40"Size of grid in holes. "
41"\n"
42"_Board type_ "
43"\n"
44"Controls whether you are given a board of a standard shape or "
45"a randomly generated shape. The two standard shapes currently "
46"supported are `Cross' and `Octagon' (also commonly known as the "
47"English and European traditional board layouts respectively). "
48"Selecting `Random' will give you a different board shape every "
49"time (but always one that is known to have a solution). "
50"\n"
51;
52const char quick_help_text[] = "Jump pegs over each other to remove all but one.";