I am attempting to design and implement a horse race game, but I keep getting lost in the
while loops and if statement in the horse selection and wager prompt. Would someone please help me get passed this problem? Thanks.
print ("It's a beautiful day out here folks. A fine day for a horse race. Grab your mint julips, extravagant hats, and head over to the betting booths to place your bets.")
horse1 = "Achangeisgonnacome"
horse2 = "It'srainingmen"
horse3 = "Makemyday"
horse4 = "It'scurtainsforyou"
horse5 = "Speedygonzales"
odds1 = "30 to 1"
odds2 = "3 to 1"
odds3 = "25 to 1"
odds4 = "100 to 1"
odds5 = "2 to 1"
print ("For horse1, %s, the odds are %s"
% (horse1, odds1))
print ("For horse2, %s, the odds are %s"
% (horse2, odds2))
print ("For horse3, %s, the odds are %s"
% (horse3, odds3))
print ("For horse4, %s, the odds are %s"
% (horse4, odds4))
print ("For horse5, %s, the odds are %s"
% (horse5, odds5))
selection = raw_input("Which horse will it be(horse1, horse2, horse3, horse4, or horse5)?: ")
if selection == "horse1":
print ("%s it is."
%(horse1))
bet = raw_input(int("And how much do you want to wager on %s (1,2,3,4,5,6,7,8,9)?: "
% (horse1))
if (bet > 5):
print ("You must feel really good about this one")
else:
print "You don't seem very confident"
elif:
selection == "horse2"
bet = raw_input("And how much do you want to bet on %s? "
% (horse2))
if bet > 5:
print "You must feel really good about this one"
else:
print "You don't seem very confident"
elif:
selection == "horse3"
bet = raw_input("And how much do you want to bet on %s? "
% (horse3))
if bet > 5:
print "You must feel really good about this one"
else:
print "You don't seem very confident"
elif:
selection == "horse4"
bet = raw_input("And how much do you want to bet on %s? "
% (horse4))
if bet > 5:
print "You must feel really good about this one"
else:
print "You don't seem very confident"
else:
selection == "horse5"
bet = raw_input("And how much do you want to bet on %s? "
% (horse5))
if bet > 5:
print "You must feel really good about this one"
else:
print "You don't seem very confident"