0
0
Fork 0

Add an id attribute and default the guessers array

This commit is contained in:
Oliver-Akins 2021-01-01 16:05:16 -07:00
parent fc298f30d4
commit eca3b1d5f9

View file

@ -1,16 +1,19 @@
import { Player } from "./Player";
export class Team {
readonly id: team;
public guessers: Player[];
public writer: Player | null;
private _hand: string[];
private _questions: string[];
private _answers: string[];
constructor() {
constructor(id: team) {
this.id = id;
this._answers = new Array<string>(8).fill(``);
this._questions = [];
this._hand = [];
this.guessers = [];
};