Move card drawing for the teams
This commit is contained in:
parent
3a765ca1e8
commit
728522986a
1 changed files with 5 additions and 5 deletions
|
|
@ -27,16 +27,16 @@ 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(), 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; };
|
get questions() { return this._questions; };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue