Author: Rick Bischoff
Date: 09:57:06 09/14/04
Go up one level in this thread
search(depth, alpha, beta)
if we are in check and only have one legal reply:
++depth
for each move M
if M is a checking move extension = 1
else extension = 0
normal stuff here
endfor
>>In crafty, I extend on the ply where I check the opponent, and then the
>>one-legal-reply extension is done on the next ply where I notice I have only one
>>legal move, ie one extension per ply...
>
>Thank you all.
>I prefer your "Crafty" choice but i don't understand at all, i must miss
>something, maybe in translation :-) Here is what i understood, is that right ?
>
>search(depth,alpha,beta)
> {
> int extend=0;
> ...
> if(InCheck=incheck(side)) extend+=ONEPLY;
>
> // limit extensions
> if(extend>ONEPLY) extend=ONEPLY;
>
> for(each move)
> {
> domove();
> if(this_is_the_only_one) extend+=ONEPLY;
> ...
> }
> ...
> }
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.