- modified gameOver to be protected and defined two new operations to do the same thing (didWin and setLoser)
- removed ACTION_LOGGING_TESTING code - Fixed AIvsAI games multithreaded games - Activated undo when testsuite is enable - Defined an initial player comparison operator - Fixed multi-threaded modification to subtypes - Fixed gameTurn cleanup for gameObserver reuse
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
||||
void handleResults(GameObserver* aGame){
|
||||
mMutex.lock();
|
||||
totalTestGames++;
|
||||
if (aGame->gameOver == aGame->players[0])
|
||||
if (aGame->didWin(aGame->players[1]))
|
||||
testPlayer2Victories++;
|
||||
mMutex.unlock();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user