diff options
Diffstat (limited to 'src/main/game')
| -rw-r--r-- | src/main/game/game_state.legal_moves.cpp | 7 | ||||
| -rw-r--r-- | src/main/game/sol_rules.h | 5 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/main/game/game_state.legal_moves.cpp b/src/main/game/game_state.legal_moves.cpp index cbc052a..5bc7762 100644 --- a/src/main/game/game_state.legal_moves.cpp +++ b/src/main/game/game_state.legal_moves.cpp @@ -6,7 +6,6 @@ using namespace std; -typedef sol_rules::build_order ord; typedef sol_rules::build_policy pol; typedef sol_rules::spaces_policy s_pol; typedef sol_rules::stock_deal_type sdt; @@ -112,11 +111,7 @@ bool game_state::is_valid_tableau_move(const pile_ref rem_ref, } // Checks rank - else if (rules.build_ord == ord::DESCENDING - && rem_c.get_rank() + 1 != add_c.get_rank()) { - return false; - } else if (rules.build_ord == ord::ASCENDING - && rem_c.get_rank() - 1 != add_c.get_rank()) { + else if (rem_c.get_rank() + 1 != add_c.get_rank()) { return false; } else { return true; diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h index 87266ee..812e82c 100644 --- a/src/main/game/sol_rules.h +++ b/src/main/game/sol_rules.h @@ -13,10 +13,6 @@ struct sol_rules { // Tableau policies - enum class build_order { - DESCENDING, - ASCENDING - }; enum class build_policy { NO_BUILD, SAME_SUIT, @@ -33,7 +29,6 @@ struct sol_rules { }; uint8_t tableau_pile_count; - build_order build_ord; build_policy build_pol; spaces_policy spaces_pol; bool move_built_group; |
