From 1ee54b5d9ad1e128b2ed6112fca059bba6cdca45 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 16 Jul 2023 15:54:04 +0200 Subject: chore: Update games --- main.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'main.py') 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})", ) -- cgit v1.3