A classic Snake game implementation in Rust that runs directly in your terminal!
- Rust (1.65+).
- Cargo.
termion
(terminal handling).k_board
(keyboard input).rand
(random number generation).
Ensure Rust and Cargo are installed:
git clone https://github.com/tmpstpdwn/snaketty.git
cd snaketty
cargo run --release
- Arrow keys: Change direction.
- Space: Start/Restart game.
- Escape: Quit game.
- Start the game with Space.
- Collect food to grow and increase score.
- Avoid colliding with yourself.
- The snake wraps around screen edges.
- Press Escape to exit anytime.
This project is licensed under GPL3 LICENSE.