From 24f3259ce1a69c28c67f8e29eb32a18e43ab7f8c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 28 Nov 2009 13:27:43 -0800 Subject: [PATCH] score sign in analysis mode this does not alter any of the current behavior with compliant engines, but does extend the correction for non-compliant score reporting under control of the -first(second)ScoreIsAbs option to cases where the engine is analyzing or playing on an ICS. --- backend.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 9a95466..c2dea7c 100755 --- a/backend.c +++ b/backend.c @@ -6924,7 +6924,12 @@ if(appData.debugMode) fprintf(debugFP, "nodes = %d, %lld\n", (int) programStats. /* [AS] Negate score if machine is playing black and reporting absolute scores */ if( cps->scoreIsAbsolute && - ((gameMode == MachinePlaysBlack) || (gameMode == TwoMachinesPlay && cps->twoMachinesColor[0] == 'b')) ) + ( gameMode == MachinePlaysBlack || + gameMode == TwoMachinesPlay && cps->twoMachinesColor[0] == 'b' || + gameMode == IcsPlayingBlack || // [HGM] also add other situations where engine should report black POV + (gameMode == AnalyzeMode || gameMode == AnalyzeFile || gameMode == IcsObserving && appData.icsEngineAnalyze) && + !WhiteOnMove(currentMove) + ) ) { curscore = -curscore; } -- 1.7.0.4