0
0
Fork 0

Wait until game starts to give the cards to each team.

This commit is contained in:
Oliver-Akins 2021-01-02 13:30:07 -07:00
parent 21c9034ab6
commit 93de617d83

View file

@ -28,16 +28,13 @@ export class Game {
switch (conf.game.cards.type) { switch (conf.game.cards.type) {
case "csv": case "csv":
this.parseDeckCSV(conf); this.parseDeckCSV(conf);
// Instantiate everything for the teams
this.teams = [ new Team(1), new Team(2) ];
this.teams[0].addCardsToHand(this._questions.draw(conf.game.hand_size));
this.teams[1].addCardsToHand(this._questions.draw(conf.game.hand_size));
break; break;
case "sheets": case "sheets":
this.parseDeckGoogleSheets(conf); this.parseDeckGoogleSheets(conf);
break; break;
}; };
// Instantiate everything for the teams
this.teams = [ new Team(1), new Team(2) ];
}; };
get questions() { return this._questions; }; get questions() { return this._questions; };