def __init__(self): ZDPlayer.__init__(self)
if i % 1 == 0: self.LeaderboardCSV() self.Leaderboard() print("Concluded round %d of %d ." % (i, self.n_round)) if __name__ == "__main__": # Create a tournament with 4 players per table tournament = ZDTournament(5000) tournament.n_player = 4 # Add players tournament.LoadFolder('.') # Add baseline tournament.RegisterPlayer(ZDPlayer()) tournament.Run() tournament.PrintOutcome() tournament.Leaderboard() # Create a tournament -- 1 vs 1 tournament = ZDTournament(5000) tournament.n_player = 2 # Add players tournament.LoadFolder('.') # Add baseline tournament.RegisterPlayer(ZDPlayer())