aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.cpp
diff options
context:
space:
mode:
authorthecharlesblake2017-11-14 01:53:12 +0000
committerthecharlesblake2017-11-14 01:53:12 +0000
commit67f38c0d10e8d864cb812429f1e09e12bd3dc3fa (patch)
treee2d76d46bb435d01760bb01db9e4123f33063a2d /src/main/game/game_state.cpp
parentAdd new valid presets logic to cmd helper (diff)
downloadmetasol-67f38c0d10e8d864cb812429f1e09e12bd3dc3fa.tar.gz
metasol-67f38c0d10e8d864cb812429f1e09e12bd3dc3fa.zip

Add logic for reading preset sols and file json

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"];