Commit Graph
2 Commits
Author SHA1 Message Date
Rembane 061da11d43 Refactored the Rust Snakebot codebase. (#7)
* Normal logging now logs to stdout;
  * Renamed Inbound::GameLinkEvent to Inbound::Gamelink;
  * Renamed the struct GameResultSnake to GameResult;
  * Added Inbound::GameResult;
* Rewrote the message handling to become more succinct;
* Turned the default_gamesettings function into a Default impl;
* Made the snake smaller and prettier;
* Replaced some direction checking code with less code;
* Added logging messages to all callbacks;
* Added as_movement_delta to the Direction impl;
* Added nice error messages to the message parsing;
* Moved some code in maputil to increase the DRY-factor.
2017-04-21 15:49:42 +02:00
Rembane 435bd355d4 Added BSD3-Clause license. (#6)
* Added BSD3-Clause license.

This makes the project open source.

https://spdx.org/licenses/BSD-3-Clause-Clear.html#licenseText

* Added LICENSE-file.
2017-04-09 19:42:37 +02:00