set max innings of debug tournament round to 3 for faster testing
This commit is contained in:
parent
12255e3eef
commit
d5f2ceeac9
|
@ -19,13 +19,13 @@ class division(object):
|
|||
self.teams = {} #key: team object, value: {wins; rd (run diff)}
|
||||
|
||||
class tournament(object):
|
||||
def __init__(self, name, team_dic, series_length = 5, maxinnings = 9):
|
||||
def __init__(self, name, team_dic, series_length = 5, max_innings = 9):
|
||||
self.name = name
|
||||
self.teams = team_dic #same format as division, wins/losses will be used for seeding later
|
||||
self.bracket = None
|
||||
self.results = None
|
||||
self.series_length = series_length
|
||||
self.game_length = maxinnings
|
||||
self.game_length = max_innings
|
||||
self.active = False
|
||||
|
||||
def build_bracket(self, random_sort = False, by_wins = False):
|
||||
|
|
|
@ -448,7 +448,7 @@ class StartTournamentCommand(Command):
|
|||
games.get_team("Pigeon’s Reckoning") : {"wins": 0, "rd": 0},
|
||||
games.get_team("Kernow Technologists") : {"wins": 0, "rd": 0}
|
||||
}
|
||||
tourney = leagues.tournament("Test Tourney", test_bracket)
|
||||
tourney = leagues.tournament("Test Tourney", test_bracket, max_innings=3)
|
||||
tourney.build_bracket(random_sort=True)
|
||||
|
||||
tourney_task = asyncio.create_task(start_tournament_round(msg.channel, tourney))
|
||||
|
|
Loading…
Reference in New Issue
Block a user