From 552a271c6fea8d36390858ca6d12c4c98f663002 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 3 Jun 2017 13:45:07 -0400 Subject: 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 --- apps/plugins/puzzles/help/sixteen.c | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 apps/plugins/puzzles/help/sixteen.c (limited to 'apps/plugins/puzzles/help/sixteen.c') diff --git a/apps/plugins/puzzles/help/sixteen.c b/apps/plugins/puzzles/help/sixteen.c new file mode 100644 index 0000000000..d588c37e3a --- /dev/null +++ b/apps/plugins/puzzles/help/sixteen.c @@ -0,0 +1,62 @@ +/* auto-generated by genhelp.sh */ +/* DO NOT EDIT! */ +const char help_text[] = +"#Chapter 6: Sixteen " +"\n" +"Another sliding tile puzzle, visually similar to Fifteen (see " +"chapter 5) but with a different type of move. This time, there is no " +"hole: all 16 squares on the grid contain numbered squares. Your move " +"is to shift an entire row left or right, or shift an entire column " +"up or down; every time you do that, the tile you shift off the grid " +"re-appears at the other end of the same row, in the space you just " +"vacated. To win, arrange the tiles into numerical order (1,2,3,4 on " +"the top row, 13,14,15,16 on the bottom). When you've done that, try " +"playing on different sizes of grid. " +"\n" +"I _might_ have invented this game myself, though only by accident " +"if so (and I'm sure other people have independently invented it). I " +"thought I was imitating a screensaver I'd seen, but I have a feeling " +"that the screensaver might actually have been a Fifteen-type puzzle " +"rather than this slightly different kind. So this might be the one " +"thing in my puzzle collection which represents creativity on my part " +"rather than just engineering. " +"\n" +"\n#6.1 Sixteen controls " +"\n" +"Left-clicking on an arrow will move the appropriate row or column in " +"the direction indicated. Right-clicking will move it in the opposite " +"direction. " +"\n" +"Alternatively, use the cursor keys to move the position indicator " +"around the edge of the grid, and use the return key to move the " +"row/column in the direction indicated. " +"\n" +"You can also move the tiles directly. Move the cursor onto a tile, " +"hold Control and press an arrow key to move the tile under the " +"cursor and move the cursor along with the tile. Or, hold Shift to " +"move only the tile. Pressing Enter simulates holding down Control " +"(press Enter again to release), while pressing Space simulates " +"holding down shift. " +"\n" +"(All the actions described in section 2.1 are also available.) " +"\n" +"\n#6.2 Sixteen parameters " +"\n" +"The parameters available from the `Custom...' option on the `Type' " +"menu are: " +"\n" +"- _Width_ and _Height_, which are self-explanatory. " +"\n" +"- You can ask for a limited shuffling operation to be performed on " +"the grid. By default, Sixteen will shuffle the grid in such a " +"way that any arrangement is about as probable as any other. You " +"can override this by requesting a precise number of shuffling " +"moves to be performed. Typically your aim is then to determine " +"the precise set of shuffling moves and invert them exactly, " +"so that you answer (say) a four-move shuffle with a four-move " +"solution. Note that the more moves you ask for, the more likely " +"it is that solutions shorter than the target length will turn " +"out to be possible. " +"\n" +; +const char quick_help_text[] = "Slide a row at a time to arrange the tiles into order."; -- cgit v1.2.3