import pygame
import numpy as np
Run the code, the input window appears.
Select all the cells to activated.
Close the window.
The output window appears and runs the simmulation.
The application is run in 'custom mode' by calling the GameOfLife() class and then calling the input() method:
custom = GameOfLife()
custom.input()
The application is run in 'Example mode' by calling the GameOfLife() class and then calling the output() method while specifying a Starting Matrix:
custom = GameOfLife()
custom.output(Example_matrix)
Change the number of cells with:
self.n
Change the evolution speed with:
self.speed
Change the cell look(cell-width, cell-height, margin between cells) with:
self.width
self.height
self.margin