Skip to content

Next-level guessing game with TUI and leaderboard

License

Notifications You must be signed in to change notification settings

RustyDaemon/rust-guess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Guess Game

Quite unique game, where you have to guess the number between different ranges. The game will give you hints if the number is too high or too low.

This project is a part of the Rust learning process that I am currently doing. So there are some imperfections and not the best practices used in the project.

main_menu game leaderboard

What is inside?

  • 🔹 Terminal UI (TUI) (📦 ratatui)
  • 🔹 Leaderboard in json file (📦 serde and 📦 serde_json)
  • 🔹 Random number generation (📦 rand)
  • 🔹 Colored output (📦 colored)
  • 🔹 Dates and time (📦 chrono)
  • 🔹 User input handling
  • 🔹 Game logic
  • 🔹 Files and folders separation (mods)

How to run and play?

  1. Clone the repository
  2. Run cargo run in the terminal
  3. Try to win 🧐

Code quality

Since this project is a part of the learning process, I tried to make the code as clean as possible. However, it may be (and it is) far from perfect. If you have any suggestions or improvements, feel free to open an issue or a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Cargo(s) used in the project are licensed under their respective licenses.

About

Next-level guessing game with TUI and leaderboard

Topics

Resources

License

Stars

Watchers

Forks

Languages