Score board was shown every time if the first answer was false #56

Merged
H4CK3R-01 merged 1 commits from fix_score_board into main 2021-07-10 14:03:08 +00:00
Showing only changes of commit 6ca0f7f9aa - Show all commits

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},