Skip to content

MatteoGgl/conway-server

Repository files navigation

conway

Conway's Game of Life HTTP server for an Interstate 75 LED matrix microcontroller.

Build & run

go build -o conway . && ./conway

Server starts on :8081.

API

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

Web UI

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).

Pattern image generation

go run cmd/gen-images/main.go

Regenerates img/*.png (square canvases, 8px/cell, alive=white, dead=black).

Visual effects

Dying cells fade red over several ticks before going dark.

About

Conway's Game of Life HTTP server for an Interstate 75 LED matrix microcontroller.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors