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/twiddle.c | 75 +++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 apps/plugins/puzzles/help/twiddle.c (limited to 'apps/plugins/puzzles/help/twiddle.c') diff --git a/apps/plugins/puzzles/help/twiddle.c b/apps/plugins/puzzles/help/twiddle.c new file mode 100644 index 0000000000..a1684a6654 --- /dev/null +++ b/apps/plugins/puzzles/help/twiddle.c @@ -0,0 +1,75 @@ +/* auto-generated by genhelp.sh */ +/* DO NOT EDIT! */ +const char help_text[] = +"#Chapter 7: Twiddle " +"\n" +"Twiddle is a tile-rearrangement puzzle, visually similar to Sixteen " +"(see chapter 6): you are given a grid of square tiles, each " +"containing a number, and your aim is to arrange the numbers into " +"ascending order. " +"\n" +"In basic Twiddle, your move is to rotate a square group of four " +"tiles about their common centre. (Orientation is not significant " +"in the basic puzzle, although you can select it.) On more advanced " +"settings, you can rotate a larger square group of tiles. " +"\n" +"I first saw this type of puzzle in the GameCube game `Metroid " +"Prime 2'. In the Main Gyro Chamber in that game, there is a puzzle " +"you solve to unlock a door, which is a special case of Twiddle. I " +"developed this game as a generalisation of that puzzle. " +"\n" +"\n#7.1 Twiddle controls " +"\n" +"To play Twiddle, click the mouse in the centre of the square group " +"you wish to rotate. In the basic mode, you rotate a 2x2 square, " +"which means you have to click at a corner point where four tiles " +"meet. " +"\n" +"In more advanced modes you might be rotating 3x3 or even more at a " +"time; if the size of the square is odd then you simply click in the " +"centre tile of the square you want to rotate. " +"\n" +"Clicking with the left mouse button rotates the group anticlockwise. " +"Clicking with the right button rotates it clockwise. " +"\n" +"You can also move an outline square around the grid with the cursor " +"keys; the square is the size above (2x2 by default, or larger). " +"Pressing the return key or space bar will rotate the current square " +"anticlockwise or clockwise respectively. " +"\n" +"(All the actions described in section 2.1 are also available.) " +"\n" +"\n#7.2 Twiddle parameters " +"\n" +"Twiddle provides several configuration options via the `Custom' " +"option on the `Type' menu: " +"\n" +"- You can configure the width and height of the puzzle grid. " +"\n" +"- You can configure the size of square block that rotates at a " +"time. " +"\n" +"- You can ask for every square in the grid to be distinguishable " +"(the default), or you can ask for a simplified puzzle in which " +"there are groups of identical numbers. In the simplified puzzle " +"your aim is just to arrange all the 1s into the first row, all " +"the 2s into the second row, and so on. " +"\n" +"- You can configure whether the orientation of tiles matters. If " +"you ask for an orientable puzzle, each tile will have a triangle " +"drawn in it. All the triangles must be pointing upwards to " +"complete the puzzle. " +"\n" +"- You can ask for a limited shuffling operation to be performed " +"on the grid. By default, Twiddle will shuffle the grid so much " +"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[] = "Rotate the tiles around themselves to arrange them into order."; -- cgit v1.2.3