diff options
| author | Charlie Blake | 2018-08-09 20:00:47 +0100 |
|---|---|---|
| committer | GitHub | 2018-08-09 20:00:47 +0100 |
| commit | b9ed38b7880cb55f2ea850c08d608efd4a2f5833 (patch) | |
| tree | b291edbc7c45a685f7eac8814b88fe1e3d052158 /src/main/main.cpp | |
| parent | Merge pull request #84 from thecharlesblake/spider-face-up (diff) | |
| parent | Flushes output before and after results (diff) | |
| download | metasol-b9ed38b7880cb55f2ea850c08d608efd4a2f5833.tar.gz metasol-b9ed38b7880cb55f2ea850c08d608efd4a2f5833.zip | |
Merge pull request #85 from thecharlesblake/fix-write-out-bugs
Fix write out bugs
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index ff03669..cb63634 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -136,6 +136,7 @@ void solve_game(const sol_rules& rules, command_line_helper& clh, optional<int> solve_sol solution = solve_game(rules, timeout, clh.get_cache_capacity(), str_opt, seed, in_doc); bool run_again = smart && solution.second.sol_type != solver::result::type::SOLVED; + cout.flush(); if (run_again) if (!clh.get_classify()) cout << "Unsolvable using streamliner. Running again...\n"; optional<solve_sol> streamliner_solution = run_again @@ -163,6 +164,7 @@ void solve_game(const sol_rules& rules, command_line_helper& clh, optional<int> } cout << s.second; } + cout.flush(); } pair<solver, solver::result> solve_game(const sol_rules& rules, uint64_t timeout, uint64_t cache_capacity, |
