mfarag_guessing_game 0.1.1

A simple guessing game from the Rust book
Documentation
  • Coverage
  • 16.67%
    1 out of 6 items documented1 out of 3 items with examples
  • Size
  • Source code size: 5.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MuhammadFarag

Rust Book Guessing Game tutorial

A simple console-based number guessing game written in Rust. The game will generate a random number between 1 and 100 inclusive, and the user has to guess this number based on hints provided by the program.

How to Play

Upon running the application, you will be greeted with a message: "Guess the number!".

The game then prompts you to input your guess. Based on your input, the game will provide one of three pieces of feedback:

  • "Too small!" if your guess is lower than the secret number
  • "Too big!" if your guess is higher than the secret number
  • "You win!" if your guess matches the secret number. The game will then terminate.

Resources