Game #1
- At the start of the game the player is informed of the range
of numbers (integers). They are positive integers
with no gaps in the range.
- One of the numbers in the range is randomly
selected to be the target number.
The player must guess this number.
- The game loop:
- The player guesses a number in the range.
- If the guess is the target number, they win.
- If the guess is not the target number,
the player is told if their guess is less than or
greater than the target number.
- The game continues until the player guesses the
target number or quits.
- At the end of the game, the number of guesses
is displayed.
Game #2
Use floating point numbers. How close to the target number
must the the player's guess be to win?
(never test floats for equality)
Game #3
Use positive and/or negative numbers.
Miscellaneous Thoughts
Include snarky messages. (hot, cold, warm, freezing,
you are in the next county, you missed by a mile,
close but no cigar, ...)