Skip to content

AdamPloof/game-of-life

Repository files navigation

Conway's Game of Life in Python & tkinter

Just another implementation of Conway's Game of Life. Since I had never done a version of this before, I thought it'd make a fun weekend project. A few weekends worth of enjoyable tinkering later it was done.

Screenshot of Game of Life implementation This version of the game uses tkinter's Canvas widget to render cells and to provide a way for the user to draw in living cells.

This is probably not the most optimized implementation you'll find, but it gets the job done pretty decently at small board sizes.

Setup

This project uses Pipenv to manage environments and dependencies. You'll probably want to use that to get things set up. That said, the only package you need to run this is NumPy so feel free to use whatever environment manager you prefer.

Once your environment is set up, run python -m main to run the game. Happy evolutions.

Possible improvements for the future

It'd be nice to save custom starting positions to replay them later. There's already a starting postions directory, so just saving the current position on the board as a JSON file and loading it dynamically ought to be pretty straightforward.

About

Python implementation of Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages