Files
snakebot/readme.md
Martin Barksten a21fff4912 Add jenkins icon
2016-08-29 14:33:01 +02:00

949 B

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 nightly (use 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. Default to nightly rust for the repo: rustup override set nightly-2016-08-27;

D. Run the snake: cargo run;

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