From 682e7f4a30f4ad3bb3541ee63a4c08716389ec55 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Fri, 2 Feb 2018 19:28:59 +0000 Subject: Add flag for toggling pile order symmetry & both --- src/main/game/game_state.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/game/game_state.cpp') diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp index 097c744..a6186ff 100644 --- a/src/main/game/game_state.cpp +++ b/src/main/game/game_state.cpp @@ -277,13 +277,17 @@ void game_state::undo_move(const move m) { // reorders the pile refs so that the largest pile is first void game_state::place_card(pile_ref pr, card c) { piles[pr].place(c); +#ifndef NO_PILE_SYMMETRY eval_pile_order(pr, true); +#endif } // Same as above but for taking cards card game_state::take_card(pile_ref pr) { card c = piles[pr].take(); +#ifndef NO_PILE_SYMMETRY eval_pile_order(pr, false); +#endif return c; } -- cgit v1.2.1