Conway's Game of Life HTTP server for an Interstate 75 LED matrix microcontroller.
go build -o conway . && ./conway
Server starts on :8081.
| Method | Path | Description |
|---|---|---|
GET |
/grid.png |
Current board as 128×128 PNG |
GET |
/grid.png?advance=true |
Same, but advances simulation one tick |
GET |
/grid.png?r=90 |
Same, rotated 90° (90, 180, 270 supported); combinable with advance=true |
POST |
/add |
Place a pattern; form fields: x (0–127), y (0–127), pattern (glider | rpentomino | gosper) |
POST |
/clear |
Reset board |
GET / — browser control panel for adding patterns and watching the board live. Includes an Auto-advance checkbox to pause/resume simulation ticking from the browser (useful for testing).
go run cmd/gen-images/main.go
Regenerates img/*.png (square canvases, 8px/cell, alive=white, dead=black).
Dying cells fade red over several ticks before going dark.