diff options
| author | Charlie Blake | 2018-06-10 00:28:24 +0100 |
|---|---|---|
| committer | Charlie Blake | 2018-06-10 00:28:24 +0100 |
| commit | f4bfb7e972fda893240899b44534c65e4a10e636 (patch) | |
| tree | b2bbe8c0aadaec16280f020e55eb55955be43d3f /src/main/game/search-state/game_state.cpp | |
| parent | Refactor moves logic (diff) | |
| download | metasol-f4bfb7e972fda893240899b44534c65e4a10e636.tar.gz metasol-f4bfb7e972fda893240899b44534c65e4a10e636.zip | |
Finish refactoring game state class
Diffstat (limited to 'src/main/game/search-state/game_state.cpp')
| -rw-r--r-- | src/main/game/search-state/game_state.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/game/search-state/game_state.cpp b/src/main/game/search-state/game_state.cpp index ac57142..0a20f60 100644 --- a/src/main/game/search-state/game_state.cpp +++ b/src/main/game/search-state/game_state.cpp @@ -233,7 +233,7 @@ void game_state::make_move(const move m) { make_regular_move(m); break; case move::mtype::built_group: - make_built_pile_move(m); + make_built_group_move(m); break; case move::mtype::stock_to_waste: make_stock_to_waste_move(m); @@ -257,7 +257,7 @@ void game_state::undo_move(const move m) { undo_regular_move(m); break; case move::mtype::built_group: - undo_built_pile_move(m); + undo_built_group_move(m); break; case move::mtype::stock_to_waste: undo_stock_to_waste_move(m); @@ -295,7 +295,7 @@ void game_state::undo_regular_move(const move m) { #endif } -void game_state::make_built_pile_move(const move m) { +void game_state::make_built_group_move(move m) { assert(rules.move_built_group); assert(m.from < piles.size() ); assert(m.to < piles.size() ); @@ -312,7 +312,7 @@ void game_state::make_built_pile_move(const move m) { } } -void game_state::undo_built_pile_move(const move m) { +void game_state::undo_built_group_move(move m) { assert(rules.move_built_group); assert(m.to < piles.size()); assert(m.count <= rules.max_rank); |
