Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
/ rustsnake Public archive

Terminal-based Snake game written in Rust without dependencies (for educational purposes).

License

Notifications You must be signed in to change notification settings

flo-at/rustsnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

Terminal-based Snake game written in Rust without dependencies (for educational purposes).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages