Author: Dan Honeycutt
Date: 18:07:03 06/16/04
Go up one level in this thread
On June 16, 2004 at 10:54:18, Jaime Benito de Valle Ruiz wrote:
>I'm re-writting the eval code to give consider different weights at different
>stages of the game... which is something I should have tried earlier. I've even
>considered having a late-midgame stage.
>
>I've tried a few methods for differenciating these stages of the game, all of
>them based on counting pieces on the board, but I suspect it has more little to
>do with the number of pawns, and it might not be so simple.
>
>Can anyone give me some suggestions on this?
>Thanks,
>
> Jaime
I use stage:
1=open
2=mid
3=end
4=late end (check specific cases/insufficient material etc)
pieces = NBRQ, men=pieces + P & K
int Stage(void) {
if ((w_castle | b_castle) && (total_pieces >= 12) ||
(total_pieces >= 14)) return (1);
if ((w_queen | b_queen) && (total_pieces >= 6) ||
(total_pieces >= 10)) return (2);
if (total_men > 5) return (3);
return (4);
}
Dan H.
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.