Store game state

This commit is contained in:
Yohann D'ANELLO 2021-11-08 16:29:50 +01:00
parent 015456bb6f
commit d425426c42
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 7 additions and 0 deletions

View File

@ -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)