From 93de617d83d469c40b75f03d061b5e9bfdb0355e Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 2 Jan 2021 13:30:07 -0700 Subject: [PATCH] Wait until game starts to give the cards to each team. --- server/src/objects/Game.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/server/src/objects/Game.ts b/server/src/objects/Game.ts index abbb69e..bcc10ba 100644 --- a/server/src/objects/Game.ts +++ b/server/src/objects/Game.ts @@ -28,16 +28,13 @@ 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(1), new Team(2) ]; }; get questions() { return this._questions; };