I have just upgraded my code for computing completely optimally for both players a chess endgame as given here:
https://pastebin.com/jQ090L01 but it gives to me 2 plies to checkmate White instead of correct 4 plies according to StockFish.
Can someone give me a hint how to fix this and where is the source of the problem?
https://pastebin.com/jQ090L01 but it gives to me 2 plies to checkmate White instead of correct 4 plies according to StockFish.
Can someone give me a hint how to fix this and where is the source of the problem?