Closed EikeSchwass closed 11 months ago
Should be fixed now, thank you! (I assume you were using the NonAlloc version of GetLegalMoves because I couldn't find an error with the regular version?)
Should be fixed now, thank you! (I assume you were using the NonAlloc version of GetLegalMoves because I couldn't find an error with the regular version?)
Yes, sorry! I assumed the error would be the same in both GetLegalMoves and GetLegalMovesNonAlloc, should have been more rigorous in my bug report. Thanks for fixing it :)
If you call the
board.GetLegalMoves(true)
method and it returns 0 moves (although non captures would be available),board.HasZeroLegalMoves()
uses the cachedGetLegalMoves(true)
response and returns true.