diff --git a/packages/domain_layer/src/player/type.ts b/packages/domain_layer/src/player/type.ts index 7f43079..f3477d8 100644 --- a/packages/domain_layer/src/player/type.ts +++ b/packages/domain_layer/src/player/type.ts @@ -5,3 +5,12 @@ export type Player = { hands: Card[]; pastReceivedCards: Card[]; }; + +export enum SelectedPlayerAction { + guessing = 'GUESSING', + escape = 'ESCAPE', +} + +export type SelectedPlayer = Player & { + action: SelectedPlayerAction; +}; diff --git a/packages/domain_layer/src/round/type.ts b/packages/domain_layer/src/round/type.ts index e06e28e..5670d98 100644 --- a/packages/domain_layer/src/round/type.ts +++ b/packages/domain_layer/src/round/type.ts @@ -4,4 +4,6 @@ export type Round = { id: number; currentPlayer: Player; selectedPlayer: Player; + isGameEnd: boolean; + hasBeenSelectedPlayer: Player[]; };