|
UsingRuleTables
Tells you how to use the rule tables listed, in Golly or your own program.
1. Use them in Golly:The rule table format started with Golly's need to support different CA. Golly is distributed with many of these rule tables already included, so just explore the example patterns to see them in action. Or, for new .table files:
Golly also accepts rule tree files, which are actually simpler for programs to utilise since they map directly onto a lookup function. More details here. Golly comes with a utility to convert a rule table into a rule tree. The only disadvantage of rule trees is that they are harder to author directly. At the moment they also only support the von Neumann and Moore neighborhoods. 2. Use them in your own programs:Browse the source code here:
3. Export them from other programs:make-ruletable.cpp shows how to create rule table files if you have an existing CA implementation you want to convert. It's only in C++ at the moment but could be adapted for other languages. |