chessboardjs icon indicating copy to clipboard operation
chessboardjs copied to clipboard

fix - drag durring opponent's turn

Open MaligynK opened this issue 10 years ago • 3 comments

Sorry for my language. Bug - When player drag piece durring opponent's turn, piece appears on board after opponent's move. Decision - It is check position on source dragged.

MaligynK avatar Oct 16 '14 19:10 MaligynK

https://github.com/oakmac/chessboardjs/pull/42/files - other decision for this bug

MaligynK avatar Oct 22 '14 10:10 MaligynK

var board2 = new ChessBoard('board2', { draggable: true, dropOffBoard: 'trash', sparePieces: true }); $('#startBtn').on('click', board2.start); $('#clearBtn').on('click', board2.clear);

LeBlanc666 avatar Jan 30 '15 10:01 LeBlanc666

Thanks andrei-markeev and MaligynK for this fix. Now is there a way to trash the dragged piece if it's been captured by the opponent in the meantime?

user14159 avatar Mar 29 '16 03:03 user14159