You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
Conway's Game of Life - Frontend only
Files:
- index.html — main page
- style.css — styles
- script.js — game logic and UI
How to run:
- Open
index.htmlin your browser (double-click or use a simple static file server). - Use the controls to Start/Stop, Step, Randomize, or Clear.
- Click or drag on the canvas to toggle cells. Adjust speed and cell size with sliders.
Notes:
- No backend required.
- For best results, open the page via a local server (e.g.,
python3 -m http.server) if your browser blocks local file scripts.
New features:
- Presets: select common patterns (Glider, Lightweight spaceship, Pulsar, Gosper glider gun) from the Presets dropdown.
- Wrap edges: enable "Wrap edges" to use toroidal neighbor rules (cells at edges consider opposite edges as neighbors).
- Save / Load: Save the current grid to your browser's localStorage (client-side only) and load it back later. The save is stored per-browser and per-machine.
- Speed slider: slider direction matches natural expectation: left = slower, right = faster.