summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help/guess.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/help/guess.c')
-rw-r--r--apps/plugins/puzzles/help/guess.c92
1 files changed, 92 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/help/guess.c b/apps/plugins/puzzles/help/guess.c
new file mode 100644
index 0000000000..2d1be2d977
--- /dev/null
+++ b/apps/plugins/puzzles/help/guess.c
@@ -0,0 +1,92 @@
1/* auto-generated by genhelp.sh */
2/* DO NOT EDIT! */
3const char help_text[] =
4"#Chapter 15: Guess "
5"\n"
6"You have a set of coloured pegs, and have to reproduce a "
7"predetermined sequence of them (chosen by the computer) within a "
8"certain number of guesses. "
9"\n"
10"Each guess gets marked with the number of correctly-coloured pegs "
11"in the correct places (in black), and also the number of correctly-\n"
12"coloured pegs in the wrong places (in white). "
13"\n"
14"This game is also known (and marketed, by Hasbro, mainly) as a board "
15"game `Mastermind', with 6 colours, 4 pegs per row, and 10 guesses. "
16"However, this version allows custom settings of number of colours "
17"(up to 10), number of pegs per row, and number of guesses. "
18"\n"
19"Guess was contributed to this collection by James Harvey. "
20"\n"
21"\n#15.1 Guess controls "
22"\n"
23"This game can be played with either the keyboard or the mouse. "
24"\n"
25"With the mouse, drag a coloured peg from the tray on the left-hand "
26"side to its required position in the current guess; pegs may also "
27"be dragged from current and past guesses to copy them elsewhere. To "
28"remove a peg, drag it off its current position to somewhere invalid. "
29"\n"
30"Right-clicking in the current guess adds a `hold' marker; pegs that "
31"have hold markers will be automatically added to the next guess "
32"after marking. "
33"\n"
34"Alternatively, with the keyboard, the up and down cursor keys can "
35"be used to select a peg colour, the left and right keys to select a "
36"peg position, and the space bar or Enter key to place a peg of the "
37"selected colour in the chosen position. `D' or Backspace removes a "
38"peg, and Space adds a hold marker. "
39"\n"
40"Pressing `h' or `?' will fill the current guess with a suggested "
41"guess. Using this is not recommended for 10 or more pegs as it is "
42"slow. "
43"\n"
44"When the guess is complete, the smaller feedback pegs will be "
45"highlighted; clicking on these (or moving the peg cursor to them "
46"with the arrow keys and pressing the space bar or Enter key) will "
47"mark the current guess, copy any held pegs to the next guess, and "
48"move the `current guess' marker. "
49"\n"
50"If you correctly position all the pegs the solution will be "
51"displayed below; if you run out of guesses (or select `Solve...') "
52"the solution will also be revealed. "
53"\n"
54"(All the actions described in section 2.1 are also available.) "
55"\n"
56"\n#15.2 Guess parameters "
57"\n"
58"These parameters are available from the `Custom...' option on the "
59"`Type' menu. The default game matches the parameters for the board "
60"game `Mastermind'. "
61"\n"
62"_Colours_ "
63"\n"
64"Number of colours the solution is chosen from; from 2 to 10 "
65"(more is harder). "
66"\n"
67"_Pegs per guess_ "
68"\n"
69"Number of pegs per guess (more is harder). "
70"\n"
71"_Guesses_ "
72"\n"
73"Number of guesses you have to find the solution in (fewer is "
74"harder). "
75"\n"
76"_Allow blanks_ "
77"\n"
78"Allows blank pegs to be given as part of a guess (makes it "
79"easier, because you know that those will never be counted as "
80"part of the solution). This is turned off by default. "
81"\n"
82"Note that this doesn't allow blank pegs in the solution; if you "
83"really wanted that, use one extra colour. "
84"\n"
85"_Allow duplicates_ "
86"\n"
87"Allows the solution (and the guesses) to contain colours more "
88"than once; this increases the search space (making things "
89"harder), and is turned on by default. "
90"\n"
91;
92const char quick_help_text[] = "Guess the hidden combination of colours.";