From: Steinar H. Gunderson Date: Sat, 10 Feb 2018 17:08:09 +0000 (+0100) Subject: Yet more Chess960 castling fixes. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=af810b27bbc126ec160cede505313a3a530cdcb4 Yet more Chess960 castling fixes. --- diff --git a/www/js/chess.js b/www/js/chess.js index 9da372c..a0e3813 100644 --- a/www/js/chess.js +++ b/www/js/chess.js @@ -1104,7 +1104,7 @@ var Chess = function(fen) { castling_from = move.to + 1; } - board[castling_to] = board[castling_from]; + board[castling_to] = {type: ROOK, color: us}; if(castling_from !== move.from && castling_from !== castling_to) board[castling_from] = null; }