X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=dd962a39acd391b30de7e570a5ed76ff52bc102b;hb=b5529b539614b61fa62d9f6cc374f335e7103024;hp=95697fadc863b342d4300d8ef880a7c6863c45b6;hpb=faf7933d96193d30d052f2e75a0271c4309d965b;p=xboard.git diff --git a/backend.c b/backend.c index 95697fa..dd962a3 100644 --- a/backend.c +++ b/backend.c @@ -8705,7 +8705,7 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h } /* [AS] Adjudicate game if needed (note: remember that forwardMostMove now points past the last move) */ - if( gameMode == TwoMachinesPlay && adjudicateLossThreshold != 0 && forwardMostMove >= adjudicateLossPlies ) { + if( gameMode == TwoMachinesPlay && appData.adjudicateLossThreshold != 0 && forwardMostMove >= adjudicateLossPlies ) { int count = 0; while( count < adjudicateLossPlies ) { @@ -8714,8 +8714,8 @@ FakeBookMove: // [HGM] book: we jump here to simulate machine moves after book h if( count & 1 ) { score = -score; /* Flip score for winning side */ } - - if( score > adjudicateLossThreshold ) { +printf("score=%d count=%d\n",score,count); + if( score > appData.adjudicateLossThreshold ) { break; }