Author: Dann Corbit
Date: 23:20:04 07/22/02
Go up one level in this thread
Ultra-simplified example of what I am thinking...
// Construct a list of legal moves, ordered by goodness approximation...
CurrentPosition.MakeMoveList();
for (i = 0; i < CurrentPosition.GetLegalMoveCount(); i++)
{
CurrentPosition.MakeMove(i);
score = CurrentPosition.Evaluate();
CurrentPosition.UnMakeMove(i);
/* etc. ... */
}
Or whatever. I don't see much value in making decisions about what is moving
except in the move ordering and evalutation phases. And in those cases, I will
be using piece lists {by type} instead of branches anyway. A bitboard for a
type/color combination can easily be used as a piece list, for instance.
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.