Adapt the Team object to work with the two hands
This commit is contained in:
parent
1a54b301d1
commit
39304d739b
2 changed files with 9 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ export class Team {
|
|||
readonly id: team;
|
||||
public guessers: Player[];
|
||||
public writer: Player | null;
|
||||
private _hand: string[];
|
||||
private _hand: team_hands;
|
||||
private _questions: string[];
|
||||
private _answers: string[];
|
||||
|
||||
|
|
@ -12,7 +12,10 @@ export class Team {
|
|||
this.id = id;
|
||||
this._answers = new Array<string>(8).fill(``);
|
||||
this._questions = [];
|
||||
this._hand = [];
|
||||
this._hand = {
|
||||
guesser: [],
|
||||
writer: []
|
||||
};
|
||||
this.guessers = [];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue