Python program that simulates the Conway's Game of Life. This simulation is developed in Python using PyGame and ThorPy modules for the view and MatplotLib to generate plots.
- Any live cell with two or three live neighbors survives.
- Any dead cell with three live neighbors becomes a live cell.
- All other live cells die in the next generation. Similarly, all other dead cells stay dead.
A board of size n × n is created and from N starting cells, located randomly, the game will start. From this, and with an input parameter m, where m is the number of generations to display this simulation will show a graph showing the number of live, births and deaths in each generation.
Initial state:
Final state:
Set up the params of simulation:
Watch the statistics: