summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-02-13 23:50:04 +0100
committerTom Smeding <tom.smeding@gmail.com>2019-02-13 23:50:04 +0100
commit73e1fc55276661d2cb290876135255e3b534a204 (patch)
tree631ae592395a261bead46e58cf0cba415788e745
parent5536436532612209a6cdd919516d14769fc51afa (diff)
Show bag in board printouts
-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) {