diff options
| author | Charlie Blake | 2018-08-08 17:16:36 +0100 |
|---|---|---|
| committer | GitHub | 2018-08-08 17:16:36 +0100 |
| commit | a1c593df9954f2eeb2cc28edba3e89b2a657cb96 (patch) | |
| tree | a6a876c7a11fd47673af1dfa56335f2763403dde /src/main/main.cpp | |
| parent | Merge pull request #82 from thecharlesblake/two-deck-testing (diff) | |
| parent | Print seed ofter runing solver (diff) | |
| download | metasol-a1c593df9954f2eeb2cc28edba3e89b2a657cb96.tar.gz metasol-a1c593df9954f2eeb2cc28edba3e89b2a657cb96.zip | |
Merge pull request #83 from thecharlesblake/fix-write-out-bugs
Fix write out bugs
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index 073cabd..ff03669 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -97,9 +97,7 @@ const optional<sol_rules> gen_rules(command_line_helper& clh) { } void solve_random_game(int seed, const sol_rules& rules, command_line_helper& clh) { - if (clh.get_classify()) - cout << seed; - else + if (!clh.get_classify()) LOG_INFO ("Attempting to solve with seed: " << seed << "..."); solve_game(rules, clh, seed, none); } @@ -145,6 +143,7 @@ void solve_game(const sol_rules& rules, command_line_helper& clh, optional<int> : optional<solve_sol>(); if (clh.get_classify()) { + if (seed) cout << *seed; solver::print_result_csv(solution.second); if (smart) { if (run_again) { |
