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 = [];
|
||||
};
|
||||
|
||||
|
|
|
|||
4
server/src/types/team_hands.d.ts
vendored
Normal file
4
server/src/types/team_hands.d.ts
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
interface team_hands {
|
||||
guesser: question_deck[];
|
||||
writer: question_deck[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue