Conway's Game of Life — an advanced cellular automaton simulator with a comprehensive pattern library. Watch complex behaviors emerge from simple rules.
Live Demo: https://qqshi13.github.io/lifelab/
- 🎮 80x60 Grid — Infinite canvas with smooth pan and zoom
- ⏯️ Play/Pause — Smooth animation loop at your preferred speed
- ⏭️ Step Forward/Back — Navigate through generations frame by frame
- 🔄 Reset/Clear — Start fresh with random seed or clear completely
- ⚡ Speed Control — Adjustable FPS from 1 to 60
- Conway's Life — Classic B3/S23 rules
- HighLife — B36/S23 (includes replicator pattern)
- Seeds — B2/S (explosive growth)
- Day & Night — B3678/S34678 (symmetric rules)
- Gosper Glider Gun — Period 30 glider gun
- Glider — The classic diagonal ship
- Lightweight/Middleweight/Heavyweight — Orthogonal ships
- Blinker, Toad, Beacon — Period 2
- Pulsar, Pentadecathlon — Period 3 and 15
- Block, Beehive, Loaf, Boat — Stable patterns
- R-pentomino — Evolves for 1103 generations
And many more! Patterns are organized in a searchable sidebar library.
- Left Click — Toggle cell state (draw/erase)
- Drag — Draw multiple cells
- Space — Play/Pause
- Arrow Keys — Step forward/backward
- +/- — Zoom in/out
- R — Random seed
- C — Clear grid
- Play/Pause button for animation control
- Speed slider (1-60 FPS)
- Generation counter
- Pattern library sidebar with categories
- Rule selector dropdown
- Frontend: Vanilla HTML5 Canvas API
- Language: JavaScript (ES6+)
- Styling: CSS Variables, Flexbox
- Fonts: JetBrains Mono for the generation counter
- Features: PWA support, responsive design, dark theme
# Clone the repository
git clone https://github.com/QQSHI13/lifelab.git
# Open in browser
cd lifelab
# Open index.html in your browser or serve with any static server- Conway's Game of Life (Wikipedia)
- LifeWiki — Comprehensive pattern database
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
See LICENSE for details.
Built with ❤️ by QQ and Nova ☄️
Powered by OpenClaw
Pattern definitions adapted from LifeWiki and classic CA literature.