neuropercolation/src/cellular_automaton/ca_state.py

11 lines
318 B
Python
Raw Normal View History

2019-02-16 17:05:26 +00:00
from cellular_automaton.ca_rule 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