From 013db5c0f2e6fb21c04fb415ed887b13769d1684 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Tue, 12 Aug 2014 02:35:18 -0500 Subject: Make the textual reporter sort the leave. Sometimes, the leave was printed in a partially unsorted fashion. I suspect this has to do with using opponents with no racks. Whatever the cause, sorting it is trivial. --- reporter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/reporter.cpp b/reporter.cpp index 62fce18..c471c9d 100644 --- a/reporter.cpp +++ b/reporter.cpp @@ -200,6 +200,7 @@ void Reporter::reportPosition(const GamePosition &position, ComputerPlayer *comp int j = 0; UVString wrappedTiles; LongLetterString unseenTiles = position.unseenBag().tiles(); + std::sort(unseenTiles.begin(), unseenTiles.end()); for (Quackle::LongLetterString::const_iterator it = unseenTiles.begin(); it != unseenTiles.end(); ++it, ++j) { if (j >= 44) -- cgit v1.2.3