neuropercolation/cellular_automaton/_state.py
2019-02-17 11:11:27 +01:00

11 lines
329 B
Python

from cellular_automaton.cellular_automaton import Rule
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