Exemplo n.º 1
0
    def __init__(self, grid_filename, interval=100):
        """
        Construct the simulation.

        Params:
        - grid_filename: Filename of the initial grid
        - interval: Amount of miliseconds between frames of the animation
        """
        self.ca = CA.from_gridfile(grid_filename)
        self.interval = interval