Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 554 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 554 Bytes

PyGame of Life

John Conway's famous Game of Life implemented in Python with PyGame.

Run

The only requirement is PyGame, install it with pip.

pip install pygame

Then run it with the following command.

python main.py

Controls

The following controls are available.

  • MOUSE click to activate new cells
  • SPACEBAR pause the simulation
  • N do a single iteration
  • BACKSPACE clear the board
  • 0-9 spawn a number of gliders at random positions
  • ESCAPE or Q to quit

Example