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. |
||
|---|---|---|
| .. | ||
| testdata | ||
| colors.go | ||
| output.go | ||
| play.go | ||
| play_test.go | ||
| root.go | ||