add game actions and winner to ts dto definition
This commit is contained in:
parent
1068060e94
commit
21606cd3cd
@ -7,6 +7,17 @@ export interface Game {
|
||||
* The first element is the dealer and the second is the challenger.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user