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/magnets.c | 76 +++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 apps/plugins/puzzles/help/magnets.c (limited to 'apps/plugins/puzzles/help/magnets.c') diff --git a/apps/plugins/puzzles/help/magnets.c b/apps/plugins/puzzles/help/magnets.c new file mode 100644 index 0000000000..1dae190a6f --- /dev/null +++ b/apps/plugins/puzzles/help/magnets.c @@ -0,0 +1,76 @@ +/* auto-generated by genhelp.sh */ +/* DO NOT EDIT! */ +const char help_text[] = +"#Chapter 33: Magnets " +"\n" +"A rectangular grid has been filled with a mixture of magnets (that " +"is, dominoes with one positive end and one negative end) and blank " +"dominoes (that is, dominoes with two neutral poles). These dominoes " +"are initially only seen in silhouette. Around the grid are placed a " +"number of clues indicating the number of positive and negative poles " +"contained in certain columns and rows. " +"\n" +"Your aim is to correctly place the magnets and blank dominoes such " +"that all the clues are satisfied, with the additional constraint " +"that no two similar magnetic poles may be orthogonally adjacent " +"(since they repel). Neutral poles do not repel, and can be adjacent " +"to any other pole. " +"\n" +"Credit for this puzzle goes to Janko [16]. " +"\n" +"Magnets was contributed to this collection by James Harvey. " +"\n" +"[16] http://www.janko.at/Raetsel/Magnete/index.htm " +"\n" +"\n#33.1 Magnets controls " +"\n" +"Left-clicking on an empty square places a magnet at that position " +"with the positive pole on the square and the negative pole on the " +"other half of the magnet; left-clicking again reverses the polarity, " +"and a third click removes the magnet. " +"\n" +"Right-clicking on an empty square places a blank domino there. " +"Right-clicking again places two question marks on the domino, " +"signifying `this cannot be blank' (which can be useful to note " +"deductions while solving), and right-clicking again empties the " +"domino. " +"\n" +"Left-clicking a clue will mark it as done (grey it out), or unmark " +"it if it is already marked. " +"\n" +"You can also use the cursor keys to move a cursor around the grid. " +"Pressing the return key will lay a domino with a positive pole at " +"that position; pressing again reverses the polarity and then removes " +"the domino, as with left-clicking. Using the space bar allows " +"placement of blank dominoes and cannot-be-blank hints, as for right-\n" +"clicking. " +"\n" +"(All the actions described in section 2.1 are also available.) " +"\n" +"\n#33.2 Magnets parameters " +"\n" +"These parameters are available from the `Custom...' option on the " +"`Type' menu. " +"\n" +"_Width_, _Height_ " +"\n" +"Size of grid in squares. There will be half _Width_ x _Height_ " +"dominoes in the grid: if this number is odd then one square will " +"be blank. " +"\n" +"(Grids with at least one odd dimension tend to be easier to " +"solve.) " +"\n" +"_Difficulty_ " +"\n" +"Controls the difficulty of the generated puzzle. At Tricky " +"level, you are required to make more deductions about empty " +"dominoes and row/column counts. " +"\n" +"_Strip clues_ " +"\n" +"If true, some of the clues around the grid are removed at " +"generation time, making the puzzle more difficult. " +"\n" +; +const char quick_help_text[] = "Place magnets to satisfy the clues and avoid like poles touching."; -- cgit v1.2.3