Skip to content

Aeternalis-Ingenium/Magic-Number-Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Magic Number Guessing Game


This is a game where you can challenge your guessing instinct. The game is implemented fully in Rust and contains the following features:

  • Choose between 4 difficulties as follow:

    • 1 for easy $\rightarrow$ 13 Guessesing Chances
    • 2 for normal $\rightarrow$ 10 Guessesing Chances
    • 3 for hard $\rightarrow$ 7 Guessesing Chances
    • 4 for hardcore $\rightarrow$ 3 Guessesing Chances
  • Choosing difficulty number that is greater than 4 will result in a loop of prompt for the number until the guess is between 1 and 4.

  • Guessing the magic number greater than 100 will result in a loop of prompt for the number until the guess is between 1 and 100.

  • Win $\rightarrow$ Whenever the magic number is guessed within the above chances

  • Lost $\rightarrow$ Whenever the chances run out!


Set Up Guide

  1. Clone the repository

    • SSH: [email protected]:N-tropy/Magic-Number-Guessing-Game.git
    • HTTPS: https://github.com/N-tropy/Magic-Number-Guessing-Game.git

  1. Go into the working directory

    • cd Magic-Number-Guessing-Game

  1. Build the program

    • cargo build

  1. Execute the binary

    • ./target/debug/magical_guessing_game

Enjoy the game!

About

A mini `Rust` project that implements mutability, shadowing, scope, pattern matching, loop, and conditional statement! Goal is.. yes you guessed it! Guess the magic number!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages