Byte-snake-engine/cli/commands
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
..
testdata DEV 559: Refactor CLI and add customizations (#57) 2021-11-25 14:07:56 -08:00
output.go Add export to file (#58) 2021-12-02 09:59:20 -08:00
play.go Add export to file (#58) 2021-12-02 09:59:20 -08:00
play_test.go Add export to file (#58) 2021-12-02 09:59:20 -08:00
root.go Update build path and docs. 2020-12-10 15:02:29 -08:00