Skip to content

gleb-osokin/rust-snake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A snake game written in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%