And the log, notice the "resignations disabled" bit at the beginning, yet it resigned, admittedly very late though, note "black resigns" at the end:
Unless I'm missing something extremely obvious and am being stupid, Crafty did resign despite receiving and acknowledging the command not to. And hopefully it is the right log file...
Last edited by Spock on Wed Apr 29, 2009 12:19 am, edited 1 time in total.
And the log, notice the "resignations disabled" bit at the beginning, yet it resigned, admittedly very late though, note "black resigns" at the end:
Unless I'm missing something extremely obvious and am being stupid, Crafty did resign despite receiving and acknowledging the command not to. And hopefully it is the right log file...
That is a different animal. Crafty has a normal "resignation" facility that looks at the search scores over time. But in this case, once an opponent finds a fourced mate, and the mate distance is steadily reduced, it will resign a couple of moves before getting mated, to be more human-like. Whether this is a good idea is debatable, but this has been in the code for 15 years now, at the request of humans that played it.
I don't see a problem resigning 2-3 moves before checkmate is played, it won't resign after the normal 5 moves in a row with the score < -9.0, which is the default action without resign=0.
bob wrote:
I don't see a problem resigning 2-3 moves before checkmate is played, it won't resign after the normal 5 moves in a row with the score < -9.0, which is the default action without resign=0.
Agreed, it isn't a problem in the slightest. It just differs from what you said earlier
"it will never resign and will play the game out to the bitter end"
so I thought I would point it out in case it was a bug and you weren't aware of it.
bob wrote:
I don't see a problem resigning 2-3 moves before checkmate is played, it won't resign after the normal 5 moves in a row with the score < -9.0, which is the default action without resign=0.
Agreed, it isn't a problem in the slightest. It just differs from what you said earlier
"it will never resign and will play the game out to the bitter end"
so I thought I would point it out in case it was a bug and you weren't aware of it.
I had not considered that, to be honest. Resigning in Crafty is primarily related to scores returned from the search, the resign threshold, and the number of searches required with a score <= resign threshold before Crafty will resign. Some resign way too soon. Thanks to EGTBs I added the extra resign feature as I have seen Crafty see a mate against itself, such as in a KQKR or KRBKR or whatever, but the opponent didn't know how to play the ending, and didn't have EGTBs. So Crafty notices that the mate score is not steadily dropping, and will not resign. But if the mate score drops steadily, down to a mate in 2 I believe, it will resign at that point as it figures any program or human will see that.
In the previous discussion, I was not considering resigning when getting mated to be the issue being discussed. You have _definitely_ lost by the time you get to a mate-in-2, where being a queen down is not a certain loss. I've seen several over the years where a +9 score turned into a draw. And in rare cases even worse, a loss.
bob wrote:
In the previous discussion, I was not considering resigning when getting mated to be the issue being discussed. You have _definitely_ lost by the time you get to a mate-in-2
Yes, I'm absolutely fine with this, I just needed clarification that it wasn't me doing something wrong