aboutsummaryrefslogtreecommitdiff
path: root/src/main/input-output
diff options
context:
space:
mode:
authorthecharlesblake2018-01-04 15:47:41 +0000
committerthecharlesblake2018-01-04 15:47:41 +0000
commit2ac80451bc8a0d7a6830e1d9274f33138844b386 (patch)
tree0571dcb3a24e174e447bc7c7caf0cecc12931530 /src/main/input-output
parentCreate game state setup for flower garden (diff)
downloadmetasol-2ac80451bc8a0d7a6830e1d9274f33138844b386.tar.gz
metasol-2ac80451bc8a0d7a6830e1d9274f33138844b386.zip

Add state printing for regular reserve

Diffstat (limited to 'src/main/input-output')
-rw-r--r--src/main/input-output/output/state_printer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/input-output/output/state_printer.cpp b/src/main/input-output/output/state_printer.cpp
index 88181de..1828390 100644
--- a/src/main/input-output/output/state_printer.cpp
+++ b/src/main/input-output/output/state_printer.cpp
@@ -19,6 +19,10 @@ ostream& state_printer::print(ostream& stream, const game_state& gs) {
state_printer::print_header(stream, "Tableau Piles");
state_printer::print_piles(stream, gs.tableau_piles, gs);
}
+ if (gs.rules.reserve_size > 0) {
+ state_printer::print_header(stream, "Reserve");
+ state_printer::print_piles(stream, gs.reserve, gs);
+ }
if (gs.rules.stock_size > 0) {
state_printer::print_header(stream, "Stock | Waste");
state_printer::print_piles(stream, {gs.stock, gs.waste}, gs);