DEV Community


Posted on

Project Five (Python): Conway's Game of Life


Hello, this is my fifth posted project. This project was created with the intention of exposing myself to Python, Stack Overflow, GitHub BASH, and Pygame.

Image description


This project uses Pygame to create an interactable GUI. The cells in the Game of Life follow a specific ruleset that determines whether they spawn, die, or continue living.


I hope you enjoy this part of my learning journey.

Background on Conway's Game of Life

Conway's Game of Life is a cellular automaton originally created by John Conway in 1970. The game is a zero-player game where cells interact with each other by abiding to four rules. Thus, the outcome of the game is predetermined by the initial configuration of what cells are alive and dead.

Rules of the game:

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.


Advice is greatly appreciated (post in comment section).

Top comments (0)