From a6153aa85a200fb324cf8f2e8830d6c0f31fd616 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 19 Feb 2023 13:07:03 +0100 Subject: chore: Add game --- main.py | 8 ++++++++ src/strategy.py | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index d20b825..1d93332 100644 --- a/main.py +++ b/main.py @@ -161,6 +161,14 @@ games: list[Game] = [ Player.Martin: 36, }, ), + Game( + datetime.fromisoformat("2023-02-19 12:35"), + { + Player.Thomas: 50, + Player.Emma: 62, + Player.Theo: 62, + } + ) ] for game in games: diff --git a/src/strategy.py b/src/strategy.py index 1d30a55..6713299 100644 --- a/src/strategy.py +++ b/src/strategy.py @@ -1,8 +1,7 @@ -from typing import TYPE_CHECKING, Protocol +from typing import Protocol -if TYPE_CHECKING: - from src.game import Game - from src.player import Player +from src.game import Game +from src.player import Player class GameEloChangeStrategy(Protocol): -- cgit v1.3