This code is not working no matter what [PYTHON3]
#Football Game
#------------------------------------------------------------------- #Football rules points=0 touchdown=6 fieldgoal=3 convert=1
points2=0 touchdown2=6 fieldgoal2=3 convert2=1
winner=False
T=int(touchdown) F=int(fieldgoal) C=int(convert) #-------------------------------------------------------------------
team = (str(input("Enter the team 1 name..."))) print ("Your team is named:") print (team)
team2 = (str(input("Enter the team 2 name..."))) print ("Your team is named:") print (team2)
#------------------------------------------------------------------- print ("Choose from the list to enter an option") print ("T to change touchdown value...") print ("F to change fieldgoal value...") print ("C to change convert value...")
if not winner: #------------------------------------------------------------------- answer = input('->') #touchdowns def touchdown(): if answer == 'T': print ("Do you want to change the value of " + team + " or " + team2 + "") if answer == team: touchdown = int(input("How many touchdowns does " + team + " have...")) touchdown = 6*touchdown points = int(touchdown) + int(points) points = str(points) print ("The score is now " + points + "")
elif answer == team2:
touchdown2 = (input("How many touchdowns does " + team2 + " have..."))
touchdown2 = 6*touchdown2
points2 = int(touchdown2) + int(points2)
points2 = str(points2)
print ("The score is now " + points2 + "")
#------------------------------------------------------------------- #fieldgoals def fieldgoal(): if answer == F: print ("Do you want to change the value of " + team + " or " + team2 + "") if answer == team: fieldgoal = int(input("How many fieldgoals does " + team + " have...")) ` fieldgoal = 3*fieldgoal points = int(fieldgoal) + int(points) points = str(points) print ("The score is now " + points + "")
elif input() == team2:
print ("Do you want to change the value of " + team + " or " + team2 + "")
if answer == team:
fieldgoal2 = (input("How many fieldgoals does " + team2 + " have..."))
fieldgoal2 = 3*fieldgoal2
points2 = int(fieldgoal2) + int(points2)
points2 = str(points2)
print ("The score is now " + points2 + "")
#------------------------------------------------------------------- #converts def converts(): if answer == C: print ("Do you want to change the value of " + team + " or " + team2 + "") if answer == team: convert = (input("How many converts does " + team + " have...")) convert = 1*convert points = int(convert) + int(points) points = str(points) print ("The score is now " + points + "")
elif answer == team2:
print ("Do you want to change the value of " + team + " or " + team2 + "")
if answer == team:
convert2 = (input("How many converts does " + team2 + " have..."))
convert2 = 1*convert2
points2 = int(convert2) + int(points2)
points2 = str(points2)
print ("The score is now " + points2 + "")
#-------------------------------------------------------------------
def game():
while winner==False:
print("It's ",player,"turn to enter . The score is: ",points())
winner(team)
if winner==True:
yourmove()
print("The score is: ",points2())
winner(team2)
#-------------------------------------------------------------------
def teammove():
global points
teammove=False
while not teammove:
print("It's your turn, ",team)
amount=int(input("Do you want to change the T,F or C "))
else:
teammove=True
while amount>Pennies:
amount=int(input("Do you want to change the T,F or C"))
return amount
#-------------------------------------------------------------------
def winner():
if points <= 50:
winner==True
print ("The winner is " + team + "")
print ("The final score was " + team + ":" + points + "-" + team2 + "" + points + "")
elif points2 <= 50:
winner==True
print ("The winner is " + team2 + "")
print ("The final score was " + team2 + ":" + points2 + "-" + team2 + "" + points2 + "")
#------------------------------------------------------------------- winner()
Thank for the help
Posted Apr 15, 2016, 1:09 AM UTC