Commit graph

11 commits

Author SHA1 Message Date
Rob O'Dwyer
09aea9c49d
DEV 1666: Fix /end requests and clean up logging (#109)
* ensure /end request is always called, and refactor win/draw logic

* clean up logging and error handling during initialization

* automatically generate friendly snake names

* title-case snake names

* print out list of alive snake names instead of count

* log snake names, IDs, and URLs at startup

* print out state for turn zero
2022-09-02 14:35:55 -07:00
Rob O'Dwyer
a451cda9c4
DEV 1404: Support streaming CLI games to the browser board (#88)
* add minimal support for serving a game to the board UI

* refactor into new board package

* support reporting errors and author names to board

* support passing an alternate board URL

* avoid using IPv6 for local URL

* use rules.Point instead of a custom Point type for board package

* use zero for generic communication error code in cli

* rename createGameEvent to buildFrameEvent

* tests for conversion from boardState/snakeState to game frame
2022-06-28 16:17:44 -07:00
Torben
e8e20c53ad
Add a "Version" field to GameMap Meta (#83)
* initial concept for versioning
* simple uint version implementation
* tidy up dependencies
2022-06-15 15:51:42 -07:00
Rob O'Dwyer
1c3f434841
DEV 1253: Upgrade to Go 1.18.1 (#70)
* fix dependency that breaks on go 1.18.1

* upgrade to go 1.18.1

* upgrade golangci-lint to a version that works with go 1.18
2022-05-02 13:57:07 -07:00
bvanvugt
e1ab986486 Bump to Go 1.17 2022-01-10 22:25:46 +00:00
bvanvugt
f9262bc336 go mod tidy 2021-01-19 14:55:07 -08:00
bvanvugt
f0045be2f8 Working goreleaser. 2020-12-10 21:08:08 -08:00
Len Payne
6c1e0d9547
Command Line Interface to Run Games Locally (#25)
* Initial Attempts at Cobra Command
* Update to the README
* Fixes for Linter

Thanks @LenPayne for all your hard work getting this started!
2020-12-10 14:35:52 -08:00
bvanvugt
c6d9ba12ab Never spawn food within one move of any snake. 2020-11-10 13:00:13 -08:00
Brad Van Vugt
8153585f57
Add "EliminatedBy" to snake eliminations. (#11)
* add eliminated by

* add test

* make sure largest snake is listed as eliminator on head to head collisions

* remove unused type def

* Reduce memory usage during elimination checks.

Co-authored-by: Daniel Steuernol <dlsteuer@gmail.com>
2020-02-19 11:44:48 -08:00
Brad Van Vugt
998dc0f8cc init go module 2020-01-01 17:46:01 -08:00