Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flo-at/rustsnake
Terminal-based Snake game written in Rust without dependencies (for educational purposes).
https://github.com/flo-at/rustsnake
Last synced: 3 months ago
JSON representation
Terminal-based Snake game written in Rust without dependencies (for educational purposes).
- Host: GitHub
- URL: https://github.com/flo-at/rustsnake
- Owner: flo-at
- License: mit
- Archived: true
- Created: 2022-11-22T00:58:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T23:33:43.000Z (about 2 years ago)
- Last Synced: 2024-08-01T22:53:13.338Z (6 months ago)
- Language: Rust
- Size: 37.1 KB
- Stars: 93
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RustSnake
This is a simple terminal-based Snake game implemented in Rust without dependencies.\
To start the game type `cargo run`. Control the snake using W/S/A/D.![Screenshot text](/media/screenshot.jpg?raw=true)
The reason I didn't use external crates is that I wanted to learn about the different corners of the language without them being hidden behind some nice and easy interfaces. This comes with some downsides though. The code is not very portable/cross-platform and won't run under Windows without some changes.
Even though it's a simple game, it does cover many of Rust's core features like multi-threading using channels, FFI to reconfigure the terminal, unit testing, and many more.