Author: Alvaro Jose Povoa Cardoso
Date: 13:29:07 03/03/03
Hi,
If I want to know if at the current ply/node we are winning with a mate score,
would the following code be the most compact way to code that or can we do it
with less code?
I would like to do it with less branches/code if possible.
if (abs(alpha) > MATE-300) {
if (wtm) {
if (alpha > 0) {
//if we get here the current player to move (white) is winning with a
mate score
}
else {
if (alpha < 0) {
//if we get here the current player to move (black) is winning with a
mate score
}
}
}
Best regards,
Alvaro Cardoso
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.