A snake game written in Rust.
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
.
- 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.
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
Foods should not be shown up on top of the snake