Skip to content

logularjason/gol

Repository files navigation

Using git for version control

Getting the code

git clone https://github.com/logularjason/gol.git

Making a commit

git commit -am "Describe the work you did"

Sending the info to the internet (for sharing with Dad)

git push

Steps to get working after the first git clone

First time setup

Install python 3.10.9. Later versions have trouble with OpenGL.

https://www.python.org/downloads/release/python-3109/

Run the following command ONCE ONLY in your terminal to set up a python virtual environment:

python3 -m venv venv

Then, install some libraries that are required:

source venv/bin/activate
pip3 install PyOpenGL PyOpenGL_accelerate pygame
pip3 install numpy matplotlijb

This did not work under windows - had to download whl files from here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl

See: https://stackoverflow.com/questions/65699670/pyopengl-opengl-error-nullfunctionerror-attempt-to-call-an-undefined-functio

Before coding or running the app

Then, every time before coding, run:

source venv/bin/activate

To run the app

python gol.py

Notes for latesr

Later, we will need to add some things to manage dependencies

(To be done later)

venv/bin/pip3 install pip-tools venv/bin/pip-compile -o requirements.txt requirements.in

Background reading

Initial code that describes how to use Canvas is taken from https://tkdocs.com/tutorial/canvas.html

About

Laura's game of life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages