mfarag_guessing_game

Crates.iomfarag_guessing_game
lib.rsmfarag_guessing_game
version0.1.1
sourcesrc
created_at2023-06-11 17:48:08.642928
updated_at2023-06-11 18:18:06.36319
descriptionA simple guessing game from the Rust book
homepage
repository
max_upload_size
id887505
size5,963
Muhammad Farag (MuhammadFarag)

documentation

README

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

Commit count: 0

cargo fmt