From: H.G. Muller Date: Sat, 16 Jan 2010 13:26:36 +0000 (+0100) Subject: Fix eval flip on WB color commands X-Git-Tag: 4.8O~1 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=72b198f0b7575ff63748b7c02b1572ed162aef04;p=fairymax.git Fix eval flip on WB color commands The differential eval Q was not flipped when the WB-protocol command black or white did change the side to move. --- diff --git a/fairymax.c b/fairymax.c index 4db818e..e615fd4 100644 --- a/fairymax.c +++ b/fairymax.c @@ -623,12 +623,14 @@ int main(int argc, char **argv) } if (!strcmp(command, "white")) { /* set white to move in current position */ + if(Side == BLACK) Q = -Q; Side = WHITE; Computer = BLACK; continue; } if (!strcmp(command, "black")) { /* set blck to move in current position */ + if(Side == WHITE) Q = -Q; Side = BLACK; Computer = WHITE; continue;