Skip to content
/ snake Public

A TUI snake game made with Rust

License

Notifications You must be signed in to change notification settings

sarowish/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake

a tui snake game made with rust

demo

Usage

Usage: snake [OPTIONS]

Options:
      --width <SIZE>     Width of the game area [default: 30]
      --height <SIZE>    Height of the game area [default: 20]
  -s, --speed <SPEED>    Movement speed of the snake [default: 10]
  -x, --head-x <COORD>   Initial x coordinate of the snake's head [default: 3]
  -y, --head-y <COORD>   Initial y coordinate of the snake's head [default: 3]
  -l, --length <LENGTH>  Initial length of the snake [default: 3]
  -d, --dir <DIRECTION>  Initial direction of the snake [default: right] [possible values: left, right, up, down]
      --no-border        Disable borders
      --self-play        Run the game in self playing mode
  -p, --path-alg <ALG>   Shortest path algorithm used for self playing mode [default: bfs] [possible values: astar, bfs]
  -h, --help             Print help information

References

About

A TUI snake game made with Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages