From 77a7aeba7854d15b140cc6dc3c69b15ed5f3b936 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 3 Jan 2018 12:30:14 +0000 Subject: Major refactor, putting pile logic into game_state Much of the logic that was in the pile class was beginning to seem out of place. A lot of the rules have fairly arbitrary interactons *between* piles, which weren't best represented in the pile classes themselves, which were getting unweildy and inefficient. Hence, much of this logic has been moved to the game state class. --- src/main/input-output/deal_parser.h | 1 - src/main/input-output/sol_preset_types.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/input-output') diff --git a/src/main/input-output/deal_parser.h b/src/main/input-output/deal_parser.h index 255116b..76a723a 100644 --- a/src/main/input-output/deal_parser.h +++ b/src/main/input-output/deal_parser.h @@ -11,7 +11,6 @@ #include #include -#include "../game/card.h" #include "../game/sol_rules.h" class game_state; diff --git a/src/main/input-output/sol_preset_types.cpp b/src/main/input-output/sol_preset_types.cpp index 2ba14d9..3c9d295 100644 --- a/src/main/input-output/sol_preset_types.cpp +++ b/src/main/input-output/sol_preset_types.cpp @@ -122,7 +122,7 @@ std::map sol_preset_types::mp = { { "tableau piles": { "count": 17, - "build order": "no-build" + "build policy": "no-build" }, "hole": true, "foundations": false @@ -137,7 +137,7 @@ std::map sol_preset_types::mp = { { "tableau piles": { "count": 4, - "build order": "no-build" + "build policy": "no-build" }, "max rank": 5, "hole": true, -- cgit v1.2.1