Skip to content

andrewpahl1/Conways-Game-of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Overview

This project implements a finite variation of Conway's Game of Life using Pygame.

How to run this program

  1. Download gui.py and life.py.
  2. If you don't already have it, install Pygame.
  3. Open the command line and navigate to the folder that holds the two .py files.
  4. Type "python gui.py" into the command line and press enter.

Game controls

Mouse

  • Click on any cell to toggle it between living (black) and dead (white).
  • Click and drag to toggle mulitple cells. Clicking and dragging from a dead cell brings cells to life, while clicking and dragging from a living cell kills them.

Keyboard

  • Space bar: Pauses/unpauses the program.
  • c: Kills all cells.
  • Numbers 1-5: Change the game speed, with 1 being the slowest speed setting and 5 being the fastest.
  • +: Increase the size of the cells (fewer cells on screen with the same window size).
  • -: Decrease the size of the cells (more cells on screen with the same window size).
  • ?: Colors living cells randomly.

About

Conway's Game of Life implemented with Pygame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages