diff --git a/README.md b/README.md index 4793c1d..d2ff31f 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,25 @@ -Conway's Game of Life - Frontend only +# Conway's Game of Life - Frontend only Files: + - index.html — main page - style.css — styles - script.js — game logic and UI How to run: + 1. Open `index.html` in your browser (double-click or use a simple static file server). 2. Use the controls to Start/Stop, Step, Randomize, or Clear. 3. 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: +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. \ No newline at end of file +- Speed slider: slider direction matches natural expectation: left = slower, right = faster. diff --git a/index.html b/index.html index 1b71126..fc18885 100644 --- a/index.html +++ b/index.html @@ -5,104 +5,127 @@