0
0
Fork 0

Move card drawing for the teams

This commit is contained in:
Oliver-Akins 2021-01-01 16:04:19 -07:00
parent 3a765ca1e8
commit 728522986a

View file

@ -27,16 +27,16 @@ export class Game {
switch (conf.game.cards.type) {
case "csv":
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;
case "sheets":
this.parseDeckGoogleSheets(conf);
break;
};
// Instantiate everything for the teams
this.teams = [ new Team(), new Team() ];
this.teams[0].addQuestions(this._questions.draw(conf.game.hand_size));
this.teams[1].addQuestions(this._questions.draw(conf.game.hand_size));
};
get questions() { return this._questions; };