Compare commits
1
Commits
main
...
82479fb8c7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82479fb8c7 |
+3
-3
@@ -182,7 +182,7 @@ class ChessApp {
|
|||||||
* Update move history display
|
* Update move history display
|
||||||
*/
|
*/
|
||||||
updateMoveHistory() {
|
updateMoveHistory() {
|
||||||
const moveList = document.getElementById('move-list');
|
const moveList = document.getElementById('move-history');
|
||||||
const history = this.game.gameState.moveHistory;
|
const history = this.game.gameState.moveHistory;
|
||||||
|
|
||||||
if (history.length === 0) {
|
if (history.length === 0) {
|
||||||
@@ -211,8 +211,8 @@ class ChessApp {
|
|||||||
* Update captured pieces display
|
* Update captured pieces display
|
||||||
*/
|
*/
|
||||||
updateCapturedPieces() {
|
updateCapturedPieces() {
|
||||||
const whiteCaptured = document.getElementById('white-captured');
|
const whiteCaptured = document.getElementById('captured-white-pieces');
|
||||||
const blackCaptured = document.getElementById('black-captured');
|
const blackCaptured = document.getElementById('captured-black-pieces');
|
||||||
|
|
||||||
const captured = this.game.gameState.capturedPieces;
|
const captured = this.game.gameState.capturedPieces;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user