Python Forum
optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
optimum chess endgame with D=3 pieces doesn't give an exact moves_to_mate variable
#1
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?
Larz60+ write Mar-21-2024, 10:24 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply
#2
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Endgame engine with non-standard figures doesn't behave correctly max248 0 459 Dec-07-2024, 12:44 PM
Last Post: max248
  a chess endgame problem, almost solved but not quite max22 0 698 Mar-31-2024, 06:14 PM
Last Post: max22
  A new endgame problem, almost solved but not quite 2 max22 0 802 Mar-07-2024, 07:12 PM
Last Post: max22
  Python trivial endgame engine is not working as expected max22 0 1,110 Feb-24-2024, 04:41 PM
Last Post: max22
  strange behavior of chess library in Python max22 1 1,171 Jan-18-2024, 06:35 PM
Last Post: deanhystad
Question in this code, I input Key_word, it can not find although all data was exact Help me! duchien04x4 3 1,929 Aug-31-2023, 05:36 PM
Last Post: deanhystad
  Code works but doesn't give the right results colin_dent 2 1,383 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Give a number for Variable quest 2 2,106 Jan-31-2022, 08:35 AM
Last Post: ibreeden
  Matching Exact String(s) Extra 4 2,921 Jan-12-2022, 04:06 PM
Last Post: Extra
  replace exact word marfer 1 8,466 Oct-11-2021, 07:08 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020