Game of life simulation model using Pygame and Numpy. The project is modulated under two files including the code for initializing the pygame environment and screen diamensions in GameOfLife.py and the logic code developed using OOPS with functions for getting the adjacent neighbours, colors and creating the n-dimensional array in Grid.py.
-
Sublime text Editor v3.2.2 Build 3211
-
Terminal MacOS Catalina v10.15.1
-
Python Libraries
- pygame
- numpy
- random
- os
The code executes in 3 steps:
- Initializing pygame environment with init and assigning screen resolution, colors, frames rates per second elapsed, scaler variable and a loop for running the events in pygame.
- Inilializing the Grid class to hold the required logic functions
- Functions for creating a 2d array, calculating the number of adjacent neighbours to the current cell, computing cell state for the next generation and finally assigning colors to the dead and live cells.
contributors name and contact info ex.@priyansh0312
- 1.0
- inital release (see commit changes or release history)
GNU General Public License v3.0