You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently isn't a way to get the captured piece from the last executed move. I'll definitely add this functionality!
What you can do, however is check for a change with capturedPieces(for:). There's also checking the piece at move.end before the move but that won't take en passant into account.
First of all, awesome work you have here!
Now, how do I get the captured piece after a move?
I've been looking at the move history, but I wonder if you though about an easier way.
The text was updated successfully, but these errors were encountered: