diff options
author | Matt Liberty <matt.liberty@gmail.com> | 2013-10-27 12:20:09 -0700 |
---|---|---|
committer | Matt Liberty <matt.liberty@gmail.com> | 2013-10-27 12:20:09 -0700 |
commit | eee78954c43a6ddfc07d1a65a418f82ceb6ef0a6 (patch) | |
tree | 325925006e11754f7db98d778ecc9e26e05fc21e /test | |
parent | e9a7af6c2b608663b32630a2d58a5cfa540efafa (diff) |
Print final scores at the end of self play
Diffstat (limited to 'test')
-rw-r--r-- | test/testharness.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/testharness.cpp b/test/testharness.cpp index a9b9814..64847d1 100644 --- a/test/testharness.cpp +++ b/test/testharness.cpp @@ -695,7 +695,16 @@ void TestHarness::selfPlayGame(unsigned int gameNumber, bool reports, bool playa { if (game.currentPosition().gameOver()) { - if (!m_quiet) { UVcout << "GAME OVER" << endl; } + if (!m_quiet) { + UVcout << "GAME OVER "; + GamePosition &pos = game.currentPosition(); + const PlayerList players = pos.endgameAdjustedScores(); + for (PlayerList::const_iterator it = players.begin(); + it != players.end(); ++it) { + UVcout << it->name() << " : " << it->score() << " "; + } + UVcout << endl; + } break; } |