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