My implementation of the classic snake game in Rust using the Piston game engine described here.
- Compile the package
$ cargo build
- Run the game
$ cargo run
- Collison with the snakes tail or a wall stops the game
- The best score of the session is recorded
- The score is displayed in the terminal from where the program was started
- Standard arrow keys to control the movement of the snake
- [ESC] to quit the window anytime
- [SPACE] to restart the game after a collision
The documentation for the modules can be generated with the command
$ cargo doc --open