Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty question

Author: Robert Hyatt

Date: 08:56:06 04/01/04

Go up one level in this thread


On April 01, 2004 at 06:23:02, Jarkko Pesonen wrote:

>What does this mean, in int EvaluateDevelopmentB(TREE * RESTRICT tree, int ply)
>there is:
>
>if (BlackCastle(ply) < 0)
>
>When does the above "if" go negative?
>I thought that valid values are 0,1,2 and 3.
>
>Thanks
>
>Jarkko


Not quite.

negative values indicate that somewhere in the current path being searched, that
side castled when it lost castling rights. That is as opposed to moving the king
or rook so that no castling is possible.  This is used to penalize moves that
give up the right to castle without actually castling, when appropriate...




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.