Verbatim copy of the Programming a Guessing Game chapter.
Build and run the guessing game with:
cargo run
It will prompt you to enter a number. You should be able to whittle down the range of possible numbers until you guess the winner. Altogether, it should look something like the following.
$ cargo run
... omitted ...
Guess the number!
Please input your guess.
3
You guessed: 3
Too small!
Please input your guess.
11
You guessed: 11
Too big!
Please input your guess.
9
You guessed: 9
You win!