diff --git a/js/main.js b/js/main.js index 17e0eb1..4b90119 100644 --- a/js/main.js +++ b/js/main.js @@ -223,12 +223,14 @@ class ChessApp { const captured = this.game.gameState.capturedPieces; - whiteCaptured.innerHTML = captured.black.map(piece => - `${piece.getSymbol()}` + // "Captured by Black" shows white pieces that black captured + whiteCaptured.innerHTML = captured.white.map(piece => + `${piece.getSymbol()}` ).join('') || '-'; - blackCaptured.innerHTML = captured.white.map(piece => - `${piece.getSymbol()}` + // "Captured by White" shows black pieces that white captured + blackCaptured.innerHTML = captured.black.map(piece => + `${piece.getSymbol()}` ).join('') || '-'; }