A two-state totalistic rule, expressed in terms of two sets (a
2-tuple): the set of totals that will result in a dead cell
becoming alive, and the set of totals that will result in a live
cell remaining alive; all other totals will result in a cell
becoming or remaining dead. Also included is the standard
notation including the list as numbers separated by a slash; e.g.,
the rule for Conway's Game of Life would be 3/23.
Methods
|
|
__init__
clear
parseRule
populate
rule
|
|
__init__
|
__init__ ( self, ruleCode )
|
|
clear
|
clear ( self )
Create and clear the table.
|
|
parseRule
|
parseRule ( self, ruleString )
Translate a string into a rule code.
|
|
populate
|
populate ( self, ruleCode )
Populate the table.
|
|
rule
|
rule ( self, address )
|
|