Author: Tony Werten
Date: 07:40:04 05/04/05
Go up one level in this thread
On May 04, 2005 at 09:16:28, Uri Blass wrote:
>On May 03, 2005 at 14:12:07, Tony Werten wrote:
>
>>On May 03, 2005 at 13:51:35, Kevin K wrote:
>>
>>> quiesce(int alpha, int beta) {
>>> int score = eval();
>>
>> if (in_check) score=-MATE;
>
>This must be wrong.
>
>not every check is mate.
>
>You probably mean
>if the last move is illegal score=-MATE;
Yes, the original sourcecode was wrong I see now.
It should be: bestscore=-MATE;
and a line should be added: if (score>bestscore) bestscore=score;
and the last line should read: return(bestscore);
and not return(score) since that would be the value of the last move.
Tony
>
>Uri
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.