Streams game of life over http as ANSI codes
Demo:
Screen.Recording.2025-04-17.at.5.13.29.PM.mov
Demo/deployed under/try it:
curl --compressed https://demo.fortio.org/life
Using the --compressed option saves bandwidth by enabling gzip compression.
or
curl https://demo.fortio.org/life
go install github.com/fortio/h2life@latest
h2life -iter 1000 -delay 10ms &
curl http://localhost:31337/life
Main flags are:
h2life 0.1.0 usage:
h2life [flags]
or 1 of the special arguments
h2life {help|envhelp|version|buildinfo}
flags:
-delay duration
Delay between frames (default 100ms)
-iter int
Number of iterations per request (in addition to the initial) (default 79)
(see h2life help
for full list)