diff options
| author | thecharlesblake | 2017-11-14 01:53:12 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-14 01:53:12 +0000 |
| commit | 67f38c0d10e8d864cb812429f1e09e12bd3dc3fa (patch) | |
| tree | e2d76d46bb435d01760bb01db9e4123f33063a2d /src/main/game/game_state.cpp | |
| parent | Add new valid presets logic to cmd helper (diff) | |
| download | metasol-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.cpp | 2 |
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"]; |
