diff options
| author | thecharlesblake | 2018-01-18 13:57:26 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-18 13:57:26 +0000 |
| commit | 4fb1b0c11109f9acdf663d01941a7c397ad43881 (patch) | |
| tree | 91ca08d196fc53e497120d56f4ef5bf9348e2340 /src | |
| parent | Update solver to use new cache (diff) | |
| download | metasol-4fb1b0c11109f9acdf663d01941a7c397ad43881.tar.gz metasol-4fb1b0c11109f9acdf663d01941a7c397ad43881.zip | |
Shift around way rules are passed in main
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index ac81a19..78a3551 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -18,7 +18,7 @@ namespace po = boost::program_options; const optional<sol_rules> gen_rules(command_line_helper&); void solve_random_game(int, const sol_rules&); void solve_input_files(vector<string>, const sol_rules&); -void solve_game(const game_state&, const sol_rules&); +void solve_game(const game_state&); int main(int argc, const char* argv[]) { @@ -66,7 +66,7 @@ const optional<sol_rules> gen_rules(command_line_helper& clh) { void solve_random_game(int seed, const sol_rules& rules) { LOG_INFO ("Attempting to solve with seed: " << seed << "..."); game_state gs(rules, seed); - solve_game(gs, rules); + solve_game(gs); } void solve_input_files(const vector<string> input_files, const sol_rules& rules) { @@ -79,7 +79,7 @@ void solve_input_files(const vector<string> input_files, const sol_rules& rules) game_state gs(rules, in_doc); LOG_INFO ("Attempting to solve " << input_file << "..."); - solve_game(gs, rules); + solve_game(gs); } catch (const runtime_error& error) { string errmsg = "Error parsing deal file: "; @@ -89,8 +89,8 @@ void solve_input_files(const vector<string> input_files, const sol_rules& rules) } } -void solve_game(const game_state& gs, const sol_rules& rules) { - solver solv(gs, rules); +void solve_game(const game_state& gs) { + solver solv(gs); bool solution = solv.run(); if (solution) { |
