Python Forum
optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable (/thread-41795.html)



optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable - max22 - Mar-20-2024

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?


RE: optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable - max22 - Mar-21-2024

(Mar-20-2024, 01:25 PM)max22 Wrote: 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?

There are no errors and the code is provided. I do not follow what do you mean.