diff options
| author | Charlie Blake | 2018-07-04 14:36:36 +0100 |
|---|---|---|
| committer | GitHub | 2018-07-04 14:36:36 +0100 |
| commit | 0edeee6a85e7bf650652e8a07353d46e4de92d13 (patch) | |
| tree | f84aa2ae3c1a2c7e141a306c85932fda2fd91355 /src/main/input-output/input/command_line_helper.h | |
| parent | Merge pull request #73 from thecharlesblake/fix-legal-move-bugs (diff) | |
| parent | Add variants for streamliner cmd line options (diff) | |
| download | metasol-0edeee6a85e7bf650652e8a07353d46e4de92d13.tar.gz metasol-0edeee6a85e7bf650652e8a07353d46e4de92d13.zip | |
Merge pull request #74 from thecharlesblake/sol-streamliner-variants
Sol streamliner variants
Diffstat (limited to 'src/main/input-output/input/command_line_helper.h')
| -rw-r--r-- | src/main/input-output/input/command_line_helper.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/input-output/input/command_line_helper.h b/src/main/input-output/input/command_line_helper.h index c12bb69..862e39f 100644 --- a/src/main/input-output/input/command_line_helper.h +++ b/src/main/input-output/input/command_line_helper.h @@ -6,10 +6,12 @@ #define SOLVITAIRE_COMMAND_LINE_HELPER_H #include <boost/program_options.hpp> +#include "../../game/search-state/game_state.h" class command_line_helper { public: command_line_helper(); + enum class streamliner_opt {NONE, AUTO_FOUNDATIONS, SUIT_SYMMETRY, BOTH, SMART}; bool parse(int argc, const char* argv[]); const std::vector<std::string> get_input_files(); @@ -21,11 +23,13 @@ public: uint get_cores(); bool get_available_game_types(); bool get_benchmark(); - bool get_streamliners(); + streamliner_opt get_streamliners(); + game_state::streamliner_options get_streamliners_game_state(); std::vector<int> get_resume(); uint64_t get_cache_capacity(); std::string get_describe_game_rules(); uint64_t get_timeout(); + static game_state::streamliner_options convert_streamliners(streamliner_opt); private: bool assess_errors(); @@ -35,6 +39,8 @@ private: void print_no_opts_error(); void print_too_many_opts_error(); void print_resume_error(); + void print_streamliner_error(const std::string&); + void print_streamliner_solvability_error(); boost::program_options::options_description cmdline_options; boost::program_options::options_description main_options; @@ -52,7 +58,7 @@ private: uint cores; bool available_game_types; bool benchmark; - bool streamliners; + streamliner_opt streamliners; uint64_t cache_capacity; uint64_t timeout; }; |
