fix: Correct DOM element IDs for move history and captured pieces #5
@ -182,7 +182,7 @@ class ChessApp {
|
||||
* Update move history display
|
||||
*/
|
||||
updateMoveHistory() {
|
||||
const moveList = document.getElementById('move-list');
|
||||
const moveList = document.getElementById('move-history');
|
||||
const history = this.game.gameState.moveHistory;
|
||||
|
||||
if (history.length === 0) {
|
||||
@ -211,8 +211,8 @@ class ChessApp {
|
||||
* Update captured pieces display
|
||||
*/
|
||||
updateCapturedPieces() {
|
||||
const whiteCaptured = document.getElementById('white-captured');
|
||||
const blackCaptured = document.getElementById('black-captured');
|
||||
const whiteCaptured = document.getElementById('captured-white-pieces');
|
||||
const blackCaptured = document.getElementById('captured-black-pieces');
|
||||
|
||||
const captured = this.game.gameState.capturedPieces;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user