From d425426c42c5ae4fa44b0189eadb3b95a05b394f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 8 Nov 2021 16:29:50 +0100 Subject: [PATCH] Store game state --- orochi/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/orochi/models.py b/orochi/models.py index 3cbf33e..f9c80ab 100644 --- a/orochi/models.py +++ b/orochi/models.py @@ -11,6 +11,12 @@ class Room(Enum): C = 'C' +class GameState(Enum): + PREPARING = 0 + VOTING = 1 + RESULTS = 2 + + class Vote(Enum): ALLY = 'A' BETRAY = 'B' @@ -101,6 +107,7 @@ class Round: class Game: INSTANCE: ClassVar["Game"] = None + state: GameState = GameState.PREPARING rounds: list[Round] = field(default_factory=list) players: dict[str, Player] = field(default_factory=dict)