Skip to content

Latest commit

 

History

History

02-guessing-game

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Guessing Game

A hands-on introduction to the Rust language.

Features

  • handling user input with the io library.
  • adding rand from crates.io as a dependency.
  • generating a secret number.
  • comparing the guess to the secret number.
  • allowing multiple guesses with looping.
  • quitting after a correct guess.
  • handling invalid input.

Based on The Rust Programming Language by Steve Klabnik and Carol Nichols (2021).