diff options
| author | thecharlesblake | 2018-01-04 15:47:41 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-04 15:47:41 +0000 |
| commit | 2ac80451bc8a0d7a6830e1d9274f33138844b386 (patch) | |
| tree | 0571dcb3a24e174e447bc7c7caf0cecc12931530 | |
| parent | Create game state setup for flower garden (diff) | |
| download | metasol-2ac80451bc8a0d7a6830e1d9274f33138844b386.tar.gz metasol-2ac80451bc8a0d7a6830e1d9274f33138844b386.zip | |
Add state printing for regular reserve
| -rw-r--r-- | src/main/input-output/output/state_printer.cpp | 4 |
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); |
