Update documentation and dependencies
This commit is contained in:
@ -4,10 +4,10 @@ version = "0.1.0"
|
|||||||
authors = ["Martin Barksten <martin.barksten@gmail.com>"]
|
authors = ["Martin Barksten <martin.barksten@gmail.com>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ws = "0.4.8"
|
ws = "0.5.2"
|
||||||
serde = "0.7.7"
|
serde = "0.8"
|
||||||
serde_json = "0.7.1"
|
serde_json = "0.8"
|
||||||
serde_macros = "0.7.7"
|
serde_macros = "0.8"
|
||||||
quick-error = "1.1.0"
|
quick-error = "1.1.0"
|
||||||
log = "0.3.6"
|
log = "0.3.6"
|
||||||
log4rs = { version = "0.4.6", features = ["toml"] }
|
log4rs = { version = "0.4.6", features = ["toml"] }
|
||||||
|
|||||||
16
readme.md
16
readme.md
@ -7,21 +7,17 @@ Then here is the ultimate snake client for you, written for the beautiful langua
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* Rust nightly (I recommend using [rustup](https://github.com/rust-lang-nursery/rustup.rs) to install it)
|
* Rust nightly (use [rustup](https://github.com/rust-lang-nursery/rustup.rs))
|
||||||
* Cargo (should automatically be installed by rustup)
|
* Snake server (local or remote)
|
||||||
* Snake Server (local or remote)
|
|
||||||
|
|
||||||
The packages used have a tendency to sometimes break due to using the nightly build,
|
|
||||||
so if it doesn't work try to install specifically: *rustc 1.11.0-nightly (12238b984 2016-06-04)*.
|
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
A. Clone the repository: `git clone https://github.com/cygni/snakebot-client-rust.git`;
|
A. Clone the repository: `git clone https://github.com/cygni/snakebot-client-rust.git`;
|
||||||
|
|
||||||
B. Open: `<repo>/`;
|
B. Open the repo: `cd snakebot-client-rust`;
|
||||||
|
|
||||||
C. Run the snake: `cargo run`;
|
C. Default to nightly rust for the repo: `rustup override set nightly-2016-08-27`;
|
||||||
|
|
||||||
D. Improve the snake: edit `src/snake.rs`, and more specifically `get_next_move`.
|
D. Run the snake: `cargo run`;
|
||||||
|
|
||||||
E. Debugging: see `log/snake.log` for all log output from the snake.
|
E. Improve the snake: edit `src/snake.rs`, and more specifically `get_next_move`.
|
||||||
|
|||||||
@ -3,7 +3,7 @@ use maputil::{ Direction };
|
|||||||
use util::{ translate_positions };
|
use util::{ translate_positions };
|
||||||
|
|
||||||
const LOG_TARGET: &'static str = "snake";
|
const LOG_TARGET: &'static str = "snake";
|
||||||
pub const TRAINING_VENUE: &'static str = "TRAINING";
|
pub const TRAINING_VENUE: &'static str = "training";
|
||||||
|
|
||||||
pub struct Snake;
|
pub struct Snake;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user