/game_of_life

My implementation of Conway's Game of Life

Primary LanguagePython

Conway's Game of Life

This is my own implementation of Conway's Game of Life in Python 3.6, using PyGame to render the application.

Game of Life

Usage

1. Executable

There is an executable version of the application That doesn't require to install Python or any other dependencies. Is ready to use.

Just download the zipped file, extract it's contents, and run the main.exe executable file.

2. Using a Python environment

Clone the repository, and activate your Python 3.6 environment. From the project folder install the necessary packages with:

pip install -r requirements.txt

Then run the application with:

python main.py

3. Generate executable from source code

Same steps as point 2, but instead of running the application from the main.py file, generate a standalone executable with pyinstaller.

First we install the package in our environment with:

pip install pyinstaller

And then we generate the executable:

pyinstaller --noconsole --add-data=game/assets/*;game/assets --add-data=game/boards/*;game/boards main.py

The file will be in repo/dir/dist/main/main.exe.

Resources