aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecharlesblake2018-01-18 13:50:27 +0000
committerthecharlesblake2018-01-18 13:50:27 +0000
commitbc76e3cc4687b41ada8f3bcff76611461bf63ef4 (patch)
tree7b76c29d7fa8e4ed6494073d44cb089e66a7c964
parentAdd vector and initializer lst constructor to pile (diff)
downloadmetasol-bc76e3cc4687b41ada8f3bcff76611461bf63ef4.tar.gz
metasol-bc76e3cc4687b41ada8f3bcff76611461bf63ef4.zip

Update legal moves code to use new suit rep.

-rw-r--r--src/main/game/game_state.legal_moves.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/game/game_state.legal_moves.cpp b/src/main/game/game_state.legal_moves.cpp
index 7dfc87c..3043587 100644
--- a/src/main/game/game_state.legal_moves.cpp
+++ b/src/main/game/game_state.legal_moves.cpp
@@ -128,7 +128,7 @@ bool game_state::is_valid_foundations_move(const pile_ref rem_ref,
// Checks violation of same suit policy
uint8_t suit_idx = (add_ref - foundations.front()) % uint8_t(4);
- if (rem_c.get_suit() != card::to_suit(suit_idx)) {
+ if (rem_c.get_suit() != suit_idx) {
return false;
}