Byte-snake-engine/cli/commands
Josh LaFayette f953f879bf
CLI support for handling invalid responses (#95)
Previously the CLI would exit immediately with an error if a snake
returned a response with invalid JSON.

Now the CLI continues running the game and a snake with an invalid
response continues in the direction of it's last move.

Also logs a warning with details about the invalid response. Where
possible, the log includes the response body in case it contains helpful
info.
2022-07-26 20:35:01 -07:00
..
testdata DEV 953: Add basic maps support to CLI (#74) 2022-05-25 11:24:27 -07:00
colors.go Colored board (#59) 2021-12-08 10:43:40 -08:00
output.go Add export to file (#58) 2021-12-02 09:59:20 -08:00
play.go CLI support for handling invalid responses (#95) 2022-07-26 20:35:01 -07:00
play_test.go DEV 1404: Support streaming CLI games to the browser board (#88) 2022-06-28 16:17:44 -07:00
root.go DEV 953: Add basic maps support to CLI (#74) 2022-05-25 11:24:27 -07:00