mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-04-17 22:46:00 +00:00
Merge turn indicator with player indicator at top
- Added ID to turn label for easier updates - Updated multiplayer.js to use turnLabel ID - Reset turn label when switching modes or resetting game - Improved UX by keeping player/turn info together
This commit is contained in:
7
game.js
7
game.js
@@ -243,6 +243,13 @@ class Connect5Game {
|
||||
this.currentPlayer = "X";
|
||||
this.gameActive = true;
|
||||
this.hideVictoryOverlay();
|
||||
|
||||
// Reset turn label to default
|
||||
const turnLabel = document.getElementById('turnLabel');
|
||||
if (turnLabel) {
|
||||
turnLabel.textContent = 'Current Turn:';
|
||||
}
|
||||
|
||||
this.initializeBoard();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user