def sOneDown(team): # Game Ready Setup if team.brain.game.state == NogginConstants.GAME_READY: # team is kicking off return ['sTwoDown'] + Formations.fReady(team) # Kickoff Formations if (team.brain.game.getTimeSincePlay() < PBConstants.KICKOFF_FORMATION_TIME): return ['sTwoDown'] + Formations.fTwoKickoff(team) # Formation for ball in our goal box elif team.shouldUseDubD(): return ['sTwoDown'] + Formations.fDubD(team) elif (team.brain.timeSinceBallSeen() > PBConstants.FINDER_TIME_THRESH and team.brain.game.getTimeSinceUnpenalized() > PBConstants.FINDER_TIME_THRESH): return ['sSpread'] + Formations.fFinder(team) return ['sTwoDown'] + Formations.fTwoDown(team)