https://github.com/victorgoubet/gameoflife
Implementation of the Conway's Game of Life
https://github.com/victorgoubet/gameoflife
evolutionary-algorithms gameoflife python tkinter
Last synced: 10 months ago
JSON representation
Implementation of the Conway's Game of Life
- Host: GitHub
- URL: https://github.com/victorgoubet/gameoflife
- Owner: VictorGoubet
- Created: 2022-11-28T21:43:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T13:06:38.000Z (almost 3 years ago)
- Last Synced: 2025-01-01T19:14:10.747Z (11 months ago)
- Topics: evolutionary-algorithms, gameoflife, python, tkinter
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
Conway's Game of Life
What if the life was governed by three laws ?
Check the code ยป
Report Bug
โข
Request Feature
## About The Project
[![Product Name Screen Shot][product-screenshot]](screenshot.PNG)
The game of life is a automaton where each cell is represented as a simple square. If the square is black, the cell is alive, if not, the cell is dead. The goal is to simulate the evolutions there life cycle using the following simple rules:
* Any live cell with fewer than two live neighbours dies (referred to as underpopulation).
* Any live cell with more than three live neighbours dies (referred to as overpopulation).
* Any live cell with two or three live neighbours lives, unchanged, to the next generation.
* Any dead cell with exactly three live neighbours comes to life.
## Getting Started
### Prerequisites
You will just need python >= 3.0. You can check the version by using the following command.
```sh
> python -V
> 3.0.0
```
### Installation
You can follow the different steps inorder to get the programm working on your computer
1. Clone the repo
```sh
git clone https://github.com/VictorGoubet/GameOfLife.git
```
2. Install python packages
```sh
pip install -r requirements.txt
```
3. Be free to modify the parameters in the **GameOfLife.py** class
```py
game = GameOfLife(epochs=50, n_cells=20, windows_size=600)
```
4. Execute the python script
```sh
python GameOfLife.py
```
The windows should appear! The interface is pretty intuitive, have fun!
-----
[![LinkedIn][linkedin-shield]][linkedin-url]
Victor Goubet - victorgoubet@orange.fr
[forks-shield]: https://img.shields.io/github/forks/VictorGoubet/GameOfLife.svg?style=for-the-badge
[forks-url]: https://github.com/VictorGoubet/GameOfLife/network/members
[stars-shield]: https://img.shields.io/github/stars/VictorGoubet/GameOfLife.svg?style=for-the-badge
[stars-url]: https://img.shields.io/github/issues/VictorGoubet/GameOfLife/stargazers
[issues-shield]: https://img.shields.io/github/issues/VictorGoubet/GameOfLife.svg?style=for-the-badge
[issues-url]: https://github.com/VictorGoubet/GameOfLife/issues
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://www.linkedin.com/in/victorgoubet/
[product-screenshot]: screenshot.PNG