summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help/range.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/range.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/range.c')
-rw-r--r--apps/plugins/puzzles/help/range.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/help/range.c b/apps/plugins/puzzles/help/range.c
new file mode 100644
index 0000000000..fd234d7e24
--- /dev/null
+++ b/apps/plugins/puzzles/help/range.c
@@ -0,0 +1,62 @@
1/* auto-generated by genhelp.sh */
2/* DO NOT EDIT! */
3const char help_text[] =
4"#Chapter 35: Range "
5"\n"
6"You have a grid of squares; some squares contain numbers. Your job "
7"is to colour some of the squares black, such that several criteria "
8"are satisfied: "
9"\n"
10"- no square with a number is coloured black. "
11"\n"
12"- no two black squares are adjacent (horizontally or vertically). "
13"\n"
14"- for any two white squares, there is a path between them using "
15"only white squares. "
16"\n"
17"- for each square with a number, that number denotes the total "
18"number of white squares reachable from that square going in a "
19"straight line in any horizontal or vertical direction until "
20"hitting a wall or a black square; the square with the number is "
21"included in the total (once). "
22"\n"
23"For instance, a square containing the number one must have four "
24"black squares as its neighbours by the last criterion; but then it's "
25"impossible for it to be connected to any outside white square, which "
26"violates the second to last criterion. So no square will contain the "
27"number one. "
28"\n"
29"Credit for this puzzle goes to Nikoli, who have variously called it "
30"`Kurodoko', `Kuromasu' or `Where is Black Cells'. [18]. "
31"\n"
32"Range was contributed to this collection by Jonas Koelker. "
33"\n"
34"[18] http://www.nikoli.co.jp/en/puzzles/where_is_black_cells.html "
35"\n"
36"\n#35.1 Range controls "
37"\n"
38"Click with the left button to paint a square black, or with the "
39"right button to mark a square with a dot to indicate that you are "
40"sure it should _not_ be painted black. Repeated clicking with either "
41"button will cycle the square through the three possible states "
42"(filled, dotted or empty) in opposite directions. "
43"\n"
44"You can also use the cursor keys to move around the grid squares. "
45"Pressing Return does the same as clicking with the left button, "
46"while pressing Space does the same as a right button click. Moving "
47"with the cursor keys while holding Shift will place dots in all "
48"squares that are moved through. "
49"\n"
50"(All the actions described in section 2.1 are also available.) "
51"\n"
52"\n#35.2 Range parameters "
53"\n"
54"These parameters are available from the `Custom...' option on the "
55"`Type' menu. "
56"\n"
57"_Width_, _Height_ "
58"\n"
59"Size of grid in squares. "
60"\n"
61;
62const char quick_help_text[] = "Place black squares to limit the visible distance from each numbered cell.";