diff options
| author | thecharlesblake | 2018-01-10 11:57:15 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-10 11:57:15 +0000 |
| commit | ec8af3b3db1eff0da2fdb9675f3d8710b86466a8 (patch) | |
| tree | fa9559a59087b7768a29c0fa39771143cb9d291a /src/main/input-output/input/json-parsing/rules_parser.cpp | |
| parent | Merge pull request #28 from thecharlesblake/all-canonical-games (diff) | |
| download | metasol-ec8af3b3db1eff0da2fdb9675f3d8710b86466a8.tar.gz metasol-ec8af3b3db1eff0da2fdb9675f3d8710b86466a8.zip | |
Remove build order from sol rules
Diffstat (limited to 'src/main/input-output/input/json-parsing/rules_parser.cpp')
| -rw-r--r-- | src/main/input-output/input/json-parsing/rules_parser.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main/input-output/input/json-parsing/rules_parser.cpp b/src/main/input-output/input/json-parsing/rules_parser.cpp index 948eb39..1893ff7 100644 --- a/src/main/input-output/input/json-parsing/rules_parser.cpp +++ b/src/main/input-output/input/json-parsing/rules_parser.cpp @@ -16,7 +16,6 @@ using namespace rapidjson; // Static // //////////// -typedef sol_rules::build_order ord; typedef sol_rules::build_policy pol; typedef sol_rules::spaces_policy s_pol; typedef sol_rules::stock_deal_type sdt; @@ -72,23 +71,6 @@ void rules_parser::modify_sol_rules(sol_rules& sr, Document& d) { } } - if (d["tableau piles"].HasMember("build order")) { - if (d["tableau piles"]["build order"].IsString()) { - string bo_str = d["tableau piles"]["build order"].GetString(); - - if (bo_str == "ascending") { - sr.build_ord = ord::ASCENDING; - } else if (bo_str == "descending") { - sr.build_ord = ord::DESCENDING; - } else { - json_helper::json_parse_err("[tableau piles][build order] is invalid"); - } - - } else { - json_helper::json_parse_err("[tableau piles][build order] must be an string"); - } - } - if (d["tableau piles"].HasMember("build policy")) { if (d["tableau piles"]["build policy"].IsString()) { string bp_str = d["tableau piles"]["build policy"].GetString(); |
