Hi Lo Examples

example game 1

$ python3 hilo.py
Given a series of random numbers between 1 and 13, guess
if the next number will be higher or lower. Each time the you guess
correctly, you get one point. If you guess incorrectly, you'll get
charged for making one mistake. The goal of the game is to see how many
times you can guess correctly before you make 3 mistakes.

Good luck!

First number: 3
(H)igher or (L)ower?: H
Correct! The number was 10.
-----------------------
Score: 1	Mistakes: 0
-----------------------

Last number: 10
(H)igher or (L)ower?: L
Correct! The number was 2.
-----------------------
Score: 2	Mistakes: 0
-----------------------

Last number: 2
(H)igher or (L)ower?: H
Correct! The number was 7.
-----------------------
Score: 3	Mistakes: 0
-----------------------

Last number: 7
(H)igher or (L)ower?: H
Correct! The number was 11.
-----------------------
Score: 4	Mistakes: 0
-----------------------

Last number: 11
(H)igher or (L)ower?: L
Incorrect. The number was 13.
-----------------------
Score: 4	Mistakes: 1
-----------------------

Last number: 13
(H)igher or (L)ower?: L
Correct! The number was 9.
-----------------------
Score: 5	Mistakes: 1
-----------------------

Last number: 9
(H)igher or (L)ower?: L
Correct! The number was 5.
-----------------------
Score: 6	Mistakes: 1
-----------------------

Last number: 5
(H)igher or (L)ower?: H
Incorrect. The number was 1.
-----------------------
Score: 6	Mistakes: 2
-----------------------

Last number: 1
(H)igher or (L)ower?: H
Correct! The number was 6.
-----------------------
Score: 7	Mistakes: 2
-----------------------

Last number: 6
(H)igher or (L)ower?: H
Correct! The number was 6.
-----------------------
Score: 8	Mistakes: 2
-----------------------

Last number: 6
(H)igher or (L)ower?: H
Incorrect. The number was 5.
-----------------------
Score: 8	Mistakes: 3
-----------------------

Game over! You got 8 points.