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,58 +1,154 @@
/* auto-generated by genhelp.sh */
/* auto-generated on Aug 16 2017 by genhelp.sh */
/* orig 2051 comp 1450 ratio 0.706972 level 11 saved 601 */
/* DO NOT EDIT! */
const char help_text[] =
"#Chapter 4: Cube "
"\n"
"This is another one I originally saw as a web game. This one was a "
"Java game [2], by Paul Scott. You have a grid of 16 squares, six of "
"which are blue; on one square rests a cube. Your move is to use the "
"arrow keys to roll the cube through 90 degrees so that it moves to "
"an adjacent square. If you roll the cube on to a blue square, the "
"blue square is picked up on one face of the cube; if you roll a blue "
"face of the cube on to a non-blue square, the blueness is put down "
"again. (In general, whenever you roll the cube, the two faces that "
"come into contact swap colours.) Your job is to get all six blue "
"squares on to the six faces of the cube at the same time. Count your "
"moves and try to do it in as few as possible. "
"\n"
"Unlike the original Java game, my version has an additional feature: "
"once you've mastered the game with a cube rolling on a square grid, "
"you can change to a triangular grid and roll any of a tetrahedron, "
"an octahedron or an icosahedron. "
"\n"
"[2] http://www3.sympatico.ca/paulscott/cube/cube.htm "
"\n"
"\n#4.1 Cube controls "
"\n"
"This game can be played with either the keyboard or the mouse. "
"\n"
"Left-clicking anywhere on the window will move the cube (or other "
"solid) towards the mouse pointer. "
"\n"
"The arrow keys can also used to roll the cube on its square grid in "
"the four cardinal directions. On the triangular grids, the mapping "
"of arrow keys to directions is more approximate. Vertical movement "
"is disallowed where it doesn't make sense. The four keys surrounding "
"the arrow keys on the numeric keypad (`7', `9', `1', `3') can be "
"used for diagonal movement. "
"\n"
"(All the actions described in section 2.1 are also available.) "
"\n"
"\n#4.2 Cube parameters "
"\n"
"These parameters are available from the `Custom...' option on the "
"`Type' menu. "
"\n"
"_Type of solid_ "
"\n"
"Selects the solid to roll (and hence the shape of the grid): "
"tetrahedron, cube, octahedron, or icosahedron. "
"\n"
"_Width / top_, _Height / bottom_ "
"\n"
"On a square grid, horizontal and vertical dimensions. On a "
"triangular grid, the number of triangles on the top and bottom "
"rows respectively. "
"\n"
;
#include "help.h"
const char help_text[] = {
0xf0, 0x37, 0x23, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x20, 0x34, 0x3a, 0x20, 0x43, 0x75, 0x62, 0x65, 0x20, 0x0a,
0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e,
0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x6f, 0x6e, 0x65, 0x20,
0x49, 0x20, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
0x6c, 0x79, 0x20, 0x73, 0x61, 0x77, 0x20, 0x61, 0x73, 0x20,
0x61, 0x20, 0x77, 0x65, 0x62, 0x20, 0x67, 0x61, 0x6d, 0x65,
0x2e, 0x20, 0x34, 0x00, 0x01, 0x29, 0x00, 0x11, 0x77, 0x19,
0x00, 0x41, 0x4a, 0x61, 0x76, 0x61, 0x1a, 0x00, 0xf0, 0x28,
0x20, 0x5b, 0x32, 0x5d, 0x2c, 0x20, 0x62, 0x79, 0x20, 0x50,
0x61, 0x75, 0x6c, 0x20, 0x53, 0x63, 0x6f, 0x74, 0x74, 0x2e,
0x20, 0x59, 0x6f, 0x75, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20,
0x61, 0x20, 0x67, 0x72, 0x69, 0x64, 0x20, 0x6f, 0x66, 0x20,
0x31, 0x36, 0x20, 0x73, 0x71, 0x75, 0x61, 0x72, 0x65, 0x73,
0x2c, 0x20, 0x73, 0x69, 0x78, 0x13, 0x00, 0xf0, 0x03, 0x77,
0x68, 0x69, 0x63, 0x68, 0x20, 0x61, 0x72, 0x65, 0x20, 0x62,
0x6c, 0x75, 0x65, 0x3b, 0x20, 0x6f, 0x6e, 0x61, 0x00, 0x03,
0x27, 0x00, 0x50, 0x20, 0x72, 0x65, 0x73, 0x74, 0x6a, 0x00,
0x41, 0x63, 0x75, 0x62, 0x65, 0x52, 0x00, 0x60, 0x72, 0x20,
0x6d, 0x6f, 0x76, 0x65, 0xb8, 0x00, 0xf1, 0x05, 0x74, 0x6f,
0x20, 0x75, 0x73, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61,
0x72, 0x72, 0x6f, 0x77, 0x20, 0x6b, 0x65, 0x79, 0x16, 0x00,
0x40, 0x72, 0x6f, 0x6c, 0x6c, 0x17, 0x00, 0x00, 0x35, 0x00,
0x00, 0x20, 0x00, 0xf1, 0x0c, 0x72, 0x6f, 0x75, 0x67, 0x68,
0x20, 0x39, 0x30, 0x20, 0x64, 0x65, 0x67, 0x72, 0x65, 0x65,
0x73, 0x20, 0x73, 0x6f, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20,
0x69, 0x74, 0x4d, 0x00, 0x01, 0x35, 0x00, 0xb3, 0x61, 0x6e,
0x20, 0x61, 0x64, 0x6a, 0x61, 0x63, 0x65, 0x6e, 0x74, 0x7c,
0x00, 0x8b, 0x2e, 0x20, 0x49, 0x66, 0x20, 0x79, 0x6f, 0x75,
0x50, 0x00, 0x21, 0x6f, 0x6e, 0x2f, 0x00, 0x00, 0xae, 0x00,
0x04, 0xa6, 0x00, 0x10, 0x2c, 0x1e, 0x00, 0x07, 0x11, 0x00,
0x01, 0x9f, 0x00, 0x94, 0x70, 0x69, 0x63, 0x6b, 0x65, 0x64,
0x20, 0x75, 0x70, 0xd2, 0x00, 0x75, 0x66, 0x61, 0x63, 0x65,
0x20, 0x6f, 0x66, 0x4a, 0x00, 0x36, 0x3b, 0x20, 0x69, 0x60,
0x00, 0x02, 0x51, 0x00, 0x05, 0x25, 0x00, 0x0e, 0x6f, 0x00,
0x4f, 0x6e, 0x6f, 0x6e, 0x2d, 0x73, 0x00, 0x02, 0x41, 0x6e,
0x65, 0x73, 0x73, 0x70, 0x00, 0xfd, 0x15, 0x75, 0x74, 0x20,
0x64, 0x6f, 0x77, 0x6e, 0x20, 0x61, 0x67, 0x61, 0x69, 0x6e,
0x2e, 0x20, 0x28, 0x49, 0x6e, 0x20, 0x67, 0x65, 0x6e, 0x65,
0x72, 0x61, 0x6c, 0x2c, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x65,
0x76, 0x65, 0x72, 0xd0, 0x00, 0x03, 0x49, 0x00, 0x31, 0x74,
0x77, 0x6f, 0x7b, 0x00, 0x12, 0x73, 0x19, 0x01, 0xf2, 0x11,
0x63, 0x6f, 0x6d, 0x65, 0x20, 0x69, 0x6e, 0x74, 0x6f, 0x20,
0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x20, 0x73, 0x77,
0x61, 0x70, 0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x75, 0x72, 0x73,
0x2e, 0x29, 0x89, 0x01, 0x33, 0x6a, 0x6f, 0x62, 0x88, 0x01,
0x70, 0x67, 0x65, 0x74, 0x20, 0x61, 0x6c, 0x6c, 0xd3, 0x01,
0x08, 0x07, 0x01, 0x12, 0x73, 0xbe, 0x00, 0x00, 0x62, 0x00,
0x00, 0x1b, 0x00, 0x02, 0x62, 0x00, 0x09, 0xde, 0x00, 0x22,
0x61, 0x74, 0x1d, 0x00, 0x00, 0x43, 0x02, 0x20, 0x74, 0x69,
0x62, 0x02, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x20, 0x79,
0xe9, 0x01, 0x00, 0x9f, 0x02, 0x50, 0x64, 0x20, 0x74, 0x72,
0x79, 0x48, 0x00, 0x20, 0x64, 0x6f, 0xb3, 0x01, 0x20, 0x69,
0x6e, 0x96, 0x02, 0x21, 0x66, 0x65, 0x9d, 0x02, 0xf1, 0x01,
0x70, 0x6f, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x2e, 0x20,
0x0a, 0x55, 0x6e, 0x6c, 0x69, 0x6b, 0x10, 0x02, 0x05, 0xc5,
0x02, 0x06, 0xa1, 0x02, 0xf2, 0x01, 0x2c, 0x20, 0x6d, 0x79,
0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x68,
0x61, 0x73, 0xf0, 0x01, 0x50, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x28, 0x00, 0xd0, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65,
0x3a, 0x20, 0x6f, 0x6e, 0x63, 0x65, 0x7e, 0x00, 0xc0, 0x27,
0x76, 0x65, 0x20, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x65,
0x64, 0x53, 0x00, 0x02, 0xe6, 0x02, 0x43, 0x77, 0x69, 0x74,
0x68, 0x8d, 0x02, 0x01, 0x46, 0x01, 0x30, 0x69, 0x6e, 0x67,
0xe3, 0x00, 0x13, 0x61, 0xf0, 0x00, 0x01, 0xe7, 0x02, 0x11,
0x2c, 0x64, 0x01, 0xa2, 0x63, 0x61, 0x6e, 0x20, 0x63, 0x68,
0x61, 0x6e, 0x67, 0x65, 0xbf, 0x01, 0xa1, 0x74, 0x72, 0x69,
0x61, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x25, 0x00, 0x00,
0xd6, 0x00, 0x03, 0xf8, 0x01, 0x50, 0x6e, 0x79, 0x20, 0x6f,
0x66, 0x22, 0x00, 0xb0, 0x65, 0x74, 0x72, 0x61, 0x68, 0x65,
0x64, 0x72, 0x6f, 0x6e, 0x2c, 0x9e, 0x00, 0x33, 0x6f, 0x63,
0x74, 0x0f, 0x00, 0x30, 0x20, 0x6f, 0x72, 0x11, 0x00, 0x43,
0x69, 0x63, 0x6f, 0x73, 0x12, 0x00, 0xf0, 0x16, 0x2e, 0x20,
0x0a, 0x5b, 0x32, 0x5d, 0x20, 0x68, 0x74, 0x74, 0x70, 0x3a,
0x2f, 0x2f, 0x77, 0x77, 0x77, 0x33, 0x2e, 0x73, 0x79, 0x6d,
0x70, 0x61, 0x74, 0x69, 0x63, 0x6f, 0x2e, 0x63, 0x61, 0x2f,
0x70, 0x61, 0x75, 0x6c, 0x73, 0x85, 0x03, 0x10, 0x2f, 0xab,
0x00, 0x11, 0x2f, 0x3d, 0x03, 0xa1, 0x68, 0x74, 0x6d, 0x20,
0x0a, 0x0a, 0x23, 0x34, 0x2e, 0x31, 0x00, 0x04, 0x01, 0xda,
0x01, 0x42, 0x72, 0x6f, 0x6c, 0x73, 0x09, 0x04, 0x01, 0xe0,
0x00, 0x01, 0xb6, 0x00, 0x92, 0x62, 0x65, 0x20, 0x70, 0x6c,
0x61, 0x79, 0x65, 0x64, 0xee, 0x00, 0x20, 0x65, 0x69, 0x1d,
0x04, 0x00, 0x03, 0x01, 0x00, 0x60, 0x03, 0x72, 0x62, 0x6f,
0x61, 0x72, 0x64, 0x20, 0x6f, 0x10, 0x00, 0x40, 0x6d, 0x6f,
0x75, 0x73, 0x79, 0x01, 0xd0, 0x4c, 0x65, 0x66, 0x74, 0x2d,
0x63, 0x6c, 0x69, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0xd1, 0x00,
0x42, 0x77, 0x68, 0x65, 0x72, 0xba, 0x02, 0x10, 0x68, 0x34,
0x01, 0x91, 0x6e, 0x64, 0x6f, 0x77, 0x20, 0x77, 0x69, 0x6c,
0x6c, 0xd2, 0x01, 0x06, 0xfd, 0x01, 0x42, 0x28, 0x6f, 0x72,
0x20, 0x7b, 0x04, 0xe6, 0x73, 0x6f, 0x6c, 0x69, 0x64, 0x29,
0x20, 0x74, 0x6f, 0x77, 0x61, 0x72, 0x64, 0x73, 0x5d, 0x00,
0xca, 0x20, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x2e,
0x20, 0x0a, 0x54, 0xe7, 0x03, 0x10, 0x63, 0xc0, 0x01, 0x20,
0x6c, 0x73, 0x03, 0x04, 0x00, 0xa1, 0x01, 0x1e, 0x6f, 0xa5,
0x03, 0x38, 0x69, 0x74, 0x73, 0x97, 0x01, 0x22, 0x20, 0x69,
0x8f, 0x00, 0x10, 0x66, 0x5a, 0x02, 0x41, 0x63, 0x61, 0x72,
0x64, 0x20, 0x02, 0x50, 0x64, 0x69, 0x72, 0x65, 0x63, 0x04,
0x02, 0x41, 0x73, 0x2e, 0x20, 0x4f, 0x21, 0x00, 0x0c, 0xaa,
0x01, 0x22, 0x73, 0x2c, 0x8f, 0x00, 0x31, 0x61, 0x70, 0x70,
0xee, 0x01, 0x1a, 0x66, 0x6d, 0x04, 0x06, 0x42, 0x00, 0x01,
0x85, 0x03, 0xf2, 0x0a, 0x6d, 0x6f, 0x72, 0x65, 0x20, 0x61,
0x70, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x61, 0x74, 0x65,
0x2e, 0x20, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x61, 0xfc,
0x00, 0x40, 0x6d, 0x65, 0x6e, 0x74, 0x27, 0x00, 0xb2, 0x64,
0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x20,
0x2c, 0x01, 0x10, 0x69, 0xbc, 0x03, 0xe0, 0x65, 0x73, 0x6e,
0x27, 0x74, 0x20, 0x6d, 0x61, 0x6b, 0x65, 0x20, 0x73, 0x65,
0x6e, 0x5b, 0x01, 0x13, 0x54, 0xb1, 0x00, 0x02, 0x6e, 0x00,
0xbb, 0x73, 0x75, 0x72, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x69,
0x6e, 0x67, 0xf6, 0x04, 0x04, 0x6c, 0x01, 0x70, 0x6e, 0x75,
0x6d, 0x65, 0x72, 0x69, 0x63, 0x14, 0x00, 0xc0, 0x70, 0x61,
0x64, 0x20, 0x28, 0x60, 0x37, 0x27, 0x2c, 0x20, 0x60, 0x39,
0x05, 0x00, 0x10, 0x31, 0x05, 0x00, 0x33, 0x33, 0x27, 0x29,
0xe4, 0x01, 0x02, 0x38, 0x01, 0xa7, 0x66, 0x6f, 0x72, 0x20,
0x64, 0x69, 0x61, 0x67, 0x6f, 0x6e, 0xa1, 0x00, 0x53, 0x2e,
0x20, 0x0a, 0x28, 0x41, 0x4d, 0x01, 0x13, 0x61, 0xdb, 0x00,
0x81, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x47,
0x01, 0x12, 0x73, 0xf1, 0x00, 0x40, 0x20, 0x32, 0x2e, 0x31,
0xb8, 0x05, 0x02, 0x88, 0x01, 0x60, 0x61, 0x76, 0x61, 0x69,
0x6c, 0x61, 0x8a, 0x03, 0x12, 0x29, 0x67, 0x02, 0x12, 0x32,
0x67, 0x02, 0xa1, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74,
0x65, 0x72, 0x73, 0xc4, 0x01, 0x18, 0x73, 0x12, 0x00, 0x00,
0x3e, 0x00, 0x06, 0x39, 0x00, 0x51, 0x20, 0x66, 0x72, 0x6f,
0x6d, 0x76, 0x00, 0xe0, 0x60, 0x43, 0x75, 0x73, 0x74, 0x6f,
0x6d, 0x2e, 0x2e, 0x2e, 0x27, 0x20, 0x6f, 0x70, 0x6c, 0x00,
0x04, 0xe1, 0x00, 0xf0, 0x03, 0x60, 0x54, 0x79, 0x70, 0x65,
0x27, 0x20, 0x6d, 0x65, 0x6e, 0x75, 0x2e, 0x20, 0x0a, 0x5f,
0x54, 0x79, 0x70, 0x2e, 0x05, 0x02, 0x40, 0x02, 0x91, 0x5f,
0x20, 0x0a, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x41, 0x02,
0x01, 0x14, 0x00, 0x06, 0x1a, 0x02, 0x10, 0x28, 0x71, 0x03,
0x52, 0x68, 0x65, 0x6e, 0x63, 0x65, 0x1d, 0x00, 0x33, 0x68,
0x61, 0x70, 0x68, 0x05, 0x02, 0x1f, 0x02, 0x29, 0x29, 0x3a,
0x81, 0x03, 0x02, 0x1b, 0x05, 0x07, 0x84, 0x03, 0x4b, 0x2c,
0x20, 0x6f, 0x72, 0x82, 0x03, 0xfd, 0x14, 0x5f, 0x57, 0x69,
0x64, 0x74, 0x68, 0x20, 0x2f, 0x20, 0x74, 0x6f, 0x70, 0x5f,
0x2c, 0x20, 0x5f, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20,
0x2f, 0x20, 0x62, 0x6f, 0x74, 0x74, 0x6f, 0x6d, 0x5f, 0x20,
0x0a, 0x4f, 0x1b, 0x04, 0x50, 0x68, 0x6f, 0x72, 0x69, 0x7a,
0x53, 0x05, 0x11, 0x6c, 0x02, 0x04, 0x14, 0x76, 0x1d, 0x02,
0x64, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x88, 0x02, 0x0e,
0x30, 0x04, 0x14, 0x2c, 0xdf, 0x01, 0x10, 0x62, 0xa9, 0x07,
0x13, 0x66, 0x1f, 0x00, 0x24, 0x6c, 0x65, 0xfa, 0x01, 0x00,
0x84, 0x00, 0x00, 0x52, 0x00, 0x03, 0x7c, 0x00, 0x50, 0x20,
0x72, 0x6f, 0x77, 0x73, 0x3c, 0x07, 0xd0, 0x70, 0x65, 0x63,
0x74, 0x69, 0x76, 0x65, 0x6c, 0x79, 0x2e, 0x20, 0x0a, 0x00,
};
const unsigned short help_text_len = 2051;
const char quick_help_text[] = "Pick up all the blue squares by rolling the cube over them.";