diff options
| author | thecharlesblake | 2018-09-16 23:19:44 +0100 |
|---|---|---|
| committer | thecharlesblake | 2018-09-16 23:19:44 +0100 |
| commit | 4d0dec6b939a29be133ce3dbca842305870ed807 (patch) | |
| tree | cb00364efed78510be9751aab5038a415a75149a | |
| parent | Add logic for auto-waste-then-stock (diff) | |
| download | metasol-4d0dec6b939a29be133ce3dbca842305870ed807.tar.gz metasol-4d0dec6b939a29be133ce3dbca842305870ed807.zip | |
Change vbar csv to comma and add overall sol col
| -rw-r--r-- | src/main/main.cpp | 4 | ||||
| -rw-r--r-- | src/main/solver/solver.cpp | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index cb63634..808ee78 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -149,9 +149,13 @@ void solve_game(const sol_rules& rules, command_line_helper& clh, optional<int> if (smart) { if (run_again) { solver::print_result_csv(streamliner_solution->second); + cout << ", " << streamliner_solution->second.sol_type; } else { solver::print_null_seed_info(); + cout << ", " << solution.second.sol_type; } + } else { + cout << ", " << solution.second.sol_type; } cout << "\n"; } else { diff --git a/src/main/solver/solver.cpp b/src/main/solver/solver.cpp index 1d0130c..3740a15 100644 --- a/src/main/solver/solver.cpp +++ b/src/main/solver/solver.cpp @@ -253,7 +253,7 @@ void solver::print_header(long t, command_line_helper::streamliner_opt stream_op ", Timed-out" ", Memory Limited, "; if (stream_opt == command_line_helper::streamliner_opt::SMART) { - cout << "| (Streamliner Results:) " + cout << ", (Streamliner Results:) " "Attempted Seed" ", Outcome" ", Time Taken(ms)" @@ -266,7 +266,7 @@ void solver::print_header(long t, command_line_helper::streamliner_opt stream_op ", Final Buckets In Cache" ", Maximum Search Depth" ", Final Search Depth" - "| (Non-Streamliner Results:) "; + ", (Non-Streamliner Results:) "; } cout << "Attempted Seed" ", Outcome" @@ -280,13 +280,13 @@ void solver::print_header(long t, command_line_helper::streamliner_opt stream_op ", Final Buckets In Cache" ", Maximum Search Depth" ", Final Search Depth" - ", Seeds In Progress ..." + ", Overall Result" "\n--- Timeout = " << t << " milliseconds ---\n"; cout << fixed << setprecision(3); } void solver::print_result_csv(solver::result res) { - cout << "| " << res.sol_type + cout << ", " << res.sol_type << ", " << res.time.count() << ", " << res.states_searched << ", " << res.unique_states_searched @@ -300,7 +300,7 @@ void solver::print_result_csv(solver::result res) { } void solver::print_null_seed_info() { - cout << "| , , , , , , , , , , "; + cout << ", , , , , , , , , , , , "; } const vector<solver::node> solver::get_frontier() const { |
