Skip to content

sszabo11/snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ 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.

About

Snake game in the terminal built with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages