https://github.com/fortio/h2life
Demo of ansipixel game of life (conway) over http streaming (or 1.1)
https://github.com/fortio/h2life
game-of-life http tui
Last synced: 4 months ago
JSON representation
Demo of ansipixel game of life (conway) over http streaming (or 1.1)
- Host: GitHub
- URL: https://github.com/fortio/h2life
- Owner: fortio
- License: apache-2.0
- Created: 2025-04-17T23:35:22.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-05-20T14:14:58.000Z (5 months ago)
- Last Synced: 2025-05-20T15:31:57.436Z (5 months ago)
- Topics: game-of-life, http, tui
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# h2life
Streams game of life over http as ANSI codes
Demo:
https://github.com/user-attachments/assets/8ad28d6e-169b-462f-9d9b-7ad5654e3d29
## Deployment
Demo/deployed under/try it:
```bash
curl --compressed https://demo.fortio.org/life
```
Using the --compressed option saves bandwidth by enabling gzip compression.or
```bash
curl https://demo.fortio.org/life
```## Try locally:
```bash
go install github.com/fortio/h2life@latest
h2life -iter 1000 -delay 10ms &
curl http://localhost:31337/life
```## Options
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)