Wheel-of-Fortune Example 1


$ python wof.py

----- Wheel of Fortune v0.1 -----

========================================
phrase: -----'- -- ----- ---- ----  [$0]

1. spin     2. buy      3. guess    4. quit     
choice? 2
You don't have enough money to buy a vowel!
========================================
phrase: -----'- -- ----- ---- ----  [$0]

1. spin     2. buy      3. guess    4. quit     
choice? 99
Please enter a valid menu option.
choice? pony
Please enter an integer menu option.
choice? 1
..............................$1200
                guessed so far: 
letter: t
Number of T's in the phrase: 1
========================================
phrase: T----'- -- ----- ---- ----  [$1200]

1. spin     2. buy      3. guess    4. quit     
choice? 1
..............................$800
                guessed so far: T
letter: t
You already guessed that.
                guessed so far: T
letter: e
Please guess a consonant.
                guessed so far: T
letter: z
Number of Z's in the phrase: 0
========================================
phrase: T----'- -- ----- ---- ----  [$1200]

1. spin     2. buy      3. guess    4. quit     
choice? 3
guess the phrase: we love computer science
Nope, sorry!
========================================


PHRASE: THERE'S NO PLACE LIKE HOME
Your winnings: $0


Return to Lab 07
Example 1