A minimal rust implementation of the snake game. Rendering is done in the terminal with Termion.
▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
░ ░
░ ░
░ ░
░ ░
░ ░
░ ╔════╗ ░
░ ║ ║ ░
░ ║ ║ ░
░ ║ ║ ░
░ ║ ║ ░
░ ║ ║ ░
░ ║ ║ ░
░ ║ ║ ░
░ × ║ ░
░ ║ ░
░ ╚════> X ░
░ ░
░ ░
░ ░
░ ░
▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒
Your score: 29
In the terminal the lines aren't interrupted though.
Be sure to install Rust first. Learn it then. Best documentation I've ever read.
Clone the reposirory, go to its directory, run with cargo.
git clone https://github.com/Keksoj/snake.git
cd snake
cargo run
Enjoy it, copy it, improve it.