summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/board.cpp b/board.cpp
index fcb82ae..822fddd 100644
--- a/board.cpp
+++ b/board.cpp
@@ -190,6 +190,12 @@ void Board::write(ostream &os) const {
}
os << endl;
}
+
+ os << "Bag:";
+ for (uint8_t clr = 1; clr <= NC; clr++) {
+ os << ' ' << bag.numLeft(clr);
+ }
+ os << " / " << bag.totalLeft() << endl;
}
ostream& operator<<(ostream &os, Stone stone) {