From 6d0d14e385a9babb52db0564602bca90b684f432 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 7 May 2021 10:30:01 -0500 Subject: Fix a lot of typos --- back/src/Game.ts | 2 +- front/pages/index.tsx | 49 ++++++++++++++++++++++++------------------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/back/src/Game.ts b/back/src/Game.ts index 043e1f2..15155fd 100644 --- a/back/src/Game.ts +++ b/back/src/Game.ts @@ -174,7 +174,7 @@ export default class Game { const p = this.players[this.lastPlayedPlayer]; this.broadcastGameState(); await new Promise(resolve => { - p.client.once('turn', selectedPlayer => { + p.client.once('flip', selectedPlayer => { delete p.disconnectListener; (() => { if (this.players[selectedPlayer].stack.length > 0) { diff --git a/front/pages/index.tsx b/front/pages/index.tsx index 2a15c6c..1d8918c 100644 --- a/front/pages/index.tsx +++ b/front/pages/index.tsx @@ -123,29 +123,29 @@ export default function Game() { {`Rearrange your card stack from top to bottom!`}
-

Your cards:

- {gameState.cards.map((card, i) => ( - - ))} - -
+

Your cards:

+ {gameState.cards.map((card, i) => ( + + ))} + + ); } @@ -170,7 +170,6 @@ export default function Game() { {`It's ${gameState.playerTurn}'s turn!`}
-

Your cards:

))}