All Projects → SLMT → Rust Snake

SLMT / Rust Snake

A snake game written in Rust.

Programming Languages

rust
11053 projects

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 foods
  • To make the snake move itself
  • To make the snake die when it hits itself
  • To make the snake die when it hits borders
  • To 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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].