puzzles: compress extensive help text

This is only really needed to save a few bytes on the c200v2, but
since it adds negligible overhead, so it's implemented for all
targets.

A stripped down version of the LZ4 reference implementation is found
in lz4tiny.c.

Change-Id: Ib914ba71c84e04da282328662c752e533912e197
This commit is contained in:
Franklin Wei 2017-08-16 11:32:28 -04:00
parent 5645135092
commit bf25f3e6e7
46 changed files with 7347 additions and 2838 deletions

View file

@ -1,76 +1,172 @@
/* auto-generated by genhelp.sh */
/* auto-generated on Aug 16 2017 by genhelp.sh */
/* orig 2464 comp 1626 ratio 0.659903 level 11 saved 838 */
/* DO NOT EDIT! */
const char help_text[] =
"#Chapter 13: Same Game "
"\n"
"You have a grid of coloured squares, which you have to clear by "
"highlighting contiguous regions of more than one coloured square; "
"the larger the region you highlight, the more points you get (and "
"the faster you clear the arena). "
"\n"
"If you clear the grid you win. If you end up with nothing but single "
"squares (i.e., there are no more clickable regions left) you lose. "
"\n"
"Removing a region causes the rest of the grid to shuffle up: blocks "
"that are suspended will fall down (first), and then empty columns "
"are filled from the right. "
"\n"
"Same Game was contributed to this collection by James Harvey. "
"\n"
"\n#13.1 Same Game controls "
"\n"
"This game can be played with either the keyboard or the mouse. "
"\n"
"If you left-click an unselected region, it becomes selected "
"(possibly clearing the current selection). "
"\n"
"If you left-click the selected region, it will be removed (and the "
"rest of the grid shuffled immediately). "
"\n"
"If you right-click the selected region, it will be unselected. "
"\n"
"The cursor keys move a cursor around the grid. Pressing the Space or "
"Enter keys while the cursor is in an unselected region selects it; "
"pressing Space or Enter again removes it as above. "
"\n"
"(All the actions described in section 2.1 are also available.) "
"\n"
"\n#13.2 Same Game parameters "
"\n"
"These parameters are available from the `Custom...' option on the "
"`Type' menu. "
"\n"
"_Width_, _Height_ "
"\n"
"Size of grid in squares. "
"\n"
"_No. of colours_ "
"\n"
"Number of different colours used to fill the grid; the more "
"colours, the fewer large regions of colour and thus the more "
"difficult it is to successfully clear the grid. "
"\n"
"_Scoring system_ "
"\n"
"Controls the precise mechanism used for scoring. With the "
"default system, `(n-2)^2', only regions of three squares or more "
"will score any points at all. With the alternative `(n-1)^2' "
"system, regions of two squares score a point each, and larger "
"regions score relatively more points. "
"\n"
"_Ensure solubility_ "
"\n"
"If this option is ticked (the default state), generated grids "
"will be guaranteed to have at least one solution. "
"\n"
"If you turn it off, the game generator will not try to guarantee "
"soluble grids; it will, however, still ensure that there are at "
"least 2 squares of each colour on the grid at the start (since a "
"grid with exactly one square of a given colour is _definitely_ "
"insoluble). Grids generated with this option disabled may "
"contain more large areas of contiguous colour, leading to "
"opportunities for higher scores; they can also take less time to "
"generate. "
"\n"
;
#include "help.h"
const char help_text[] = {
0xf0, 0x04, 0x23, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x20, 0x31, 0x33, 0x3a, 0x20, 0x53, 0x61, 0x6d, 0x65, 0x20,
0x47, 0x05, 0x00, 0xf4, 0x1e, 0x0a, 0x59, 0x6f, 0x75, 0x20,
0x68, 0x61, 0x76, 0x65, 0x20, 0x61, 0x20, 0x67, 0x72, 0x69,
0x64, 0x20, 0x6f, 0x66, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x75,
0x72, 0x65, 0x64, 0x20, 0x73, 0x71, 0x75, 0x61, 0x72, 0x65,
0x73, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x79,
0x2b, 0x00, 0xf0, 0x1c, 0x74, 0x6f, 0x20, 0x63, 0x6c, 0x65,
0x61, 0x72, 0x20, 0x62, 0x79, 0x20, 0x68, 0x69, 0x67, 0x68,
0x6c, 0x69, 0x67, 0x68, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x63,
0x6f, 0x6e, 0x74, 0x69, 0x67, 0x75, 0x6f, 0x75, 0x73, 0x20,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x00, 0xdc,
0x6d, 0x6f, 0x72, 0x65, 0x20, 0x74, 0x68, 0x61, 0x6e, 0x20,
0x6f, 0x6e, 0x65, 0x5e, 0x00, 0xc0, 0x3b, 0x20, 0x74, 0x68,
0x65, 0x20, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x72, 0x0b, 0x00,
0x03, 0x39, 0x00, 0x00, 0x6d, 0x00, 0x06, 0x5c, 0x00, 0x10,
0x2c, 0x1a, 0x00, 0x02, 0x48, 0x00, 0x61, 0x70, 0x6f, 0x69,
0x6e, 0x74, 0x73, 0x1f, 0x00, 0x81, 0x67, 0x65, 0x74, 0x20,
0x28, 0x61, 0x6e, 0x64, 0x1d, 0x00, 0x60, 0x66, 0x61, 0x73,
0x74, 0x65, 0x72, 0x18, 0x00, 0x01, 0x9c, 0x00, 0x02, 0x4c,
0x00, 0xba, 0x61, 0x72, 0x65, 0x6e, 0x61, 0x29, 0x2e, 0x20,
0x0a, 0x49, 0x66, 0x1a, 0x00, 0x01, 0xec, 0x00, 0x01, 0x13,
0x00, 0x53, 0x77, 0x69, 0x6e, 0x2e, 0x20, 0x1f, 0x00, 0xf0,
0x01, 0x65, 0x6e, 0x64, 0x20, 0x75, 0x70, 0x20, 0x77, 0x69,
0x74, 0x68, 0x20, 0x6e, 0x6f, 0x74, 0x68, 0xd3, 0x00, 0xa4,
0x62, 0x75, 0x74, 0x20, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65,
0x0f, 0x01, 0x61, 0x20, 0x28, 0x69, 0x2e, 0x65, 0x2e, 0x93,
0x00, 0x11, 0x72, 0x63, 0x00, 0x32, 0x20, 0x6e, 0x6f, 0x9c,
0x00, 0x95, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0x61, 0x62, 0x6c,
0x65, 0xfe, 0x00, 0x51, 0x6c, 0x65, 0x66, 0x74, 0x29, 0x5c,
0x00, 0xc0, 0x6c, 0x6f, 0x73, 0x65, 0x2e, 0x20, 0x0a, 0x52,
0x65, 0x6d, 0x6f, 0x76, 0x58, 0x00, 0x14, 0x61, 0xe9, 0x00,
0x63, 0x63, 0x61, 0x75, 0x73, 0x65, 0x73, 0xfb, 0x00, 0x55,
0x73, 0x74, 0x20, 0x6f, 0x66, 0xa1, 0x00, 0x00, 0x69, 0x01,
0xf0, 0x03, 0x73, 0x68, 0x75, 0x66, 0x66, 0x6c, 0x65, 0x20,
0x75, 0x70, 0x3a, 0x20, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73,
0x4b, 0x01, 0x11, 0x74, 0x78, 0x00, 0xf3, 0x13, 0x73, 0x75,
0x73, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x20, 0x77, 0x69,
0x6c, 0x6c, 0x20, 0x66, 0x61, 0x6c, 0x6c, 0x20, 0x64, 0x6f,
0x77, 0x6e, 0x20, 0x28, 0x66, 0x69, 0x72, 0x73, 0x74, 0x29,
0x2c, 0x20, 0x1e, 0x01, 0x70, 0x6e, 0x20, 0x65, 0x6d, 0x70,
0x74, 0x79, 0x7c, 0x01, 0x41, 0x75, 0x6d, 0x6e, 0x73, 0x3d,
0x00, 0xb2, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x66,
0x72, 0x6f, 0x6d, 0x7d, 0x00, 0x00, 0x69, 0x01, 0x36, 0x2e,
0x20, 0x0a, 0x1c, 0x02, 0x31, 0x77, 0x61, 0x73, 0xd2, 0x01,
0x61, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x8e, 0x00, 0x40,
0x74, 0x68, 0x69, 0x73, 0x46, 0x00, 0x70, 0x6c, 0x65, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x01, 0x02, 0xf6, 0x06, 0x4a, 0x61,
0x6d, 0x65, 0x73, 0x20, 0x48, 0x61, 0x72, 0x76, 0x65, 0x79,
0x2e, 0x20, 0x0a, 0x0a, 0x23, 0x31, 0x33, 0x2e, 0x31, 0x62,
0x02, 0x02, 0x42, 0x00, 0x60, 0x6f, 0x6c, 0x73, 0x20, 0x0a,
0x54, 0x3d, 0x00, 0x11, 0x67, 0x14, 0x00, 0xc2, 0x61, 0x6e,
0x20, 0x62, 0x65, 0x20, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x64,
0x70, 0x01, 0x43, 0x65, 0x69, 0x74, 0x68, 0x02, 0x02, 0xb3,
0x6b, 0x65, 0x79, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x20, 0x6f,
0x72, 0xf8, 0x01, 0x35, 0x75, 0x73, 0x65, 0xc5, 0x01, 0x01,
0x54, 0x01, 0x11, 0x2d, 0x6b, 0x01, 0x80, 0x20, 0x61, 0x6e,
0x20, 0x75, 0x6e, 0x73, 0x65, 0x8e, 0x00, 0x23, 0x65, 0x64,
0x51, 0x01, 0x90, 0x2c, 0x20, 0x69, 0x74, 0x20, 0x62, 0x65,
0x63, 0x6f, 0x97, 0x00, 0x05, 0x1c, 0x00, 0x92, 0x28, 0x70,
0x6f, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x79, 0x04, 0x02, 0x31,
0x69, 0x6e, 0x67, 0x5b, 0x00, 0xa3, 0x63, 0x75, 0x72, 0x72,
0x65, 0x6e, 0x74, 0x20, 0x73, 0x65, 0xd2, 0x00, 0x1f, 0x29,
0x68, 0x00, 0x01, 0x01, 0x2b, 0x00, 0x0f, 0x67, 0x00, 0x00,
0x01, 0x77, 0x01, 0x00, 0xc9, 0x00, 0x10, 0x72, 0xd6, 0x01,
0x24, 0x65, 0x64, 0x8e, 0x02, 0x0e, 0xca, 0x01, 0x04, 0xc7,
0x01, 0xd6, 0x64, 0x20, 0x69, 0x6d, 0x6d, 0x65, 0x64, 0x69,
0x61, 0x74, 0x65, 0x6c, 0x79, 0x6c, 0x00, 0x01, 0x7d, 0x01,
0x0f, 0x6d, 0x00, 0x14, 0x07, 0xf2, 0x00, 0x42, 0x2e, 0x20,
0x0a, 0x54, 0xc5, 0x00, 0x30, 0x73, 0x6f, 0x72, 0x37, 0x01,
0x40, 0x73, 0x20, 0x6d, 0x6f, 0xcb, 0x03, 0x04, 0x13, 0x00,
0x65, 0x61, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x86, 0x00, 0x74,
0x2e, 0x20, 0x50, 0x72, 0x65, 0x73, 0x73, 0xfd, 0x00, 0x50,
0x53, 0x70, 0x61, 0x63, 0x65, 0x65, 0x01, 0x42, 0x45, 0x6e,
0x74, 0x65, 0x40, 0x00, 0x00, 0xea, 0x03, 0x46, 0x6c, 0x65,
0x20, 0x74, 0x56, 0x00, 0x5f, 0x69, 0x73, 0x20, 0x69, 0x6e,
0x69, 0x01, 0x02, 0x03, 0xa5, 0x00, 0x73, 0x73, 0x20, 0x69,
0x74, 0x3b, 0x20, 0x70, 0x59, 0x00, 0x0c, 0x55, 0x00, 0x53,
0x61, 0x67, 0x61, 0x69, 0x6e, 0x20, 0x01, 0x10, 0x73, 0xc6,
0x00, 0x70, 0x61, 0x73, 0x20, 0x61, 0x62, 0x6f, 0x76, 0xd0,
0x01, 0x42, 0x28, 0x41, 0x6c, 0x6c, 0xa7, 0x03, 0x21, 0x63,
0x74, 0x2e, 0x03, 0x90, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
0x62, 0x65, 0x64, 0x73, 0x00, 0x13, 0x73, 0x63, 0x02, 0x31,
0x32, 0x2e, 0x31, 0xb0, 0x02, 0xa0, 0x61, 0x6c, 0x73, 0x6f,
0x20, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x62, 0x03, 0x23, 0x2e,
0x29, 0x6b, 0x02, 0x17, 0x32, 0x6b, 0x02, 0xa1, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x19, 0x01,
0x17, 0x73, 0x12, 0x00, 0x01, 0xf4, 0x02, 0x06, 0x3f, 0x00,
0x06, 0xf7, 0x02, 0xe1, 0x60, 0x43, 0x75, 0x73, 0x74, 0x6f,
0x6d, 0x2e, 0x2e, 0x2e, 0x27, 0x20, 0x6f, 0x70, 0x72, 0x00,
0x22, 0x6f, 0x6e, 0x1a, 0x00, 0xf0, 0x0a, 0x54, 0x79, 0x70,
0x65, 0x27, 0x20, 0x6d, 0x65, 0x6e, 0x75, 0x2e, 0x20, 0x0a,
0x5f, 0x57, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x2c, 0x20, 0x5f,
0x48, 0x65, 0xad, 0x01, 0xa2, 0x5f, 0x20, 0x0a, 0x53, 0x69,
0x7a, 0x65, 0x20, 0x6f, 0x66, 0xe1, 0x01, 0x24, 0x69, 0x6e,
0x20, 0x04, 0x00, 0x2d, 0x00, 0x36, 0x4e, 0x6f, 0x2e, 0x4a,
0x05, 0xa0, 0x73, 0x5f, 0x20, 0x0a, 0x4e, 0x75, 0x6d, 0x62,
0x65, 0x72, 0x14, 0x00, 0x50, 0x64, 0x69, 0x66, 0x66, 0x65,
0x75, 0x02, 0x04, 0x1e, 0x00, 0x31, 0x20, 0x75, 0x73, 0x5d,
0x03, 0x01, 0x92, 0x03, 0x05, 0xac, 0x01, 0x15, 0x3b, 0xf3,
0x04, 0x04, 0x28, 0x00, 0x12, 0x2c, 0xe8, 0x04, 0x41, 0x65,
0x77, 0x65, 0x72, 0x30, 0x05, 0x05, 0x66, 0x04, 0x06, 0x6a,
0x00, 0x03, 0xf0, 0x03, 0x25, 0x75, 0x73, 0x3d, 0x00, 0x01,
0x6f, 0x00, 0x50, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x7d, 0x01,
0x21, 0x69, 0x73, 0x53, 0x04, 0xbb, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x13, 0x05, 0x00,
0xbc, 0x00, 0x31, 0x53, 0x63, 0x6f, 0x20, 0x03, 0xa2, 0x73,
0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x20, 0x0a, 0x43, 0xc2,
0x03, 0x01, 0x55, 0x00, 0x00, 0xe9, 0x01, 0xe2, 0x63, 0x69,
0x73, 0x65, 0x20, 0x6d, 0x65, 0x63, 0x68, 0x61, 0x6e, 0x69,
0x73, 0x6d, 0xbf, 0x00, 0x52, 0x66, 0x6f, 0x72, 0x20, 0x73,
0x39, 0x00, 0x61, 0x2e, 0x20, 0x57, 0x69, 0x74, 0x68, 0x2d,
0x00, 0x73, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4b,
0x00, 0xf8, 0x02, 0x2c, 0x20, 0x60, 0x28, 0x6e, 0x2d, 0x32,
0x29, 0x5e, 0x32, 0x27, 0x2c, 0x20, 0x6f, 0x6e, 0x6c, 0x79,
0xc1, 0x00, 0x46, 0x74, 0x68, 0x72, 0x65, 0x63, 0x05, 0x21,
0x6f, 0x72, 0xbe, 0x00, 0x01, 0xf4, 0x02, 0x00, 0x58, 0x00,
0x00, 0xbc, 0x01, 0x24, 0x6e, 0x79, 0xfd, 0x05, 0x00, 0xff,
0x04, 0x27, 0x6c, 0x6c, 0x68, 0x00, 0xb1, 0x61, 0x6c, 0x74,
0x65, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x64, 0x00,
0x10, 0x31, 0x64, 0x00, 0x04, 0x76, 0x00, 0x09, 0x66, 0x00,
0x24, 0x77, 0x6f, 0x64, 0x00, 0x04, 0x57, 0x00, 0x02, 0x55,
0x00, 0x51, 0x20, 0x65, 0x61, 0x63, 0x68, 0x30, 0x05, 0x03,
0x8c, 0x06, 0x03, 0x36, 0x00, 0x04, 0x27, 0x00, 0x31, 0x72,
0x65, 0x6c, 0x5f, 0x00, 0x27, 0x6c, 0x79, 0x87, 0x06, 0x01,
0xeb, 0x01, 0x40, 0x45, 0x6e, 0x73, 0x75, 0x8c, 0x05, 0xa0,
0x6f, 0x6c, 0x75, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f,
0xd6, 0x03, 0x01, 0x2a, 0x05, 0x03, 0x51, 0x02, 0x01, 0x77,
0x01, 0x30, 0x69, 0x63, 0x6b, 0x21, 0x04, 0x09, 0x16, 0x01,
0xd0, 0x74, 0x61, 0x74, 0x65, 0x29, 0x2c, 0x20, 0x67, 0x65,
0x6e, 0x65, 0x72, 0x61, 0x59, 0x03, 0x00, 0x83, 0x01, 0x15,
0x73, 0xe9, 0x03, 0x81, 0x67, 0x75, 0x61, 0x72, 0x61, 0x6e,
0x74, 0x65, 0x1e, 0x02, 0x03, 0xa5, 0x07, 0x50, 0x74, 0x20,
0x6c, 0x65, 0x61, 0x5c, 0x04, 0x12, 0x6e, 0x73, 0x00, 0x00,
0x60, 0x00, 0x06, 0x47, 0x04, 0x60, 0x74, 0x75, 0x72, 0x6e,
0x20, 0x69, 0x7a, 0x04, 0x11, 0x66, 0x2e, 0x02, 0x01, 0x6e,
0x05, 0x04, 0x60, 0x00, 0x21, 0x6f, 0x72, 0x5a, 0x00, 0x00,
0xda, 0x06, 0x75, 0x20, 0x74, 0x72, 0x79, 0x20, 0x74, 0x6f,
0x62, 0x00, 0x03, 0xbf, 0x00, 0x22, 0x6c, 0x65, 0x82, 0x00,
0x14, 0x3b, 0x6f, 0x04, 0xd0, 0x2c, 0x20, 0x68, 0x6f, 0x77,
0x65, 0x76, 0x65, 0x72, 0x2c, 0x20, 0x73, 0x74, 0x3c, 0x00,
0x11, 0x65, 0xed, 0x00, 0x01, 0x82, 0x06, 0x05, 0x00, 0x07,
0x07, 0x96, 0x00, 0x16, 0x32, 0xc1, 0x01, 0x11, 0x66, 0x52,
0x01, 0x04, 0x98, 0x02, 0x26, 0x6f, 0x6e, 0x0b, 0x05, 0x02,
0x3b, 0x00, 0x00, 0xfe, 0x00, 0x83, 0x72, 0x74, 0x20, 0x28,
0x73, 0x69, 0x6e, 0x63, 0x7d, 0x08, 0x04, 0x0a, 0x06, 0x93,
0x78, 0x61, 0x63, 0x74, 0x6c, 0x79, 0x20, 0x6f, 0x6e, 0x10,
0x02, 0x00, 0x65, 0x03, 0x00, 0x22, 0x00, 0x42, 0x69, 0x76,
0x65, 0x6e, 0x51, 0x00, 0x01, 0x97, 0x04, 0x70, 0x5f, 0x64,
0x65, 0x66, 0x69, 0x6e, 0x69, 0x4a, 0x05, 0x43, 0x5f, 0x20,
0x69, 0x6e, 0xc2, 0x00, 0x40, 0x29, 0x2e, 0x20, 0x47, 0xc4,
0x00, 0x04, 0xf6, 0x00, 0x03, 0x60, 0x06, 0x09, 0x90, 0x01,
0x50, 0x64, 0x69, 0x73, 0x61, 0x62, 0x8d, 0x05, 0x31, 0x6d,
0x61, 0x79, 0xa0, 0x06, 0x30, 0x61, 0x69, 0x6e, 0xd7, 0x01,
0x02, 0x88, 0x08, 0x01, 0xd4, 0x00, 0x10, 0x61, 0xc3, 0x00,
0x07, 0xd0, 0x08, 0x03, 0x78, 0x00, 0x10, 0x2c, 0xe9, 0x00,
0x11, 0x64, 0x41, 0x05, 0xf0, 0x00, 0x6f, 0x20, 0x6f, 0x70,
0x70, 0x6f, 0x72, 0x74, 0x75, 0x6e, 0x69, 0x74, 0x69, 0x65,
0x73, 0x02, 0x03, 0x01, 0xb1, 0x08, 0x22, 0x65, 0x72, 0x33,
0x02, 0x11, 0x73, 0xc2, 0x03, 0x10, 0x79, 0xec, 0x06, 0x02,
0xbc, 0x04, 0x80, 0x74, 0x61, 0x6b, 0x65, 0x20, 0x6c, 0x65,
0x73, 0x0d, 0x02, 0x10, 0x6d, 0x45, 0x09, 0x04, 0xa3, 0x00,
0x50, 0x65, 0x2e, 0x20, 0x0a, 0x00,
};
const unsigned short help_text_len = 2464;
const char quick_help_text[] = "Clear the grid by removing touching groups of the same colour squares.";