Skip to content

iamAmer/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

alt text

Overview

This project is an implementation of Conway's Game of Life, a cellular automaton devised by mathematician John Conway. The game is a zero-player game, meaning its evolution is determined by its initial state, requiring no further input. The game is played on a grid of cells, each of which can be alive (1) or dead (0). The state of each cell evolves based on simple rules:

  1. Survival: A live cell with 2 or 3 live neighbors survives.
  2. Death: A live cell with fewer than 2 or more than 3 live neighbors dies.
  3. Birth: A dead cell with exactly 3 live neighbors becomes alive.

This implementation uses Python with the tkinter library for the graphical user interface (GUI) and numpy for efficient grid operations.


Features

  • Random Initialization: The grid is initialized with random alive and dead cells.
  • Squared Cells: The cells are perfectly squared and fit within the screen dimensions.
  • Full-Screen Mode: The simulation runs in full-screen mode for an immersive experience.
  • Efficient Updates: Only the cells that change between generations are updated, improving performance.

Requirements

To run this project, you need the following:

  • Python 3.x
  • NumPy: For efficient grid operations.
  • Tkinter: For the graphical user interface (usually included with Python).

About

Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages