crafty code question

Discussion of chess software programming and technical issues.

Moderator: Ras

jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

crafty code question

Post by jwes »

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.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: crafty code question

Post by bob »

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.
Just never thought about adding it... It should not be that hard I don't guess...