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
  a chess endgame problem, almost solved but not quite max22 0 165 Mar-31-2024, 06:14 PM
Last Post: max22
  A new endgame problem, almost solved but not quite 2 max22 0 241 Mar-07-2024, 07:12 PM
Last Post: max22
  strange behavior of chess library in Python max22 1 319 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,055 Aug-31-2023, 05:36 PM
Last Post: deanhystad
  Code works but doesn't give the right results colin_dent 2 723 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Give a number for Variable quest 2 1,521 Jan-31-2022, 08:35 AM
Last Post: ibreeden
  Matching Exact String(s) Extra 4 1,930 Jan-12-2022, 04:06 PM
Last Post: Extra
  replace exact word marfer 1 6,188 Oct-11-2021, 07:08 PM
Last Post: snippsat
  Assistance with running a few lines of code at an EXACT time nethatar 5 3,270 Feb-24-2021, 10:43 PM
Last Post: nilamo
  Python chess game to detect winner ddddd 1 2,013 Dec-13-2020, 10:24 PM
Last Post: michael1789

Forum Jump:

User Panel Messages

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