2019-02-17 10:11:27 +00:00
|
|
|
from cellular_automaton.cellular_automaton import Rule
|
2019-02-16 17:05:26 +00:00
|
|
|
from typing import Type
|
|
|
|
|
|
|
|
|
|
|
|
class CellularAutomatonState:
|
|
|
|
def __init__(self, cells, dimension, evolution_rule: Type[Rule]):
|
|
|
|
self.cells = cells
|
|
|
|
self.dimension = dimension
|
|
|
|
self.evolution_rule = evolution_rule
|
|
|
|
self.current_evolution_step = -1
|