diff --git a/js/chess.js b/js/chess.js index d12c53e..98d06f1 100644 --- a/js/chess.js +++ b/js/chess.js @@ -319,6 +319,7 @@ function movePiece(priorBoard, side, from, to){ if (move.side[0] === other[0] && moveFrom[1] != to[1]) { board.move.en_passant = true; alongside = 'p'; + board.move.took = 'p'; boardPut(board, move.to, other, ' '); replacedFrom = move.to; replaced = boardGet(board, replacedFrom, side);