Skip to content

Conway's game of life implemented in Python (using pygame)

License

Notifications You must be signed in to change notification settings

jmateusms/conway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's game of life

This is an implementation of Conway's game of life in Python, using pygame for rendering.

conway-demo

There are two game modes:

Conway simulation

Simulates Conway's game of life.

  • You can click on cells to toggle them on or off.
  • Pressing space advances the game by one step.
  • Preesing e toggles auto-advancing the game.
  • While auto-advancing, you can press the up/right arrow keys to increase the speed, and the down/left arrow keys to decrease the speed.

Labyrinth game

Inspired by SigmaGeek/Stone Automata Maze Challenge.

  • Live cells are walls.
  • The player is the red cell.
  • The goal is the green cell.
  • You can left-click on a cell to toggle it on or off.
  • You can right-click on a cell to set it as the player or the goal.
  • Walls are deadly, so don't touch them!

Running

Tested on Python 3.10:

pip install -r requirements.txt
python main.py

About

Conway's game of life implemented in Python (using pygame)

Resources

License

Stars

Watchers

Forks

Languages