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:
2025-12-21 17:52:12 +11:00
parent 5a3315ed9d
commit 481de45276
3 changed files with 16 additions and 2 deletions

View File

@@ -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();
}
}