Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix - drag durring opponent's turn #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix - drag durring opponent's turn #86

wants to merge 1 commit into from

Conversation

MaligynK
Copy link

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.

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
Copy link
Author

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

@LeBlanc666
Copy link

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

@user14159
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants