|const char *||ruleTables |
These are cellular automata rule lookup tables. The even strings are the names, the odd strings are the tables. The list is terminated by two NULL string pointers. The rule table contains a magic number in the first 4 bytes, a neighborhood code in the next four bytes, and a table size byte count in the following four bytes, followed by that many bytes of rule table.
The short 12 byte rules (with rule table size 0) are just used to give names to built-in neighborhood rules.
They were generated by Forth programs, and written out to files. I got tired of porting them around as resource files, so translated them to C data to be compiled into the program.
Note: These strings are so big, they make Microsoft Visual C++ 5.0 choke. It requires that you adjust the project settings to use the "/Zm" flag with a value of, say, 200 percent of normal: "/Zm200".
Definition in file ruletables.cpp.
|const char* ruleTables|