add game actions and winner to ts dto definition

This commit is contained in:
Branden J Brown 2024-02-03 11:53:19 -06:00
parent 1068060e94
commit 21606cd3cd
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,17 @@ export interface Game {
* The first element is the dealer and the second is the challenger. * The first element is the dealer and the second is the challenger.
*/ */
players: [Player, Player]; players: [Player, Player];
/**
* Previous action that occurred.
*/
action: "Start"
| "Shoot" | "GameEnd" | "BeerGameEnd" | "ChallengerWins" | "DealerWins"
| "Lens" | "Cig" | "Beer" | "Cuff" | "Knife"
| "DealerConcedes" | "ChallengerConcedes"
/**
* Round winner.
*/
winner?: 0 | 1 | null
/** /**
* Round number. * Round number.
*/ */