diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 23:50:04 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 23:50:04 +0100 |
commit | 73e1fc55276661d2cb290876135255e3b534a204 (patch) | |
tree | 631ae592395a261bead46e58cf0cba415788e745 | |
parent | 5536436532612209a6cdd919516d14769fc51afa (diff) |
Show bag in board printouts
-rw-r--r-- | board.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |