Author: Jeff GAZET
Date: 07:35:37 09/14/04
Good morning,
in the main search, before the moves loop, i have the basic "In Check" extension
(which add one ply).
If there is only one legal move and the king is in check, this is interesting to
extend one more ply. But i read that this is a bad idea to extend more than one
ply, so i limit to one ply max.
Then, "Single-response extension" is useless in this case :
search(depth,alpha,beta)
{
int extend=0;
...
if(InCheck=incheck(side)) extend+=ONEPLY;
if(InCheck && side_has_only_one_legal_move) extend+=ONEPLY;
// limit extensions
if(extend>ONEPLY) extend=ONEPLY;
for(each move) {...}
...
}
How is it possible to use both "Incheck" and "Single-response" extensions ?
Thanks.
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.