Skip to content

Commit

Permalink
Scoreboard update
Browse files Browse the repository at this point in the history
  • Loading branch information
hars-21 committed Aug 5, 2024
1 parent 3e9689a commit 383666f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,11 @@ class Game {
this.currentPlayerIndex = 0;
}

// Update the UI
this.switchPlayer();
this.currentPlayer = this.players[this.currentPlayerIndex];

this.addPlayersUI();
this.updatePlayerNameUI();
this.updatePlayerScoreUI();

if (this.players.length == 1) {
this.invokeEvent("playerWin");
Expand Down

0 comments on commit 383666f

Please sign in to comment.