aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/game_state.cpp
AgeCommit message (Collapse)AuthorLines
2018-02-14Update game rep to deal with foundation dominancethecharlesblake-4/+119
2018-02-02Add flag for toggling pile order symmetry & boththecharlesblake-0/+4
2018-02-02Remove unnecessary get_data() from game_statethecharlesblake-4/+0
2018-02-01Remove order on cache flag from game statethecharlesblake-6/+0
2018-01-30Add logic for ORDER_ON_CACHE to game_statethecharlesblake-0/+6
2018-01-30Update game_state so comm piles always orderedthecharlesblake-22/+114
2018-01-27Alter printing to work when pile refs are changedthecharlesblake-4/+7
2018-01-25Refactor game_state & cache to remove static hackthecharlesblake-29/+1
2018-01-18Update game state with static pile refs & rulesthecharlesblake-16/+41
2018-01-12Implement symmetrical hash for pile vectorthecharlesblake-33/+0
2018-01-10Add asserts to program and fix bugs they raisethecharlesblake-37/+53
2018-01-09Add game state setup for stock-tableau & 2 deckthecharlesblake-15/+38
2018-01-08Add game setup for built pile (AS)thecharlesblake-2/+44
2018-01-05Add diagonal deal to game setup (somerset)thecharlesblake-3/+18
2018-01-05Add game state setup for stacked reserve (canfield)thecharlesblake-3/+8
2018-01-04Create game state setup for flower gardenthecharlesblake-4/+20
2018-01-04Update random deal gen with foundations init cardsthecharlesblake-5/+18
2018-01-03Move game_state legal move gen into dedicated filethecharlesblake-130/+0
2018-01-03Move game state printing into dedicated classthecharlesblake-96/+10
2018-01-03Refactor io dir structurethecharlesblake-1/+1
2018-01-03Tidy up card classthecharlesblake-1/+1
2018-01-03Major refactor, putting pile logic into game_statethecharlesblake-74/+172
Much of the logic that was in the pile class was beginning to seem out of place. A lot of the rules have fairly arbitrary interactons *between* piles, which weren't best represented in the pile classes themselves, which were getting unweildy and inefficient. Hence, much of this logic has been moved to the game state class.
2018-01-02Add empty pile logic for bakers dozenthecharlesblake-1/+3
2017-12-31Make game state representation efficientthecharlesblake-127/+133
2017-12-27First sp test workingthecharlesblake-19/+19
2017-12-26Add basic tableau deal parsingthecharlesblake-3/+11
2017-12-26Refactor game state to prep for deal parsethecharlesblake-35/+6
2017-11-15Change history to boost multi-index mapthecharlesblake-2/+35
2017-11-14Fix deal bug when no cards in starting tableauthecharlesblake-7/+6
2017-11-14Add logic for reading preset sols and file jsonthecharlesblake-1/+1
2017-11-12Refactor game statethecharlesblake-35/+45
2017-11-12Refactor and improve state printingthecharlesblake-46/+45
2017-11-12Simplify is_solved()thecharlesblake-4/+1
2017-11-12Clean up deal from shuffled deckthecharlesblake-14/+11
2017-11-12Fix random deal bugthecharlesblake-2/+4
2017-11-12Remove dynamic mem alloc for random deal genthecharlesblake-10/+7
2017-11-12Add factory to pile class to create std pile typesthecharlesblake-11/+7
2017-11-12Init piles in game_state & make get states constthecharlesblake-23/+28
2017-11-11Add src file directory structurethecharlesblake-0/+325