Skip to main content

Game of Life

Game of Life is a simple implementation of Conway's Game of Life using NumPy and Pygame's surfarray, able to calculate and show ~1 million cells and 60 generations per second on a very standard CPU.

Kalle Saariaho
Game of Life simulates life; in the game's two dimensional grid every cell is either alive or dead, depending on the number of live cells next to it. The game can easily run thousands of generations, and produces some nice repeating patterns. This implementation is based on NumPy arrays for calculating each new generation and Pygame surfarray for efficiently showing them.



Home Page


Game of Life 1.0 — 3 Aug, 2021 account Comments