Rust Snake
A snake game written in Rust.
How To Build It ?
Download Rust compiler from here, change the working directory to the root of this project, then execute the following command:
> cargo build
The executable binary will appear in target/debug
, called rust-snake
.
Game Controls & Rules
- Use the arrow keys on the keyboard to move the green snake.
- Eat the orange food to make the snake stronger.
- When the snake hits the border or itself, it will die.
TODOs
To randomly generate foodsTo make the snake move itselfTo make the snake die when it hits itselfTo make the snake die when it hits bordersTo make the game restart after the snake dies- To have a better game-over screen
Bugs
Foods should not be shown up on top of the snake