(
self,
game: Game,
*,
n_rounds: int,
k: float = 32,
update_strategy: Literal["per_round", "per_tournament"] = "per_round",
)
| 69 | |
| 70 | class Tournament: |
| 71 | def __init__( |
| 72 | self, |
| 73 | game: Game, |
| 74 | *, |
| 75 | n_rounds: int, |
| 76 | k: float = 32, |
| 77 | update_strategy: Literal["per_round", "per_tournament"] = "per_round", |
| 78 | ): |
| 79 | self.game = game |
| 80 | self.n_rounds = n_rounds |
| 81 | self.k = k |
| 82 | self.update_strategy = update_strategy |
| 83 | |
| 84 | def run_tournament(self, players: list[Player]): |
| 85 | """Runs tournament with the players and updates their measured elo.""" |
nothing calls this directly
no outgoing calls
no test coverage detected