Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- from timeit import default_timer as timer
- start = timer()
- hometeam = 'New England Patriots'
- awayteam = 'Arizona Cardinals'
- finalscores = []
- matchcount = 1
- totalpenaltyyards = 0
- def statsreset():
- global gamesplayed
- global offset
- global games
- global gametime
- global playtime
- global possession
- global ballposition
- global down
- global seriesyards
- global awayteamscores
- global hometeamscores
- global totalstats
- global totalscores
- global atstats
- global htstats
- global interceptionhappened
- offset = 1000
- games = 0
- gametime = 60
- playtime = .4
- possession = None
- ballposition = 0
- down = 0
- seriesyards = 0
- awayteamscores = 0
- hometeamscores = 0
- interceptionhappened = 'no'
- scores = {hometeam:0, awayteam:0}
- totalscores = {hometeam:0, awayteam:0}
- totalstats = {'totalrunplays':0, 'totalpassplays':0, 'totalpuntplays':0, 'totalfieldgoalplays':0, 'totalrushyards':0, 'totalpassyards':0, 'totalpuntyards':0, 'totalcompletions':0, 'cointosswinner '+str(hometeam):0, 'cointosswinner '+str(awayteam):0}
- htstats = {'totalrunplays':0, 'totalpassplays':0, 'totalpuntplays':0, 'totalfieldgoalplays':0, 'totalrushyards':0, 'totalpassyards':0, 'totalpuntyards':0, 'totalcompletions':0, 'cointosswinner '+str(hometeam):0}
- atstats = {'totalrunplays':0, 'totalpassplays':0, 'totalpuntplays':0, 'totalfieldgoalplays':0, 'totalrushyards':0, 'totalpassyards':0, 'totalpuntyards':0, 'totalcompletions':0, 'cointosswinner '+str(awayteam):0}
- def teamstats():
- global possession
- import csv
- global htoffense
- global atoffense
- global htdefense
- global atdefense
- global htKicking_Punting
- global atKicking_Punting
- global htreturning
- global atreturning
- if possession == hometeam:
- nonpossession = awayteam
- else: nonpossession = hometeam
- with open('offense.csv', newline='') as csvfile:
- offenses = csv.DictReader(csvfile)
- for row in offenses:
- #print(row)
- if row['Tm'] == hometeam:
- htoffense = row
- if row['Tm'] == awayteam:
- atoffense = row
- with open('defense.csv', newline='') as csvfile:
- defenses = csv.DictReader(csvfile)
- for row in defenses:
- #print(row)
- if row['Tm'] == hometeam:
- htdefense = row
- if row['Tm'] == awayteam:
- atdefense = row
- with open('Kicking_Punting.csv', newline='') as csvfile:
- Kicking_Punting = csv.DictReader(csvfile)
- for row in Kicking_Punting:
- #print(row)
- if row['Tm'] == hometeam:
- htKicking_Punting = row
- if row['Tm'] == awayteam:
- atKicking_Punting = row
- with open('returning.csv', newline='') as csvfile:
- returning = csv.DictReader(csvfile)
- for row in returning:
- #print(row)
- if row['Tm'] == hometeam:
- htreturning = row
- if row['Tm'] == awayteam:
- atreturning = row
- #print(htKicking_Punting)
- #print(atKicking_Punting)
- #print(htreturning)
- #print(atreturning)
- def cointoss():
- global gametime
- global possession
- global halftimepossession
- global scores
- gametime = 60
- scores = {hometeam:0, awayteam:0}
- cointossresult = random.randint(1, 2)
- if cointossresult == 1:
- possession = hometeam
- halftimepossession = awayteam
- totalstats['cointosswinner '+str(awayteam)] += 1
- atstats['cointosswinner '+str(awayteam)] += 1
- else:
- possession = awayteam
- halftimepossession = hometeam
- totalstats['cointosswinner '+str(hometeam)] += 1
- htstats['cointosswinner '+str(hometeam)] += 1
- #print('cointoss winner', halftimepossession)
- def halftime():
- global possession
- global halftimepossession
- global scores
- global ballposition
- #print(ballposition)
- #print(gametime)
- if ballposition >= 4000:
- fieldgoalplayexecute()
- possession = halftimepossession
- #print('')
- #print('')
- #print('halftime')
- kickoff()
- def kickoff():
- global ballposition
- global gametime
- global possession
- global down
- ballposition = 0
- returnteam = possession
- kickofftd = random.randint(1, 100)
- gametime -= random.uniform(.2, .6)
- if kickofftd <= 1:
- scores[returnteam] += 6
- extrapointexecute()
- turnover()
- kickoff()
- else:
- if possession == hometeam:
- ballposition = float(htreturning['Kick Returns Y/Rt']) * 97
- #print(hometeam, 'kickoff returned to :', ballposition)
- if possession == awayteam:
- ballposition = float(atreturning['Kick Returns Y/Rt']) * 97
- #print(awayteam, 'kickoff returned to :', ballposition)
- down = 1
- kickoffbigplay = random.randint(1, 100)
- if kickoffbigplay <= 4:
- ballposition += random.randint(1, 2500)
- #print('Kickoff big play!', kickoffbigplay)
- #print('ballposition', ballposition)
- #print('ballposition', ballposition)
- #print('gametime', gametime)
- def chooseplay():
- global possession
- global down
- global playchoice
- global ballposition
- offense = possession
- #print(htoffense['Rushing Att'])
- #print((100 * (int(atoffense['Rushing Att']) / int(atoffense['Tot Ply']))))
- if possession == hometeam:
- if down < 4:
- playodds = random.randint(1, 100)
- #print('playodds', playodds, 'play num', int((100 * (int(htoffense['Rushing Att']) / int(htoffense['Tot Ply'])))))
- if playodds >= (int((100 * (int(htoffense['Rushing Att']) / int(htoffense['Tot Ply']))))):
- playchoice = 'passplay'
- else:
- playchoice = 'runplay'
- else:
- if ballposition > 5300:
- playchoice = 'fieldgoalplay'
- else:
- playchoice = 'puntplay'
- #print(playchoice)
- if possession == awayteam:
- if down < 4:
- playodds = random.randint(1, 100)
- #print('playodds', playodds, 'play num', int((100 * (int(atoffense['Rushing Att']) / int(atoffense['Tot Ply'])))))
- if playodds >= (int((100 * (int(atoffense['Rushing Att']) / int(atoffense['Tot Ply']))))):
- playchoice = 'passplay'
- else:
- playchoice = 'runplay'
- else:
- if ballposition > 5300:
- playchoice = 'fieldgoalplay'
- else:
- playchoice = 'puntplay'
- #print(playchoice)
- def passplayexecute():
- global possession
- global ballposition
- global down
- global seriesyards
- global totalstats
- global htstats
- global atstats
- global interceptionhappened
- totalstats['totalpassplays'] += 1
- completionchace = random.randint(1,100)
- #print(possession)
- interceptioncheck()
- if possession == hometeam:
- htstats['totalpassplays'] += 1
- #print('completionchace', completionchace, 'Max Odds', 100 *(((int(htoffense['Passing Cmp']) / int(htoffense['Passing Att'])) + (int(atdefense['Passing Cmp']) / int(atdefense['Passing Att']))) / 2))
- if completionchace <= int(100 * (((int(htoffense['Passing Cmp']) / int(htoffense['Passing Att'])) + (int(atdefense['Passing Cmp']) / int(atdefense['Passing Att']))) / 2)):
- passcomplete = 'complete'
- else:
- passcomplete = 'incomplete'
- if possession == awayteam:
- atstats['totalpassplays'] += 1
- #print('completionchace', completionchace, 'Max odds', 100 *(((int(htoffense['Passing Cmp']) / int(htoffense['Passing Att'])) + (int(atdefense['Passing Cmp']) / int(atdefense['Passing Att']))) / 2))
- if completionchace <= int(100 * (((int(atoffense['Passing Cmp']) / int(atoffense['Passing Att'])) + (int(htdefense['Passing Cmp']) / int(htdefense['Passing Att']))) / 2)):
- passcomplete = 'complete'
- else:
- passcomplete = 'incomplete'
- if passcomplete == 'complete':
- #print('Pass complete')
- totalstats['totalcompletions'] += 1
- down += 1
- if possession == hometeam:
- htstats['totalcompletions'] += 1
- passmod = (100 * ((int(htoffense['Passing Yds']) / int(htoffense['Passing Cmp'])) + (int(atdefense['Passing Yds']) / int(atdefense['Passing Cmp']))) / 2)
- #print('[passmod]', passmod)
- passyards = passmod + random.uniform(-(passmod + 200), passmod + 200)
- htstats['totalpassyards'] += passyards
- if possession == awayteam:
- atstats['totalcompletions'] += 1
- passmod = (100 * ((int(atoffense['Passing Yds']) / int(atoffense['Passing Cmp'])) + (int(htdefense['Passing Yds']) / int(htdefense['Passing Cmp']))) / 2)
- #print('[passmod]', passmod)
- passyards = passmod + random.uniform(-(passmod + 200), passmod + 200)
- atstats['totalpassyards'] += passyards
- totalstats['totalpassyards'] += passyards
- #print('passyards', passyards)
- ballposition += passyards
- seriesyards += passyards
- if ballposition >= 10000:
- scores[possession] += 6
- extrapointexecute()
- #print('passing touchdown')
- #print(scores)
- touchdown = 'yes'
- turnover()
- kickoff()
- if seriesyards >= 1000:
- down = 1
- #print('first down', down)
- seriesyards = 0
- #print('ballposition', ballposition)
- #print('gametime', gametime)
- if passcomplete == 'incomplete':
- down += 1
- #print('incomplete')
- def runplayexecute():
- global possession
- global ballposition
- global down
- global seriesyards
- global totalstats
- global htstats
- global atstats
- totalstats['totalrunplays'] += 1
- fumblecheck()
- if possession == hometeam:
- htstats['totalrunplays'] += 1
- runmod = ((100 * float(htoffense['Rushing YPC'])) + (100 * float(atdefense['Rushing YPC']))) / 2
- #print(((htoffense['Rushing Y/A']) + (atdefense['Rushing Y/A']) / 2))
- runresult = runmod + random.uniform(-(runmod + 300), (runmod + 300))
- #print('runmod', runmod, 'nrundistance', nrundistance, 'runresult', runresult)
- #print('runresult', runresult)
- htstats['totalrushyards'] += runresult
- if possession == awayteam:
- atstats['totalrunplays'] += 1
- runmod = ((100 * float(htoffense['Rushing YPC'])) + (100 * float(atdefense['Rushing YPC']))) / 2
- #print(((htoffense['Rushing Y/A']) + (atdefense['Rushing Y/A']) / 2))
- runresult = runmod + random.uniform(-(runmod + 300), (runmod + 300))
- #print('runmod', runmod, 'nrundistance', nrundistance, 'runresult', runresult)
- #print('runresult', runresult)
- atstats['totalrushyards'] += runresult
- down += 1
- ballposition += runresult
- seriesyards += runresult
- atstats['totalrushyards'] += 1
- if ballposition >= 10000:
- scores[possession] += 6
- extrapointexecute()
- #print('rushing touchdown')
- #print(scores)
- turnover()
- kickoff()
- if seriesyards >= 1000:
- down = 1
- #print('first down', down)
- seriesyards = 0
- #print('ballposition', ballposition)
- totalstats['totalrushyards'] += runresult
- def puntplayexecute():
- global ballposition
- global possession
- global ballposition
- global down
- global totalpuntplays
- global totalpuntyards
- totalstats['totalpuntplays'] += 1
- puntyards = 4500 + random.randint(-2000, 2000)
- totalstats['totalpuntyards'] += puntyards
- #print('puntyards', puntyards)
- ballposition += puntyards
- if ballposition >= 10000:
- ballposition = 8000
- turnover()
- def fieldgoalplayexecute():
- global scores
- global ballposition
- global totalfieldgoalplays
- global possession
- #print('Field goal start')
- #print('ballposition', ballposition)
- ballposition = int(ballposition)
- #print(ballposition)
- totalstats['totalfieldgoalplays'] += 1
- if 4000 <= ballposition <= 4999:
- if possession == hometeam:
- fgmod = ((float(htKicking_Punting['50 FGM']) / float(htKicking_Punting['50 FGA'])) * 100)
- #print('gametime', gametime)
- #print('Field Goal attempt 50+', fgmod)
- if possession == awayteam:
- fgmod = ((float(htKicking_Punting['50 FGM']) / float(htKicking_Punting['50 FGA'])) * 100)
- #print('Field Goal attempt 50+', fgmod)
- #print('gametime', gametime)
- if 5000 <= ballposition <= 5999:
- if possession == hometeam:
- fgmod = ((float(htKicking_Punting['40-49 FGM']) / float(htKicking_Punting['40-49 FGA'])) * 100)
- #print('Field Goal attempt 40-49', fgmod)
- #print('gametime', gametime)
- if possession == awayteam:
- fgmod = ((float(htKicking_Punting['40-49 FGM']) / float(htKicking_Punting['40-49 FGA'])) * 100)
- #print('Field Goal attempt 40-49', fgmod)
- #print('gametime', gametime)
- if 6000 <= ballposition <= 6999:
- if possession == hometeam:
- fgmod =((float(htKicking_Punting['30-39 FGM']) / float(htKicking_Punting['30-39 FGA'])) * 100)
- #print('Field Goal attempt 30-39', fgmod)
- #print('gametime', gametime)
- if possession == awayteam:
- fgmod = ((float(htKicking_Punting['30-39 FGM']) / float(htKicking_Punting['30-39 FGA'])) * 100)
- #print('Field Goal attempt 30-39', fgmod)
- #print('gametime', gametime)
- if 7000 <= ballposition <= 7999:
- if possession == hometeam:
- fgmod = (float(htKicking_Punting['20-29 FGM']) / float(htKicking_Punting['20-29 FGA'])) * 100
- #print('Field Goal attempt 20-29', fgmod)
- #print('gametime', gametime)
- if possession == awayteam:
- fgmod = (float(htKicking_Punting['20-29 FGM']) / float(htKicking_Punting['20-29 FGA'])) * 100
- #print('Field Goal attempt 20-29', fgmod)
- #print('gametime', gametime)
- if ballposition >= 8000:
- fgmod = 99
- #print('Field Goal attempt 0-19', fgmod)
- #print('gametime', gametime)
- fgchance = random.randint(0, 100)
- if fgchance <= fgmod:
- scores[possession] += 3
- #print('fieldgoal made')
- turnover()
- kickoff()
- else:
- turnover()
- def extrapointexecute():
- global scores
- if possession == hometeam:
- xpmod = float(htKicking_Punting['Scoring XP%'])
- if possession == awayteam:
- xpmod = float(atKicking_Punting['Scoring XP%'])
- xpchance = random.randint(0, 100)
- #print('xp', xpmod, xpchance)
- if xpchance <= xpmod:
- scores[possession] += 1
- def interceptioncheck():
- global possession
- global hometeam
- global awayteam
- global ballposition
- interceptionchance = random.randint(0, 100)
- if possession == hometeam:
- interceptionodds = (((float(htoffense['Int']) / float(htoffense['Passing Att'])) + (float(atdefense['Passing Int']) / float(atdefense['Passing Att'])) / 2) * 100)
- #print('interceptionodds', interceptionodds, 'interceptionchance', interceptionchance)
- nonpossession = awayteam
- if possession == awayteam:
- interceptionodds = (((float(atoffense['Int']) / float(atoffense['Passing Att'])) + (float(htdefense['Passing Int']) / float(htdefense['Passing Att'])) / 2) * 100)
- #print('interceptionodds', interceptionodds, 'interceptionchance', interceptionchance)
- nonpossession = hometeam
- if interceptionodds >= interceptionchance:
- #print(' ')
- #print(' ')
- #print(' ')
- #print(' ')
- #print('Interception! ', nonpossession, ' intercepts the ball from', possession)
- pick6chance = random.randint(0, 100)
- if pick6chance >= 99:
- #print('Interception! ', nonpossession, ' intercepts the ball from', possession)
- #print('Pick 6!')
- #print(scores)
- scores[nonpossession] += 6
- #print(scores)
- #print(possession, 'posession pre turnover')
- turnover()
- #print(possession, 'posession post turnover')
- extrapointexecute()
- #print(possession, 'posession post extra point')
- #print(scores)
- turnover()
- #print(possession, 'posession post second turnover')
- kickoff()
- #print(possession, 'posession post kickoff')
- else:
- turnover()
- def fumblecheck():
- global possession
- global hometeam
- global awayteam
- global ballposition
- fumblechance = random.randint(0, 100)
- if possession == hometeam:
- fumbleodds = (((float(htoffense['FL']) / float(htoffense['Rushing Att'])) + (float(atdefense['FL']) / float(atdefense['Rushing Att'])) / 2) * 100)
- #print('fumbleodds', fumbleodds, 'fumblechance', fumblechance)
- nonpossession = awayteam
- if possession == awayteam:
- fumbleodds = (((float(atoffense['FL']) / float(atoffense['Rushing Att'])) + (float(htdefense['FL']) / float(htdefense['Rushing Att'])) / 2) * 100)
- #print('fumbleodds', fumbleodds, 'fumblechance', fumblechance)
- nonpossession = hometeam
- if fumbleodds >= fumblechance:
- #print(' ')
- #print(' ')
- #print(' ')
- #print(' ')
- #print('Fumble! ', nonpossession, ' recovers the ball from', possession)
- fumble6chance = random.randint(0, 100)
- if fumble6chance >= 99:
- #print('Fumble 6!')
- #print('Fumble! ', nonpossession, ' recovers the ball from', possession)
- #print(scores)
- scores[nonpossession] += 6
- #print(scores)
- turnover()
- extrapointexecute()
- #print(scores)
- kickoff()
- else:
- turnover()
- def penaltycheck():
- global possession
- global seriesyards
- global ballposition
- global down
- global gametime
- global totalpenaltyyards
- global scores
- offensepenaltychance = random.randint(0, 100)
- defensepenaltychance = random.randint(0, 100)
- if possession == hometeam:
- offensepenaltyodds = ((float(htoffense['Pen Ct']) / float(htoffense['Tot Ply'])) * 100)
- offensepenaltyyards = ((float(htoffense['Pen Yds']) / float(htoffense['Pen Ct'])) * 100)
- defensepenaltyodds = ((float(atdefense['Pen Ct']) / float(atdefense['Ply'])) * 100)
- defensepenaltyyards = ((float(atdefense['Pen Yds']) / float(atdefense['Pen Ct'])) * 100)
- if offensepenaltychance <= offensepenaltyodds:
- gametime -= random.uniform(.2, .6)
- #print(possession, offensepenaltyodds, ' | ', 'offensepenaltyyards', offensepenaltyyards)
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- ballposition -= offensepenaltyyards
- seriesyards -= offensepenaltyyards
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- totalpenaltyyards += offensepenaltyyards
- #### Need to implement safety
- if defensepenaltychance <= defensepenaltyodds:
- gametime -= random.uniform(.2, .6)
- #print(possession, defensepenaltyyards,'defpenaltyyards', ' | ', 'defensepenaltyodds', defensepenaltyodds)
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- ballposition += offensepenaltyyards
- seriesyards += offensepenaltyyards
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- totalpenaltyyards += offensepenaltyyards
- if possession == awayteam:
- offensepenaltyodds = ((float(atoffense['Pen Ct']) / float(atoffense['Tot Ply'])) * 100)
- offensepenaltyyards = ((float(atoffense['Pen Yds']) / float(atoffense['Pen Ct'])) * 100)
- defensepenaltyodds = ((float(htdefense['Pen Ct']) / float(htdefense['Ply'])) * 100)
- defensepenaltyyards = ((float(htdefense['Pen Yds']) / float(htdefense['Pen Ct'])) * 100)
- if offensepenaltychance <= offensepenaltyodds:
- gametime -= random.uniform(.2, .6)
- #print(possession, offensepenaltyodds, ' | ', 'offensepenaltyyards', offensepenaltyyards)
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- ballposition -= offensepenaltyyards
- seriesyards -= offensepenaltyyards
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- totalpenaltyyards += offensepenaltyyards
- if defensepenaltychance <= defensepenaltyodds:
- gametime -= random.uniform(.2, .6)
- #print(possession, defensepenaltyyards,'defpenaltyyards', ' | ', 'defensepenaltyodds', defensepenaltyodds)
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- ballposition += offensepenaltyyards
- seriesyards += offensepenaltyyards
- #print('ballposition', ballposition, 'seriesyards', seriesyards)
- totalpenaltyyards += offensepenaltyyards
- if seriesyards >= 1000:
- down = 1
- #print('first down', down)
- seriesyards = 0
- #print('ballposition', ballposition)
- def turnover():
- global down
- global ballposition
- global possession
- global seriesyards
- down = 1
- ballposition = abs(ballposition - 1000)
- if possession == hometeam:
- possession = awayteam
- else:
- possession = hometeam
- seriesyards = 0
- #print('possession', possession)
- #print('ballposition', ballposition)
- #print('gametime', gametime)
- def executeplay():
- global playchoice
- global gametime
- gametime -= random.uniform(.2, .6)
- penaltycheck()
- if playchoice == 'passplay':
- passplayexecute()
- if playchoice == 'runplay':
- runplayexecute()
- if playchoice == 'fieldgoalplay':
- fieldgoalplayexecute()
- if playchoice == 'puntplay':
- puntplayexecute()
- #print(playchoice, possession)
- def game():
- teamstats()
- cointoss()
- kickoff()
- while gametime >= 30:
- chooseplay()
- executeplay()
- halftime()
- while gametime >= 0:
- chooseplay()
- executeplay()
- #print('scores: ', scores)
- #print('gametime Over')
- global wins
- winner = max(scores.keys(), key=(lambda k: scores[k]))
- #print('winner :', winner)
- global totalscores
- hometeamscores = scores[hometeam]
- awayteamscores = scores[awayteam]
- totalscores[hometeam] += hometeamscores
- totalscores[awayteam] += awayteamscores
- global end
- def printstats():
- global totalpassplays
- global totalpassyards
- global totalcompletions
- global end
- global start
- global gamesplayed
- global finalscores
- global matchcount
- #print('Total Scores: ', totalscores)
- #print('Total Yards per attempt: ', (totalstats['totalpassyards'] / totalstats['totalpassplays']) / 100)
- #print('Total Average yards per completion', (totalstats['totalpassyards'] / totalstats['totalcompletions']) / 100)
- #print('Total per Carry: ', (totalstats['totalrushyards'] / totalstats['totalrunplays']) / 100)
- #print('Total yards per punt: ', (totalstats['totalpuntyards'] / totalstats['totalpuntplays']) / 100)
- htstats['comp percent'] = 100 * (htstats['totalcompletions'] / htstats['totalpassplays'])
- htstats['YP COMP'] = (htstats['totalpassyards'] / htstats['totalcompletions']) / 100
- htstats['YP Carry'] = (htstats['totalrushyards'] / htstats['totalrunplays']) / 100
- atstats['comp percent'] = 100 * (atstats['totalcompletions'] / atstats['totalpassplays'])
- atstats['YP COMP'] = (atstats['totalpassyards'] / atstats['totalcompletions']) / 100
- atstats['YP Carry'] = (atstats['totalrushyards'] / atstats['totalrunplays']) / 100
- #print(hometeam, htstats)
- #print(awayteam, atstats)
- #print(hometeam,'completion %: ', htstats['comp percent'],' Yards Per completion: ', htstats['YP COMP'],'Yards Per Carry: ', htstats['YP Carry'] )
- #print(awayteam,'completion %: ', atstats['comp percent'],' Yards Per completion: ', atstats['YP COMP'],'Yards Per Carry: ', atstats['YP Carry'] )
- #print('Average scores :', hometeam, (totalscores[hometeam] / gamesplayed), awayteam, (totalscores[awayteam] / gamesplayed))
- end = timer()
- #print('time: ', (end - start) )
- #print('')
- finalscores.append(hometeam + ' : ' + str((totalscores[hometeam] / gamesplayed)) + ' | ' + awayteam + ' : ' + str((totalscores[awayteam] / gamesplayed)))
- def match():
- global games
- global offset
- global gamesplayed
- global matchcount
- global totalpenaltyyards
- statsreset()
- for i in range(gamesplayed):
- game()
- games += 1
- if games >= offset:
- #print('Percent complete: ', int(( 100 * (offset / gamesplayed))), ' | Match Number: ', matchcount)
- offset += 10000
- matchcount += 1
- printstats()
- #print(totalpenaltyyards)
- gamesplayed = 1
- hometeam = 'Philadelphia Eagles'
- awayteam = 'New York Giants'
- match()
- hometeam = 'Seattle Seahawks'
- awayteam = 'Oakland Raiders'
- match()
- hometeam = 'Los Angeles Chargers'
- awayteam = 'Cleveland Browns'
- match()
- hometeam = 'Tampa Bay Buccaneers'
- awayteam = 'Atlanta Falcons'
- match()
- hometeam = 'Buffalo Bills'
- awayteam = 'Houston Texans'
- match()
- hometeam = 'Carolina Panthers'
- awayteam = 'Washington Redskins'
- match()
- hometeam = 'Baltimore Ravens'
- awayteam = 'Tennessee Titans'
- match()
- hometeam = 'Kansas City Chiefs'
- awayteam = 'New England Patriots'
- match()
- hometeam = 'Indianapolis Colts'
- awayteam = 'New York Jets'
- match()
- hometeam = 'Chicago Bears'
- awayteam = 'Miami Dolphins'
- match()
- hometeam = 'Arizona Cardinals'
- awayteam = 'Minnesota Vikings'
- match()
- hometeam = 'Pittsburgh Steelers'
- awayteam = 'Cincinnati Bengals'
- match()
- hometeam = 'Los Angeles Rams'
- awayteam = 'Denver Broncos'
- match()
- hometeam = 'Jacksonville Jaguars'
- awayteam = 'Dallas Cowboys'
- match()
- hometeam = 'San Francisco 49ers'
- awayteam = 'Green Bay Packers'
- match()
- #hometeam = 'Detroit Lions'
- #awayteam = 'Green Bay Packers'
- #match()
- print(finalscores)
- print('time: ', (end - start) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement