Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.