Merge pull request #56 from H4CK3R-01/fix_score_board

Score board was shown every time if the first answer was false
This commit is contained in:
Florian Kaiser 2021-07-10 16:03:08 +02:00 committed by GitHub
commit 938583cbf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ function start_game() {
break; break;
} }
if (x === 1 && y === 9) { if (x === 1 && y === 9 && data.position !== 0) {
card = new Card(game_board_size, "", card = new Card(game_board_size, "",
{"text": playerNames[0] ? playerNames[0] + ": " + positions[0] : ("Kein Spieler"), "status": false}, {"text": playerNames[0] ? playerNames[0] + ": " + positions[0] : ("Kein Spieler"), "status": false},
{"text": playerNames[1] ? playerNames[1] + ": " + positions[1] : ("Kein Spieler"), "status": false}, {"text": playerNames[1] ? playerNames[1] + ": " + positions[1] : ("Kein Spieler"), "status": false},