diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-02-19 12:57:27 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-02-19 12:57:27 +0100 |
| commit | 7200fcf3f4e4c22193b5b96452f9aa5131b1bc1c (patch) | |
| tree | 812cf7b0f7a25b865d694199e9e4d29714a72fd3 /game.py | |
| parent | 4f87f915ef7c6b8f20f70d35ff675059326680bd (diff) | |
refactor: Move to src
Diffstat (limited to 'game.py')
| -rw-r--r-- | game.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/game.py b/game.py deleted file mode 100644 index 8c88f6e..0000000 --- a/game.py +++ /dev/null @@ -1,14 +0,0 @@ -from dataclasses import dataclass -from datetime import datetime - -from player import Player - - -@dataclass(frozen=True) -class Game: - played_at: datetime - scores: dict[Player, int] - - def __str__(self) -> str: - total_points = sum(self.scores.values()) - return f"Game played at {self.played_at} ({total_points} total points)" |
