def setRule(self, rulenum): rule = ElementaryRule.getRule(rulenum)
def __init__(self, init, rulenum): initial = init state = init width = len(init) rule = ElementaryRule.getRule(rulenum)