https://github.com/arslanstack/rust-snake-game
rust based simple snake game
https://github.com/arslanstack/rust-snake-game
desktop-app g2d piston-window rust rust-lang snake-game
Last synced: 4 months ago
JSON representation
rust based simple snake game
- Host: GitHub
- URL: https://github.com/arslanstack/rust-snake-game
- Owner: arslanstack
- License: mit
- Created: 2024-01-31T13:55:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T08:25:41.000Z (over 1 year ago)
- Last Synced: 2025-01-26T02:28:01.351Z (6 months ago)
- Topics: desktop-app, g2d, piston-window, rust, rust-lang, snake-game
- Language: Rust
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rust Snake Game
Welcome to the Rust Snake Game, a classic snake game implemented in the Rust system programming language. Below, you'll find instructions on how to run the game, controls, rules, and future improvements.

## How to Run
To play the game, follow these simple steps:
1. **Install Rust:**
If you haven't installed the Rust development environment yet, you can do so by following the instructions [here](https://www.rust-lang.org/tools/install).
2. **Install Dependencies:**
After installing Rust, navigate to the project directory in your terminal and install the required dependencies. You can do this by running:
```bash
cargo build3. **Run the Game:**
Open your terminal and navigate to the project directory. Run the following command:```bash
cargo runThis command will compile and run the game for you. Enjoy!
## Game Controls & Rules
- Use the arrow keys on your keyboard to control the movement of the snake.
- Consume the apples that appear in the screen to increase the snake's length and strength.
- If the snake collides with the game border or itself, it's a game over.## License
Copyright (c) 2024 arslanstack.
This project is licensed under [the MIT License](LICENSE.md). Feel free to contribute and enhance the game!