From 72b198f0b7575ff63748b7c02b1572ed162aef04 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 16 Jan 2010 14:26:36 +0100 Subject: [PATCH] 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. --- fairymax.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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; -- 1.7.0.4