Closed na2hiro closed 3 years ago
Sorry, I have messed up the initial testing. The example code nor the position didn't make sense.
Updated the post above: The issue happens when unmaking a move of capturing promoted pieces. I'm working on creating PR for this.
I appreciate that you've been maintaining the great library. I'm trying to write some code to solve tsume shogi with this.
It seems that
unmake_move
doesn't decrement a piece count of the type which was captured by the move, but it should. Unmaking such moves with captures adds extra piece in the game every time.Reproduction code
The position used for the example in KIF format: