Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sszabo11/snake_game
Snake game in the terminal built with Rust
https://github.com/sszabo11/snake_game
Last synced: 5 days ago
JSON representation
Snake game in the terminal built with Rust
- Host: GitHub
- URL: https://github.com/sszabo11/snake_game
- Owner: sszabo11
- Created: 2024-08-02T06:09:39.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-02T06:13:43.000Z (5 months ago)
- Last Synced: 2024-11-09T23:08:53.392Z (2 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# đ Snake Game
A simple Snake game implemented in Rust using Crossterm for terminal graphics and Rand for random number generation.
## ⨠Features
- đ Classic Snake gameplay
- đ Randomly spawning apples
- đŽ Simple controls using arrow keys
- đĨī¸ Displayed in the terminal## đ Requirements
- đĻ Rust (latest stable version)
## đ ī¸ Installation
1. **Clone the repository**:
```bash
git clone https://github.com/yourusername/snake_game.git
cd snake_game
```2. **Build the project**:
```bash
cargo build --release
```## đ Usage
1. **Run the game**:
```bash
./target/release/snake_game
```2. **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.## đŽ Controls
- âŦ ī¸ âĄī¸ âŦī¸ âŦī¸ **Arrow keys**: Move the snake
- âšī¸ **ESC**: Exit the game## đ¤ Contributing
Contributions are welcome! Please open an issue or submit a pull request.