24 lines
825 B
Markdown
24 lines
825 B
Markdown
# SNAKE CLIENT
|
|
|
|
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](https://rustup.rs/))
|
|
* Snake server (local or remote)
|
|
|
|
## Setup
|
|
|
|
A. Clone the repository: `git clone https://git.nubo.sh/hulthe/snakebot.git`;
|
|
|
|
B. Open the repo: `cd snakebot`;
|
|
|
|
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`.
|