From 67f38c0d10e8d864cb812429f1e09e12bd3dc3fa Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Tue, 14 Nov 2017 01:53:12 +0000 Subject: Add logic for reading preset sols and file json --- src/main/game/game_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/game/game_state.cpp') 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"]; -- cgit v1.2.1