X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fbots%2Fmamer%2FTourneyPlayers.cc;h=08e119769dd38ec9b8c1ecf448c27a7397850b05;hp=2d9ea538c0cbea3095ee1c8d1d1d4af4563bdf69;hb=2090edea3ec8c89745b568f7ef61d4c332dd29a8;hpb=e0c6e5ba79b1df3450fda89f9e7beacdc62103d1 diff --git a/lasker-2.2.3/bots/mamer/TourneyPlayers.cc b/lasker-2.2.3/bots/mamer/TourneyPlayers.cc index 2d9ea53..08e1197 100644 --- a/lasker-2.2.3/bots/mamer/TourneyPlayers.cc +++ b/lasker-2.2.3/bots/mamer/TourneyPlayers.cc @@ -180,6 +180,7 @@ void TourneyPlayers::ChangeColorDue(int value) { //- AddWhite --------------------------------- void TourneyPlayers::AddWhite(void) { consecutiveWhites++; + totalWhites++; // [HGM] this variable did not seem to get updated anywhere ChangeColorDue(0); ClearBlacks(); }//- end AddWhite @@ -187,6 +188,7 @@ void TourneyPlayers::AddWhite(void) { //- AddBlack --------------------------------- void TourneyPlayers::AddBlack(void) { consecutiveBlacks++; + totalBlacks++; // [HGM] this variable did not seem to get updated anywhere ChangeColorDue(1); ClearWhites(); }//- end AddBlack @@ -201,6 +203,16 @@ void TourneyPlayers::ClearBlacks(void) { consecutiveBlacks = 0; }//- end ClearBlacks +//- ClearTotalWhites --------------------------------- +void TourneyPlayers::ClearTotalWhites(void) { + totalWhites = 0; +}//- end ClearTotalWhites + +//- ClearTotalBlacks --------------------------------- +void TourneyPlayers::ClearTotalBlacks(void) { + totalBlacks = 0; +}//- end ClearTotalBlacks + //- GetTotalWhites --------------------------------- int TourneyPlayers::GetTotalWhites(void) { return totalWhites;