About line 500 in iterate.c there is code to stop searching if a mate is found and we have searched deep enough to know there is no shorter mate.
Is there a reason there is no similar code to stop searching if the side on move cannot avoid mate? It would not matter much for game play, but could save time when annotating games.
crafty code question
Moderator: Ras
-
bob
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: crafty code question
Just never thought about adding it... It should not be that hard I don't guess...jwes wrote:About line 500 in iterate.c there is code to stop searching if a mate is found and we have searched deep enough to know there is no shorter mate.
Is there a reason there is no similar code to stop searching if the side on move cannot avoid mate? It would not matter much for game play, but could save time when annotating games.