Skip to content

Implementation of Conway's Game Of Life in a few lines of Python. Keep it simple and learn how to code this game!

Notifications You must be signed in to change notification settings

matheusgomes28/pygame-life

Repository files navigation

Pygame Of Life

Implementation of Conway's "Game Of Life" in less than 100 lines of modern Python.

The engine is entirely and purely implemented using vanilla Python 3.9, and Pygame is used for the graphics front.

Running The Game

I recommend using the latest version of Python (3.9) on a separate environment to your normal development one. Two good options are Anaconda or Virtualenv, just create a new environment for this game and install the dependencies with:

pip install -r requirements.txt

Given that all the dependencies were installed, running the game is as simple as

python pygame_life.py

Understand The Code

This game was created for a post in my personal blog. The intention was to show that, by keeping it simple, Conway's Game Of Life can be implemented in a few lines of Python.

About

Implementation of Conway's Game Of Life in a few lines of Python. Keep it simple and learn how to code this game!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages