aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/main.py b/main.py
index 23d61fc..4e066b8 100644
--- a/main.py
+++ b/main.py
@@ -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})",
)