This project is a Python personal implementation of the well-known "Game of Life", written using object-oriented programming. Although it is not said to be fully optimized, multithreading is being used to speed up the program, and other methods such as multiprocessing or the use of charm4py are currently being implemented.
Before running the code, you should consider using a virtual environment. To do so, you can either use pip or conda :
- verify that pip is installed :
$ pip --version
if not, install it.
When it is done, let's continue the installation :
- install pipenv :
$ pip install --user pipenv
- once it is installed and well configured, run your environment :
$ pipenv shell
- verify that conda is installed :
$ conda --version
if not, install Anaconda.
- then, create your conda environment and launch it:
$ conda create -n my_env
$ conda activate my_env
Before you can have some fun "playing" Conway's Game of Life, you should at least know how to run the code. So here are all the commands yet implemented.
- choose the grid size (int, default to 100) :
$ python -m my_module -gs grid_size
- choose the speed (float, default to 0.005), which is the time between two updates :
$ python -m my_module -gs grid_size -s speed
- random init (bool, default to False if not chosen) and its length (int, default to 10) :
$ python -m my_module -gs grid_size -ri -ril random_init_length
- oscillators :
$ python -m my_module -gs grid_size -bc
$ python -m my_module -gs grid_size -bk
$ python -m my_module -gs grid_size -t
$ python -m my_module -gs grid_size -ggg
The future of this project is to, once significantly/fully optimized, try to make some PyQT in order to create a "Conway's Game of Life app". Thanks for reading this far and stay tuned !