From eee78954c43a6ddfc07d1a65a418f82ceb6ef0a6 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Sun, 27 Oct 2013 12:20:09 -0700 Subject: Print final scores at the end of self play --- test/testharness.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test') 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; } -- cgit v1.2.3