https://github.com/bcorfman/steiner-weasels
How a combination of inheritance, random mutation and natural selection can produce complex specified information
https://github.com/bcorfman/steiner-weasels
Last synced: about 2 months ago
JSON representation
How a combination of inheritance, random mutation and natural selection can produce complex specified information
- Host: GitHub
- URL: https://github.com/bcorfman/steiner-weasels
- Owner: bcorfman
- Created: 2026-02-21T22:25:42.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-02-22T03:07:31.000Z (6 months ago)
- Last Synced: 2026-02-22T05:56:37.792Z (6 months ago)
- Language: HTML
- Homepage: https://bcorfman.github.io/steiner-weasels
- Size: 7.47 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# steiner_weasels
Static HTML5/JS/CSS recreation of Dudley Chapman's "Shakespeare, Evolution, and Weasels" with interactive demos:
- Scenario 1: Dawkins-style string weasels
- Scenario #1-#4: Steiner Weasels approximations (food sources, stops, paths, adaptation)
## Run locally
```bash
cd site
python3 -m http.server 8000
# open http://localhost:8000
```
## Publish on GitHub Pages (GitHub Actions)
This repo deploys via `.github/workflows/pages.yml`.
1. Push this repo to GitHub as `bcorfman/steiner_weasels`.
2. In GitHub: Settings -> Pages.
3. Under `Build and deployment`, set `Source` to `GitHub Actions`.
4. Push to `main` (or run the `Pages` workflow manually) to deploy.
5. Site URL becomes: `https://bcorfman.github.io/steiner_weasels/`.
## Notes on default scenario parameters
Defaults are inferred from the article + archived HTML markup:
- Food sources default to `15` (article references 15 repeatedly).
- Scenario #1 starts with `5` genes/stops (matching the article's scenario #1 description).
- Child population per generation defaults to `1500` ("a few thousand" in article; chosen to keep browser responsive).
- Earthquake shifts a random subset of food source locations.
These defaults are in `site/js/app.js` under `STEINER_PRESETS` and are intended to be tuned empirically.