A simple Snake game implemented in Rust using Crossterm for terminal graphics and Rand for random number generation.
- 🐍 Classic Snake gameplay
- 🍎 Randomly spawning apples
- 🎮 Simple controls using arrow keys
- 🖥️ Displayed in the terminal
- 🦀 Rust (latest stable version)
-
Clone the repository:
git clone https://github.com/yourusername/snake_game.git cd snake_game
-
Build the project:
cargo build --release
-
Run the game:
./target/release/snake_game
-
Gameplay Instructions:
- 🕹️ Use the arrow keys to move the snake.
- 🍏 Collect the apples to grow longer.
- 🚧 Avoid running into the walls or the snake's own body.
- ⏹️ Press
ESC
to quit the game.
- ⬅️ ➡️ ⬆️ ⬇️ Arrow keys: Move the snake
- ⏹️ ESC: Exit the game
Contributions are welcome! Please open an issue or submit a pull request.