|
|
|
@ -43,12 +43,6 @@ class BoardGameComponent extends HTMLElement { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.querySelectorAll(".current-player-name").forEach((playerNameElement) => { |
|
|
|
|
if ((playerNameElement as HTMLElement).innerText !== gameState.currentPlayerName) { |
|
|
|
|
(playerNameElement as HTMLElement).innerText = gameState.currentPlayerName; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const buttonValues = getButtonValues(gameState); |
|
|
|
|
this.querySelectorAll("button").forEach((button) => { |
|
|
|
|
button.classList.forEach((className) => { |
|
|
|
|