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
2017-03-08 18:32:00 +01:00
2017-04-09 19:42:37 +02:00
2017-04-09 19:42:37 +02:00
2017-03-08 18:32:00 +01:00

SNAKE CLIENT

![Build Status](http://jenkins.snake.cygni.se/buildStatus/icon?job=snake client rust)

Do you want the most annoying compiler ever? Do you want to constantly think of what is owning what variable? Do you want to stare angrily at the screen and wonder what the hell it means that some dumb value can't be moved? Then here is the ultimate snake client for you, written for the beautiful language Rust.

Requirements

  • Rust (which should be installed via rustup)
  • Snake server (local or remote)

Setup

A. Clone the repository: git clone https://github.com/cygni/snakebot-client-rust.git;

B. Open the repo: cd snakebot-client-rust;

C. Build the snake: cargo build;

D. Run the snake: cargo run or ./target/debug/snakebot_rust (see ./target/debug/snakebot_rust --help for command line options);

E. Improve the snake: edit src/snake.rs, and more specifically get_next_move.

Description
No description provided
Readme 72 KiB
Languages
Rust 100%