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,55 +1,133 @@
/* auto-generated by genhelp.sh */
/* auto-generated on Aug 16 2017 by genhelp.sh */
/* orig 1684 comp 1231 ratio 0.730998 level 11 saved 453 */
/* DO NOT EDIT! */
const char help_text[] =
"#Chapter 38: Unruly "
"\n"
"You are given a grid of squares, which you must colour either black "
"or white. Some squares are provided as clues; the rest are left for "
"you to fill in. Each row and column must contain the same number "
"of black and white squares, and no row or column may contain three "
"consecutive squares of the same colour. "
"\n"
"This puzzle type was invented by Adolfo Zanellati, under the name "
"`Tohu wa Vohu'. See [21] for more details. "
"\n"
"Unruly was contributed to this collection by Lennard Sprong. "
"\n"
"[21] http://www.janko.at/Raetsel/Tohu-Wa-Vohu/index.htm "
"\n"
"\n#38.1 Unruly controls "
"\n"
"To play Unruly, click the mouse in a square to change its colour. "
"Left-clicking an empty square will turn it black, and right-clicking "
"will turn it white. Keep clicking the same button to cycle through "
"the three possible states for the square. If you middle-click in a "
"square it will be reset to empty. "
"\n"
"You can also use the cursor keys to move around the grid. Pressing "
"the return or space keys will turn an empty square black or white "
"respectively (and then cycle the colours in the same way as the "
"mouse buttons), and pressing Backspace will reset a square to empty. "
"\n"
"(All the actions described in section 2.1 are also available.) "
"\n"
"\n#38.2 Unruly parameters "
"\n"
"These parameters are available from the `Custom...' option on the "
"`Type' menu. "
"\n"
"_Width_, _Height_ "
"\n"
"Size of grid in squares. (Note that the rules of the game "
"require both the width and height to be even numbers.) "
"\n"
"_Difficulty_ "
"\n"
"Controls the difficulty of the generated puzzle. "
"\n"
"_Unique rows and columns_ "
"\n"
"If enabled, no two rows are permitted to have exactly the same "
"pattern, and likewise columns. (A row and a column can match, "
"though.) "
"\n"
;
#include "help.h"
const char help_text[] = {
0xf0, 0x4c, 0x23, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x20, 0x33, 0x38, 0x3a, 0x20, 0x55, 0x6e, 0x72, 0x75, 0x6c,
0x79, 0x20, 0x0a, 0x59, 0x6f, 0x75, 0x20, 0x61, 0x72, 0x65,
0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x61, 0x20, 0x67,
0x72, 0x69, 0x64, 0x20, 0x6f, 0x66, 0x20, 0x73, 0x71, 0x75,
0x61, 0x72, 0x65, 0x73, 0x2c, 0x20, 0x77, 0x68, 0x69, 0x63,
0x68, 0x20, 0x79, 0x6f, 0x75, 0x20, 0x6d, 0x75, 0x73, 0x74,
0x20, 0x63, 0x6f, 0x6c, 0x6f, 0x75, 0x72, 0x20, 0x65, 0x69,
0x74, 0x68, 0x65, 0x72, 0x20, 0x62, 0x6c, 0x61, 0x63, 0x6b,
0x20, 0x6f, 0x72, 0x26, 0x00, 0x84, 0x74, 0x65, 0x2e, 0x20,
0x53, 0x6f, 0x6d, 0x65, 0x3b, 0x00, 0x01, 0x57, 0x00, 0xf1,
0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20,
0x61, 0x73, 0x20, 0x63, 0x6c, 0x75, 0x65, 0x73, 0x3b, 0x20,
0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x74, 0x20, 0x00,
0x81, 0x6c, 0x65, 0x66, 0x74, 0x20, 0x66, 0x6f, 0x72, 0x61,
0x00, 0xf0, 0x09, 0x74, 0x6f, 0x20, 0x66, 0x69, 0x6c, 0x6c,
0x20, 0x69, 0x6e, 0x2e, 0x20, 0x45, 0x61, 0x63, 0x68, 0x20,
0x72, 0x6f, 0x77, 0x20, 0x61, 0x6e, 0x64, 0x75, 0x00, 0x34,
0x75, 0x6d, 0x6e, 0x81, 0x00, 0x51, 0x6e, 0x74, 0x61, 0x69,
0x6e, 0x47, 0x00, 0xe2, 0x73, 0x61, 0x6d, 0x65, 0x20, 0x6e,
0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x6f, 0x66, 0x8e, 0x00,
0x00, 0x31, 0x00, 0x02, 0x8f, 0x00, 0x05, 0xc4, 0x00, 0x01,
0x13, 0x00, 0x21, 0x6e, 0x6f, 0x4f, 0x00, 0x25, 0x6f, 0x72,
0x4e, 0x00, 0x27, 0x61, 0x79, 0x4d, 0x00, 0x30, 0x72, 0x65,
0x65, 0x0e, 0x00, 0x76, 0x73, 0x65, 0x63, 0x75, 0x74, 0x69,
0x76, 0xc5, 0x00, 0x25, 0x6f, 0x66, 0x6a, 0x00, 0x03, 0xfc,
0x00, 0xf1, 0x2c, 0x2e, 0x20, 0x0a, 0x54, 0x68, 0x69, 0x73,
0x20, 0x70, 0x75, 0x7a, 0x7a, 0x6c, 0x65, 0x20, 0x74, 0x79,
0x70, 0x65, 0x20, 0x77, 0x61, 0x73, 0x20, 0x69, 0x6e, 0x76,
0x65, 0x6e, 0x74, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x41,
0x64, 0x6f, 0x6c, 0x66, 0x6f, 0x20, 0x5a, 0x61, 0x6e, 0x65,
0x6c, 0x6c, 0x61, 0x74, 0x69, 0x2c, 0x20, 0x75, 0x6e, 0x64,
0x65, 0x72, 0x4b, 0x00, 0x10, 0x6e, 0x4b, 0x00, 0xf1, 0x09,
0x60, 0x54, 0x6f, 0x68, 0x75, 0x20, 0x77, 0x61, 0x20, 0x56,
0x6f, 0x68, 0x75, 0x27, 0x2e, 0x20, 0x53, 0x65, 0x65, 0x20,
0x5b, 0x32, 0x31, 0x5d, 0x0c, 0x01, 0xf2, 0x00, 0x6d, 0x6f,
0x72, 0x65, 0x20, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73,
0x2e, 0x20, 0x0a, 0xab, 0x01, 0x00, 0x64, 0x00, 0x01, 0xb0,
0x00, 0x70, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x2e,
0x01, 0x40, 0x74, 0x68, 0x69, 0x73, 0x96, 0x00, 0x70, 0x6c,
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x7a, 0x00, 0xf1, 0x02,
0x4c, 0x65, 0x6e, 0x6e, 0x61, 0x72, 0x64, 0x20, 0x53, 0x70,
0x72, 0x6f, 0x6e, 0x67, 0x2e, 0x20, 0x0a, 0x56, 0x00, 0xf0,
0x0d, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
0x77, 0x2e, 0x6a, 0x61, 0x6e, 0x6b, 0x6f, 0x2e, 0x61, 0x74,
0x2f, 0x52, 0x61, 0x65, 0x74, 0x73, 0x65, 0x6c, 0x2f, 0x8a,
0x00, 0x40, 0x2d, 0x57, 0x61, 0x2d, 0x8a, 0x00, 0xf3, 0x03,
0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x68, 0x74, 0x6d,
0x20, 0x0a, 0x0a, 0x23, 0x33, 0x38, 0x2e, 0x31, 0x29, 0x02,
0x02, 0x7a, 0x00, 0xc3, 0x6f, 0x6c, 0x73, 0x20, 0x0a, 0x54,
0x6f, 0x20, 0x70, 0x6c, 0x61, 0x79, 0x19, 0x00, 0x71, 0x2c,
0x20, 0x63, 0x6c, 0x69, 0x63, 0x6b, 0xda, 0x00, 0xa3, 0x6d,
0x6f, 0x75, 0x73, 0x65, 0x20, 0x69, 0x6e, 0x20, 0x61, 0x3f,
0x01, 0x00, 0xa4, 0x00, 0xa5, 0x63, 0x68, 0x61, 0x6e, 0x67,
0x65, 0x20, 0x69, 0x74, 0x73, 0x40, 0x01, 0x51, 0x4c, 0x65,
0x66, 0x74, 0x2d, 0x37, 0x00, 0xc4, 0x69, 0x6e, 0x67, 0x20,
0x61, 0x6e, 0x20, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x34, 0x00,
0x10, 0x77, 0x03, 0x02, 0x72, 0x74, 0x75, 0x72, 0x6e, 0x20,
0x69, 0x74, 0xd3, 0x01, 0x02, 0xc1, 0x01, 0x46, 0x72, 0x69,
0x67, 0x68, 0x37, 0x00, 0x09, 0x27, 0x00, 0x04, 0x7f, 0x02,
0x54, 0x4b, 0x65, 0x65, 0x70, 0x20, 0x22, 0x00, 0x06, 0xb8,
0x01, 0x61, 0x62, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x8d, 0x00,
0x40, 0x79, 0x63, 0x6c, 0x65, 0xee, 0x01, 0x40, 0x6f, 0x75,
0x67, 0x68, 0x21, 0x00, 0x03, 0xfa, 0x01, 0xf1, 0x00, 0x70,
0x6f, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x73, 0x74,
0x61, 0x74, 0x65, 0x73, 0x86, 0x01, 0x24, 0x74, 0x68, 0x06,
0x02, 0x42, 0x2e, 0x20, 0x49, 0x66, 0x02, 0x03, 0x52, 0x69,
0x64, 0x64, 0x6c, 0x65, 0x84, 0x00, 0x09, 0xe8, 0x00, 0x22,
0x69, 0x74, 0x90, 0x00, 0x11, 0x62, 0xdb, 0x02, 0x52, 0x65,
0x74, 0x20, 0x74, 0x6f, 0xd5, 0x00, 0x12, 0x2e, 0x62, 0x03,
0xc1, 0x63, 0x61, 0x6e, 0x20, 0x61, 0x6c, 0x73, 0x6f, 0x20,
0x75, 0x73, 0x65, 0x59, 0x00, 0xb0, 0x63, 0x75, 0x72, 0x73,
0x6f, 0x72, 0x20, 0x6b, 0x65, 0x79, 0x73, 0x2c, 0x00, 0xb0,
0x6d, 0x6f, 0x76, 0x65, 0x20, 0x61, 0x72, 0x6f, 0x75, 0x6e,
0x64, 0x1f, 0x00, 0x01, 0x86, 0x03, 0x74, 0x2e, 0x20, 0x50,
0x72, 0x65, 0x73, 0x73, 0xca, 0x00, 0x20, 0x72, 0x65, 0xed,
0x00, 0x00, 0xc0, 0x02, 0x51, 0x73, 0x70, 0x61, 0x63, 0x65,
0x3b, 0x00, 0x06, 0x05, 0x01, 0x0c, 0x46, 0x01, 0x0a, 0x9a,
0x03, 0x01, 0x96, 0x00, 0x30, 0x70, 0x65, 0x63, 0xda, 0x02,
0x52, 0x6c, 0x79, 0x20, 0x28, 0x61, 0x67, 0x00, 0x15, 0x6e,
0x10, 0x01, 0x04, 0xdc, 0x02, 0x28, 0x73, 0x20, 0x5a, 0x03,
0x65, 0x77, 0x61, 0x79, 0x20, 0x61, 0x73, 0xdb, 0x01, 0x04,
0x49, 0x01, 0x22, 0x73, 0x29, 0x91, 0x01, 0x14, 0x70, 0x9f,
0x00, 0x40, 0x42, 0x61, 0x63, 0x6b, 0x95, 0x00, 0x02, 0xbc,
0x01, 0x02, 0x02, 0x01, 0x05, 0x1c, 0x01, 0x08, 0x0b, 0x01,
0x41, 0x28, 0x41, 0x6c, 0x6c, 0x4f, 0x00, 0x11, 0x61, 0xb0,
0x02, 0xb0, 0x73, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
0x62, 0x65, 0x64, 0x78, 0x00, 0x13, 0x73, 0xc6, 0x02, 0x30,
0x32, 0x2e, 0x31, 0x1c, 0x04, 0x02, 0x31, 0x01, 0xb3, 0x61,
0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x29,
0x93, 0x02, 0x14, 0x32, 0x93, 0x02, 0xa0, 0x70, 0x61, 0x72,
0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x92, 0x03, 0x36,
0x65, 0x73, 0x65, 0x12, 0x00, 0x01, 0x7d, 0x04, 0x06, 0x3c,
0x00, 0x51, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x79, 0x00, 0xe1,
0x60, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2e, 0x2e, 0x2e,
0x27, 0x20, 0x6f, 0x70, 0x6f, 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, 0x78, 0x02,
0xa2, 0x5f, 0x20, 0x0a, 0x53, 0x69, 0x7a, 0x65, 0x20, 0x6f,
0x66, 0x22, 0x05, 0x24, 0x69, 0x6e, 0x22, 0x04, 0x60, 0x2e,
0x20, 0x28, 0x4e, 0x6f, 0x74, 0x45, 0x01, 0x22, 0x61, 0x74,
0xa9, 0x01, 0x26, 0x75, 0x6c, 0x38, 0x04, 0x30, 0x67, 0x61,
0x6d, 0x7d, 0x01, 0x30, 0x71, 0x75, 0x69, 0x94, 0x01, 0x22,
0x6f, 0x74, 0x75, 0x02, 0x10, 0x77, 0x5d, 0x00, 0x01, 0x44,
0x01, 0x10, 0x68, 0x5e, 0x00, 0x00, 0x2f, 0x02, 0x00, 0x3b,
0x02, 0x43, 0x65, 0x76, 0x65, 0x6e, 0xcf, 0x04, 0x10, 0x73,
0xef, 0x00, 0xf2, 0x00, 0x5f, 0x44, 0x69, 0x66, 0x66, 0x69,
0x63, 0x75, 0x6c, 0x74, 0x79, 0x5f, 0x20, 0x0a, 0x43, 0x82,
0x03, 0x02, 0x90, 0x01, 0x15, 0x64, 0x1a, 0x00, 0x05, 0x6a,
0x00, 0x83, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,
0x99, 0x04, 0x00, 0xc5, 0x00, 0x60, 0x55, 0x6e, 0x69, 0x71,
0x75, 0x65, 0xf8, 0x04, 0x17, 0x73, 0x48, 0x05, 0x90, 0x73,
0x5f, 0x20, 0x0a, 0x49, 0x66, 0x20, 0x65, 0x6e, 0x1b, 0x01,
0x20, 0x64, 0x2c, 0x1a, 0x05, 0x21, 0x74, 0x77, 0x1e, 0x05,
0x03, 0xb4, 0x05, 0x53, 0x65, 0x72, 0x6d, 0x69, 0x74, 0x63,
0x04, 0xc6, 0x68, 0x61, 0x76, 0x65, 0x20, 0x65, 0x78, 0x61,
0x63, 0x74, 0x6c, 0x79, 0x1a, 0x02, 0x72, 0x70, 0x61, 0x74,
0x74, 0x65, 0x72, 0x6e, 0x08, 0x02, 0x83, 0x6c, 0x69, 0x6b,
0x65, 0x77, 0x69, 0x73, 0x65, 0x5f, 0x00, 0x00, 0x12, 0x01,
0x15, 0x41, 0xbb, 0x05, 0x14, 0x61, 0x6f, 0x05, 0x20, 0x63,
0x61, 0x73, 0x05, 0xf0, 0x01, 0x74, 0x63, 0x68, 0x2c, 0x20,
0x74, 0x68, 0x6f, 0x75, 0x67, 0x68, 0x2e, 0x29, 0x20, 0x0a,
0x00,
};
const unsigned short help_text_len = 1684;
const char quick_help_text[] = "Fill in the black and white grid to avoid runs of three.";