Commit graph

6 commits

Author SHA1 Message Date
bvanvugt
a1bf6ec0ff Update go version and linting. 2023-02-19 17:12:03 +00:00
bvanvugt
e1ab986486 Bump to Go 1.17 2022-01-10 22:25:46 +00:00
Simon Agius Muscat
142a5a6ecf
Add export to file (#58)
* Initial addition of a game exporter

* Fix snake state bug, remove test logs, fix final output line being empty

* Ignore test JSONL file

* Added explanation for design decision on the you key in SnakeResponse

* Adjust gitignore to be more generic

* Retain consistency in usage of pointer

* Re-word explanation to refer to requests instead of responses

* Remove unnecessary nil check

* Check error returned by WriteString

* Change file permissions for output file

* Initialise gameexporter regardless of whether output is requested

* Print error and exit if export to file fails

* Added another comment explaining reasoning around export checks

* Fixed broken test due to changed return type
2021-12-02 09:59:20 -08:00
bvanvugt
8d764e1477 Update build path and docs. 2020-12-10 15:02:29 -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
Brad Van Vugt
e7bddb9521
Create .gitignore 2020-01-01 17:48:46 -08:00