diff options
| author | Charlie Blake | 2018-07-12 00:04:09 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-07-12 00:04:09 +0100 |
| commit | f845a2eed1eb5a10977cba36e3c448397a455c68 (patch) | |
| tree | 64ab75568e80890a6b5b66ab0481dd4ea24d1d24 /src/main/input-output/output | |
| parent | Add sequence state printing and fix small bugs (diff) | |
| download | metasol-f845a2eed1eb5a10977cba36e3c448397a455c68.tar.gz metasol-f845a2eed1eb5a10977cba36e3c448397a455c68.zip | |
Gaps / sequence implementation
Diffstat (limited to 'src/main/input-output/output')
| -rw-r--r-- | src/main/input-output/output/state_printer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/input-output/output/state_printer.cpp b/src/main/input-output/output/state_printer.cpp index f673319..e48ed51 100644 --- a/src/main/input-output/output/state_printer.cpp +++ b/src/main/input-output/output/state_printer.cpp @@ -101,7 +101,11 @@ void state_printer::print_sequences(ostream& stream, stream << "\n"; auto& pile = gs.piles[s]; for (auto i = pile.size(); i --> 0 ;) { - print_card(stream, pile[i]); + card c = pile[i]; + if (c == "AS") + stream << "__"; + else + print_card(stream, pile[i]); stream << " "; } stream << "\n"; @@ -153,6 +157,9 @@ void state_printer::print_move(std::ostream& s, const move m) { case move::mtype::stock_to_all_tableau: s << "stock-to-all-tableau"; break; + case move::mtype::sequence: + s << "sequence"; + break; case move::mtype::null: s << "null"; break; |
