From a98f052c0de54c5eccfd3a2eb964f3fa0c8f9243 Mon Sep 17 00:00:00 2001 From: Charlie Blake Date: Thu, 9 Aug 2018 19:57:27 +0100 Subject: Flushes output before and after results --- src/main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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 streamliner_solution = run_again @@ -163,6 +164,7 @@ void solve_game(const sol_rules& rules, command_line_helper& clh, optional } cout << s.second; } + cout.flush(); } pair solve_game(const sol_rules& rules, uint64_t timeout, uint64_t cache_capacity, -- cgit v1.2.1