# CMD play for testing from pprint import pprint as pp import random import sys import traceback from src import GAME from src import turnController from src.play import play GAME.setTeam('raiders.json') GAME.setEnemy('raiders.json') GAME.turn = "dummy" GAME.down = 1 GAME.callout = 'End Run' GAME.into = "End Run" GAME.rolls = {} GAME.localstance = "Offense" GAME.end = False GAME.startingstance = "Offense" GAME.validateState() GAME.firstdown = 50 ALL_D = ["Standard", "Short Yardage", "Spread", "Pass Prevent Short", "Pass Prevent Long", "Blitz"] # 6 ALL_A = ["Line Plunge", "Off Tackle", "End Run", "Draw", "Screen", "Short", "Medium", "Long", "Sideline"] # 9 def fullGame(): for i in range(0, 150):
def chooseTeam(self, team): GAME.setTeam(team) self.parent.changeState(GAME.state)