diff options
| author | Charlie Blake | 2018-02-02 13:04:33 +0000 |
|---|---|---|
| committer | GitHub | 2018-02-02 13:04:33 +0000 |
| commit | 3eaf893c7edef511d5d6e7f4bbbf82fe5d1f1dce (patch) | |
| tree | 2968ee1dc015a65a95d23e93afef764e88c8f36d /src/main/game/game_state.cpp | |
| parent | Merge pull request #33 from thecharlesblake/fix-benchmark-bug (diff) | |
| parent | Improve printout of benchmark script (diff) | |
| download | metasol-3eaf893c7edef511d5d6e7f4bbbf82fe5d1f1dce.tar.gz metasol-3eaf893c7edef511d5d6e7f4bbbf82fe5d1f1dce.zip | |
Merge pull request #34 from thecharlesblake/reduced_state
Reduced state
Diffstat (limited to 'src/main/game/game_state.cpp')
| -rw-r--r-- | src/main/game/game_state.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp index faab429..097c744 100644 --- a/src/main/game/game_state.cpp +++ b/src/main/game/game_state.cpp @@ -277,21 +277,16 @@ 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 ORDER_ON_CACHE 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 ORDER_ON_CACHE eval_pile_order(pr, false); -#endif return c; } -#ifndef ORDER_ON_CACHE // Assesses whether the pile ref that was modified was a tableau, cell or // reserve pile, and if so makes the relevant function call void game_state::eval_pile_order(pile_ref pr, bool is_place) { @@ -361,7 +356,6 @@ void game_state::eval_pile_order(list<pile_ref>& pile_lst, pile_ref changed_pr, } #endif } -#endif //////////////////////// @@ -410,10 +404,6 @@ bool game_state::is_solved() const { return solved; } -const vector<pile>& game_state::get_data() const { - return piles; -} - /////////// // PRINT // |
