From 73e1fc55276661d2cb290876135255e3b534a204 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 13 Feb 2019 23:50:04 +0100 Subject: Show bag in board printouts --- board.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- cgit v1.2.3-54-g00ecf