https://github.com/pixincreate/snake_game
Snake Xenzia, but in Rust
https://github.com/pixincreate/snake_game
piston piston-game-engine rust rust-lang snake-game snake-xenzia
Last synced: about 1 year ago
JSON representation
Snake Xenzia, but in Rust
- Host: GitHub
- URL: https://github.com/pixincreate/snake_game
- Owner: pixincreate
- Created: 2023-07-30T16:46:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-10T13:20:55.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T00:39:30.719Z (over 1 year ago)
- Topics: piston, piston-game-engine, rust, rust-lang, snake-game, snake-xenzia
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Xenzia
Execute `cargo doc --open` to get reference to all the methods, functions and libs used.
## Usage
- Clone this repo
- `cargo r`
## Rules
- Hitting walls ends the game
- Self collision ends the game
- Score is printed in console when the game ends
- With every food you eat, you gain 1 point and the snake elongates by 1
## What next?
- Make the code more robust and error safe
- Add bonus food every 5 points
## Tree
```tree
SNAKE_GAME
| .gitignore
| Cargo.lock
| Cargo.toml
| README.md
|
+---src
| food.rs
| game.rs
| lib.rs
| main.rs
| snake.rs
|
\---target
```