aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.cpp
diff options
context:
space:
mode:
authorCharlie Blake2017-11-14 02:24:07 +0000
committerGitHub2017-11-14 02:24:07 +0000
commit995ef52047458e1d59c396df7148ae55b7b93a3c (patch)
treee2d76d46bb435d01760bb01db9e4123f33063a2d /src/main/game/game_state.cpp
parentMerge pull request #20 from thecharlesblake/initial-code-cleanup (diff)
parentAdd logic for reading preset sols and file json (diff)
downloadmetasol-995ef52047458e1d59c396df7148ae55b7b93a3c.tar.gz
metasol-995ef52047458e1d59c396df7148ae55b7b93a3c.zip

Merge pull request #21 from thecharlesblake/json-rules

Json rules

Diffstat (limited to 'src/main/game/game_state.cpp')
-rw-r--r--src/main/game/game_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp
index 3336020..3e8d129 100644
--- a/src/main/game/game_state.cpp
+++ b/src/main/game/game_state.cpp
@@ -24,7 +24,7 @@ game_state::game_state(const Document& doc)
stock(true, ord::NO_BUILD, pol::ANY_SUIT, false),
waste(true, ord::NO_BUILD, pol::ANY_SUIT, false),
hole(false, ord::BOTH, pol::ANY_SUIT, true, rules.max_rank),
- rules("simple-black-hole") {
+ rules(sol_rules::from_preset("simple-black-hole")) {
// Construct tableau piles
assert(doc.HasMember("tableau piles"));
const Value& json_tab_piles = doc["tableau piles"];