diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-07-16 15:54:04 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-07-16 15:54:04 +0200 |
| commit | 1ee54b5d9ad1e128b2ed6112fca059bba6cdca45 (patch) | |
| tree | 40401f5da578903c7378c6f0fbf449c2f90ad297 /main.py | |
| parent | f48b2234e9effe06d97ddac0cca525fa81cd872f (diff) | |
chore: Update games
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -169,6 +169,24 @@ games: list[Game] = [ Player.Theo: 62, }, ), + Game( + datetime.fromisoformat("2023-07-15 15:00"), + { + Player.Thomas: 52, + Player.Emma: 44, + Player.Martin: 60, + Player.Baptiste: 52, + }, + ), + Game( + datetime.fromisoformat("2023-07-15 15:30"), + { + Player.Thomas: 56, + Player.Emma: 55, + Player.Martin: 34, + Player.Baptiste: 43, + }, + ), ] for game in games: @@ -176,7 +194,7 @@ for game in games: print("=" * 30) players_elo_updates = ladder.proccess_game(game) - for (player, elo_update) in players_elo_updates.items(): + for player, elo_update in players_elo_updates.items(): print( f"\t{player.value:<20}{int(elo_update):+}\t({ladder.players[player].elo:>4d})", ) |
