vitogit / vue-chessboard

Chessboard vue component to load positions, create positions and see threats
http://vitomd.com/vue-chessboard-examples/
GNU General Public License v3.0
165 stars 49 forks source link

En Passant not working #1

Closed kilpatty closed 6 years ago

kilpatty commented 6 years ago

Hey just saw this on the /r/Vue subreddit. Love what you have done here, but there is a quick bug that I have found.

Right now when performing an "En Passant" the pawn that should be taken is not.

How to replicate: White: pd4 Black: pf6 White: pd5 Black pe5 White: pe6

In this scenario the black pawn on e5 should be captured, but it is indeed not.

Hope this helps!

Cheers

vitogit commented 6 years ago

Thanks for the feedback. It should be fixed in this commit https://github.com/vitogit/vue-chessboard/commit/0ac0674cf499d1c5c5de02480eb72c7c9963725b Also I added a promotion callback.