// RootMove::operator<() is the comparison function used when
// A move m1 is considered to be better
// than a move m2 if it has a higher score, [b]or if the moves
// have equal score but m1 has the higher node count.[/b]
bool operator<(const RootMove& m) const {
return score != m.score ? score < m.score : theirBeta <= m.theirBeta;
}
afzzq wrote:in "search.cpp" the comments for RootMove::operator< do not match the source:
Why ?
Well, the comments say that the node count is used to break ties when the scores are equal, but the code says that the theirBeta value is used to break ties. Are these the same?
afzzq wrote:in "search.cpp" the comments for RootMove::operator< do not match the source:
Why ?
Well, the comments say that the node count is used to break ties when the scores are equal, but the code says that the theirBeta value is used to break ties. Are these the same?
Ah, ok. Now I see, yes it was node count, but now is cut-off count.