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.
|
|
2 weeks ago | |
|---|---|---|
| LICENSE | 2 weeks ago | |
| README.md | 2 weeks ago | |
| additive-processor.js | 2 weeks ago | |
| granular-processor.js | 2 weeks ago | |
| index.html | 2 weeks ago | |
| music.js | 2 weeks ago | |
| music.js.old | 2 weeks ago | |
| musical_note.png | 2 weeks ago | |
| recording.js | 2 weeks ago | |
| script.js | 2 weeks ago | |
| style.css | 2 weeks ago | |
| ui.js | 2 weeks ago | |
README.md
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.