This repository contains a conways game of life developped in python, but currently the project is not actually optimized.
The conway's game of life is a cellular automate made by John Horton Conway in 1970. It's a complex game simulation dispite the easy rules.
The rules of the conway's game of life are very easy to understand, the game is composed by a grid of tiles called cells, cells can have 2 differents states, dead or alive, and their state depend by the neighbors:
- 2 neighbors: the cells' state doesn't change.
- 3 neighbors: the cells' state becomes / stay alive
- others: the cells' state becomes / stays dead
- FACON Nicolas : creator of the project
- Random Grid Generation
- Clear Grid
- Previous Step
- Next Step
- Pause / Resume
-
Windows
-
Linux:
write this in terminal
#if python is not installed yet. sudo apt install python3.8 #if pygame is not installed yet. pip install pygame #if pygame_gui is not installed yet. pip install pygame_gui
Write this in your terminal (or your Git Bash terminal).
git clone https://github.com/FACON-Nicolas/conways-life-game
cd conways-life-game
#python3 or py on windows
python3 src/game.py
many buttons are presents in the window, but, some inputs can be used.
Key | Action |
---|---|
SPACE | launch the life |
RIGHT | next step of the life |
LEFT | last step of the life |