aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.legal_moves.cpp
diff options
context:
space:
mode:
authorCharlie Blake2018-01-18 23:57:52 +0000
committerGitHub2018-01-18 23:57:52 +0000
commitbcaff64bdeaab93ff0d40dfd039b4b43ff689b1c (patch)
tree7882812349716607773458b1c830579de802793f /src/main/game/game_state.legal_moves.cpp
parentMerge pull request #29 from thecharlesblake/refactor-improve-debug (diff)
parentRemoves unnecessary assert statement bug (diff)
downloadmetasol-bcaff64bdeaab93ff0d40dfd039b4b43ff689b1c.tar.gz
metasol-bcaff64bdeaab93ff0d40dfd039b4b43ff689b1c.zip

Merge pull request #30 from thecharlesblake/symmetrical-hash

Symmetrical hash

Diffstat (limited to 'src/main/game/game_state.legal_moves.cpp')
-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;
}