commit df6153bd4daf6c4d8692fee780c27edaf3d50463 parent 19471e734f4b05345c9014468e7c0a6d560b0a4f Author: Brian C. Lane <bcl@brianlane.com> Date: Sat, 26 Nov 2022 08:44:36 -0800 Update README.md for server option Diffstat:
M | README.md | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -6,4 +6,19 @@ This implementation uses a [SDL2 Go library](https://github.com/veandco/go-sdl2/ * Supports plaintext pattern files like those from the [Life Lexicon](https://www.conwaylife.com/ref/lexicon/lex_1.htm) * Hit 'h' to display they key help on the console while it is running. * Pass '-help' on the cmdline to see the available options. +* Pass '-empty' to start with an empty world, this is useful when combined with '-server' which normally starts + with a random seed. +== Server + +Passing '-server' will listen to port 3051 for pattern files to be POSTed to it. This supports the same formats +as the cmdline -pattern argument (Life 1.05 and plain text). You can easily send it a pattern file using curl like +this: + + curl --data-binary @./examples/glider-gun-1.05.life http://127.0.0.1:3051/ + +== Building + +Run `go build` + +The only dependency is on the [SDL2 Go library](https://github.com/veandco/go-sdl2/)