From 53ff6d630627c066757bb7c83281ad5281b19091 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 14 Feb 2018 16:56:49 +0000 Subject: Improve solution printing --- src/main/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/main.cpp b/src/main/main.cpp index 78a3551..975e6c8 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -2,6 +2,8 @@ #include #include +#include + #include "input-output/input/command_line_helper.h" #include "input-output/input/json-parsing/json_helper.h" #include "input-output/input/json-parsing/rules_parser.h" @@ -92,10 +94,12 @@ void solve_input_files(const vector input_files, const sol_rules& rules) void solve_game(const game_state& gs) { solver solv(gs); bool solution = solv.run(); + ProfilerStop(); if (solution) { solv.print_solution(); } else { - cout << "Deal:\n" << gs << "\nNo Possible Solution\n"; + cout << "Deal:\n" << gs << "\nNo Possible Solution\nStates Searched: " + << solv.get_states_searched() << "\n"; } } -- cgit v1.2.1