Merge branch 'main' into refactoring

This commit is contained in:
Florian Kaiser
2021-07-14 11:37:24 +02:00
committed by GitHub
6 changed files with 7 additions and 5 deletions

View File

@@ -192,6 +192,8 @@ function start_game() {
});
socket.on('card', function (data) {
if (show_card === true) card.destroyCard();
card = new Card(game_board_size, data.card.question, data.card['answers'][0], data.card['answers'][1], data.card['answers'][2], data.card['answers'][3], data.card['difficulty'], data.username === username);
card.showCard();
show_card = true;