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.