diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/game/global_cache.cpp | 4 | ||||
| -rw-r--r-- | src/main/game/search-state/game_state.legal_moves.cpp | 2 | ||||
| -rw-r--r-- | src/main/input-output/input/sol_preset_types.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main/game/global_cache.cpp b/src/main/game/global_cache.cpp index f688c33..2cec338 100644 --- a/src/main/game/global_cache.cpp +++ b/src/main/game/global_cache.cpp @@ -89,10 +89,10 @@ void cached_game_state::add_card(card c, const game_state& gs) { target.emplace_back(c); break; case pol::RED_BLACK: - target.emplace_back(c.get_colour(), c.get_rank()); + target.emplace_back(c.get_colour(), c.get_rank(), c.is_face_down()); break; default: - target.emplace_back(0, c.get_rank()); + target.emplace_back(0, c.get_rank(), c.is_face_down()); break; } } else { diff --git a/src/main/game/search-state/game_state.legal_moves.cpp b/src/main/game/search-state/game_state.legal_moves.cpp index be1d717..7a1f124 100644 --- a/src/main/game/search-state/game_state.legal_moves.cpp +++ b/src/main/game/search-state/game_state.legal_moves.cpp @@ -52,7 +52,7 @@ vector<move> game_state::get_legal_moves(move parent_move) { } if (empty_cell != 255) { for (auto t : tableau_piles) { - if (piles[t].empty() || parent_move.to == t || !is_valid_tableau_move(t, empty_cell)) continue; + if (piles[t].empty() || parent_move.to == t) continue; else moves.emplace_back(move::mtype::regular, t, empty_cell); } diff --git a/src/main/input-output/input/sol_preset_types.cpp b/src/main/input-output/input/sol_preset_types.cpp index 9564bcc..363a801 100644 --- a/src/main/input-output/input/sol_preset_types.cpp +++ b/src/main/input-output/input/sol_preset_types.cpp @@ -413,7 +413,7 @@ map<string, string> sol_preset_types::mp = { }, "stock size": 24, "stock deal count": 1, - "stock redeal": false + "stock redeal": true } )" |
