Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.09 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.09 KB

🐍 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:

    git clone https://github.com/yourusername/snake_game.git
    cd snake_game
  2. Build the project:

    cargo build --release

🚀 Usage

  1. Run the game:

    ./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.