Skip to content

Tawfiqh/Conway.html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Conway's Game of Life

A self-contained, interactive implementation of Conway's Game of Life in a single HTML file — no dependencies, no build step.

Live Demo

Conway's Game of Life

Features

  • Draw & erase — click or drag to place cells, right-click or drag to remove them
  • Shape library — drag pre-built patterns (Glider, LWSS, Pulsar, Gosper Gun, Acorn, and more) onto the grid
  • Speed control — adjustable simulation speed
  • Density / zoom — scale the grid to fit more or fewer cells
  • Generation & population counters — track the simulation in real time
  • Keyboard shortcut — press Space to toggle play/pause

Usage

Open conway.html in any modern browser. That's it.

Rules

Each cell on the grid is either alive or dead. Every generation:

  1. A live cell with 2 or 3 neighbours survives
  2. A dead cell with exactly 3 neighbours becomes alive
  3. All other cells die or stay dead

About

Conway's Game of Life — interactive single-file implementation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages