From 04e5a2234fecd42fdb8a0f2e267ace0678ce4afb Mon Sep 17 00:00:00 2001 From: Jeff Hardy Date: Mon, 2 Apr 2012 02:39:56 -0700 Subject: [PATCH] Use TH instead of TF. --- ConsoleSample/ConsoleGame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ConsoleSample/ConsoleGame.py b/ConsoleSample/ConsoleGame.py index eea9933..8b96e53 100644 --- a/ConsoleSample/ConsoleGame.py +++ b/ConsoleSample/ConsoleGame.py @@ -20,10 +20,10 @@ def get_wager(game): def get_guess(): while True: - guess = raw_input("Guess [T/F]: ") + guess = raw_input("Guess [T/H]: ") guess = guess.upper() - if len(guess) != 1 or guess not in "TF": - print "Enter only T or F." + if len(guess) != 1 or guess not in "TH": + print "Enter only T or H." else: return guess