Skip to content

Dan1e1B/Game-of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Game of Life

A simple Conway's Game of Life implementation using Python and Pygame. Click cells to toggle them alive or dead, then press Space to start and stop the simulation.

Requirements

  • Python 3.8+ (recommended)
  • pygame

Install

  1. Open a terminal in the project folder.
  2. Install Pygame:
pip install pygame

If your system uses python3 instead of python, use:

python3 -m pip install pygame

Run

From the project directory, run:

python "Game of Life.py"

or, if needed:

python3 "Game of Life.py"

Controls

  • Space: Toggle simulation start/pause and switch the step speed.
  • Left mouse button: Click cells to toggle alive/dead when the simulation is paused.
  • Resize the window freely to adjust the view.

Notes

  • The grid updates automatically when the simulation is running.
  • Cell editing is intended while paused to set your initial patterns.
  • The script uses a resizable Pygame window.

About

Zero Person Game - Conway’s Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages