[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ScoreDev function
From: |
Simon Waters |
Subject: |
Re: ScoreDev function |
Date: |
Mon, 03 Feb 2003 17:11:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tim Bedding wrote:
> I have a question about the eval.c file.
>
> In ScoreDev, I see:
> /* If we are castled or beyond the 10th move,
> no more ScoreDev */
> if (board.castled[side] || GameCnt/2+1 >= 20)
>
>
> Why is it "/2"?
Well spotted, it is applied to move 20 not move 10.
It predates CVS on the code, but I'm pretty sure I recall this
one being because development is rarely completed by move 10,
and GNU Chess had an evil habit of not castling, if it had not
done it by move 10.
I will correct the comment, and put the units into "ply" to
avoid unneeded calculations in Evaluate.
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+PqK/GFXfHI9FVgYRAu9QAJ9MxkAXBT4Wroo5rCxzAFQATQH4FgCgiUIe
PG/76+5EXaFuQ11FsJmOFm4=
=zzn1
-----END PGP SIGNATURE-----