diff --git a/server/src/objects/Team.ts b/server/src/objects/Team.ts index 1257669..151b9d5 100644 --- a/server/src/objects/Team.ts +++ b/server/src/objects/Team.ts @@ -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(8).fill(``); this._questions = []; - this._hand = []; + this._hand = { + guesser: [], + writer: [] + }; this.guessers = []; }; diff --git a/server/src/types/team_hands.d.ts b/server/src/types/team_hands.d.ts new file mode 100644 index 0000000..3175670 --- /dev/null +++ b/server/src/types/team_hands.d.ts @@ -0,0 +1,4 @@ +interface team_hands { + guesser: question_deck[]; + writer: question_deck[]; +} \ No newline at end of file