From 6ca0f7f9aabd19e81404aefe4ee58c75d341a2f6 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 <44125287+H4CK3R-01@users.noreply.github.com> Date: Fri, 9 Jul 2021 17:58:34 +0200 Subject: [PATCH] Score board was shown every time if the first answer was false --- public/js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/game.js b/public/js/game.js index f84bf1e..b2ab7de 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -268,7 +268,7 @@ function start_game() { break; } - if (x === 1 && y === 9) { + if (x === 1 && y === 9 && data.position !== 0) { card = new Card(game_board_size, "", {"text": playerNames[0] ? playerNames[0] + ": " + positions[0] : ("Kein Spieler"), "status": false}, {"text": playerNames[1] ? playerNames[1] + ": " + positions[1] : ("Kein Spieler"), "status": false},