aboutsummaryrefslogtreecommitdiff
path: root/src/main/game
AgeCommit message (Expand)AuthorLines
2018-04-05Added many new gamesthecharlesblake-11/+2
2018-04-04Add versions of klondikethecharlesblake-24/+88
2018-04-04Add legal move gen tests and refactorthecharlesblake-3/+12
2018-04-04Add pile teststhecharlesblake-1/+7
2018-04-04Re-add schemas for rule and deal parsingthecharlesblake-0/+2
2018-04-03Zero seed bugfixthecharlesblake-1/+1
2018-03-21Update game logic for correct spider implthecharlesblake-29/+45
2018-03-21Update sol rules with built group polthecharlesblake-2/+4
2018-03-09Add new solution type logicthecharlesblake-1/+20
2018-03-08Add solve by ordered tableau json parsingthecharlesblake-0/+2
2018-03-08Add stock deal when no empty tableau piles logicthecharlesblake-2/+12
2018-02-24Add card just moved optimisation to game logicthecharlesblake-8/+30
2018-02-23Enable suit reduction for non-foundation gamesthecharlesblake-28/+38
2018-02-22Add reduce suit streamliner: replace card symmetrythecharlesblake-9/+9
2018-02-15Add simple auto-found + works w/ removable foundsthecharlesblake-92/+71
2018-02-14Update game rep to deal with foundation dominancethecharlesblake-4/+177
2018-02-14Resolve name ambiguity in card classthecharlesblake-17/+25
2018-02-14Add removable foundations logic to legal moves genthecharlesblake-0/+8
2018-02-14Add foundations removable rule parsingthecharlesblake-0/+1
2018-02-02Add flag for toggling pile order symmetry & boththecharlesblake-0/+4
2018-02-02Rename SIMPLE_HASH flag to NO_CARD_SYMMETRYthecharlesblake-2/+2
2018-02-02Simplify flagged versions of cached statethecharlesblake-150/+115
2018-02-02Remove unnecessary get_data() from game_statethecharlesblake-5/+0
2018-02-01Add game state reduction to cachethecharlesblake-128/+146
2018-02-01Remove order on cache flag from game statethecharlesblake-8/+1
2018-02-01Change pile comp ops to assess size firstthecharlesblake-4/+21
2018-02-01Add default constructor for card & 'divider' cardthecharlesblake-0/+7
2018-01-30Add logic for ORDER_ON_CACHE to global_cachethecharlesblake-2/+19
2018-01-30Add logic for ORDER_ON_CACHE to game_statethecharlesblake-0/+8
2018-01-30Update card & pile with comp operators for sortingthecharlesblake-4/+57
2018-01-30Update global cache to insert ordered vecthecharlesblake-42/+69
2018-01-30Update game_state so comm piles always orderedthecharlesblake-29/+128
2018-01-27Alter printing to work when pile refs are changedthecharlesblake-4/+13
2018-01-26Fix simple hash bugthecharlesblake-1/+1
2018-01-26Fix hash bugthecharlesblake-3/+3
2018-01-25Refactor game_state & cache to remove static hackthecharlesblake-110/+116
2018-01-18Add SIMPLE_HASH debug flag to cache logicthecharlesblake-1/+18
2018-01-18Tidy up game_state private accessthecharlesblake-15/+13
2018-01-18Fix sol_rules setup issuesthecharlesblake-5/+3
2018-01-18Revamp basic global cache classthecharlesblake-49/+99
2018-01-18Update game state with static pile refs & rulesthecharlesblake-32/+60
2018-01-18Update legal moves code to use new suit rep.thecharlesblake-1/+1
2018-01-18Add vector and initializer lst constructor to pilethecharlesblake-2/+9
2018-01-18Chance suit from enum to uint8_t for bit packingthecharlesblake-20/+39
2018-01-12Implement symmetrical hash for pile vectorthecharlesblake-43/+52
2018-01-12Implement hash for pilesthecharlesblake-7/+11
2018-01-12Implement symmetrical hash for cardsthecharlesblake-12/+29
2018-01-12Add unit tests for global cachethecharlesblake-3/+37
2018-01-12Add basic global_cache interfacethecharlesblake-0/+45
2018-01-10Add asserts to program and fix bugs they raisethecharlesblake-47/+64
2018-01-10Remove build order from sol rulesthecharlesblake-11/+1
2018-01-09Add logic for stock-tableau deal & 2 deckthecharlesblake-4/+25
2018-01-09Add game state setup for stock-tableau & 2 deckthecharlesblake-15/+38
2018-01-09Add rules parsing for stock-tableau deal & 2 deckthecharlesblake-0/+6
2018-01-08Add game logic for built pile (AA) and refactorthecharlesblake-19/+159
2018-01-08Add game setup for built pile (AS)thecharlesblake-2/+44
2018-01-08Add rules parsing for built pile (AS)thecharlesblake-0/+1
2018-01-05Add diagonal deal to game setup (somerset)thecharlesblake-3/+18
2018-01-05Add diagonal deal to rules parser (somerset)thecharlesblake-0/+1
2018-01-05Add game state setup for stacked reserve (canfield)thecharlesblake-3/+8
2018-01-05Add rules parsing for stacked reserve (canfield)thecharlesblake-0/+1
2018-01-04Add legal move gen for reservethecharlesblake-2/+4
2018-01-04Create game state setup for flower gardenthecharlesblake-4/+21
2018-01-04Add rules parsing for flower gardenthecharlesblake-0/+1
2018-01-04Add legal move generation for waste pilethecharlesblake-6/+0
2018-01-04Update random deal gen with foundations init cardsthecharlesblake-5/+18
2018-01-04Add rules parsing for (FF) foundations init cardthecharlesblake-0/+1
2018-01-03Move game_state legal move gen into dedicated filethecharlesblake-130/+135
2018-01-03Move card printing into dedicated classthecharlesblake-18/+0
2018-01-03Move game state printing into dedicated classthecharlesblake-107/+12
2018-01-03Refactor io dir structurethecharlesblake-1/+1
2018-01-03Tidy up card classthecharlesblake-2/+4
2018-01-03Refactor sol_rules into seperate parser classthecharlesblake-186/+1
2018-01-03Rename util to json_helperthecharlesblake-16/+16
2018-01-03Major refactor, putting pile logic into game_statethecharlesblake-283/+219
2018-01-02Add empty pile logic for bakers dozenthecharlesblake-6/+16
2018-01-02Add rules parsing for bakers dozenthecharlesblake-5/+27
2017-12-31Pile efficient implementation fixthecharlesblake-2/+7
2017-12-31Card efficient implementation fixthecharlesblake-20/+30
2017-12-31Make game state representation efficientthecharlesblake-144/+161
2017-12-29Make pile representation efficientthecharlesblake-38/+49
2017-12-29Make rules representation efficientthecharlesblake-22/+32
2017-12-28Make card representation efficientthecharlesblake-70/+50
2017-12-27First sp test workingthecharlesblake-22/+21
2017-12-26Add basic tableau deal parsingthecharlesblake-33/+31
2017-12-26Refactor game state to prep for deal parsethecharlesblake-38/+9
2017-11-15Change history to boost multi-index mapthecharlesblake-2/+57
2017-11-14Fix deal bug when no cards in starting tableauthecharlesblake-7/+6
2017-11-14Add logic for reading preset sols and file jsonthecharlesblake-89/+165
2017-11-12Refactor game statethecharlesblake-45/+56
2017-11-12Refactor and improve state printingthecharlesblake-68/+66
2017-11-12Simplify is_solved()thecharlesblake-5/+1
2017-11-12Clean up deal from shuffled deckthecharlesblake-16/+13
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-18/+53
2017-11-12Clean up sol_rules classthecharlesblake-3/+9
2017-11-12Tidy up headers for consistencythecharlesblake-4/+6
2017-11-12Init piles in game_state & make get states constthecharlesblake-25/+30
2017-11-12Simplify pile class & make const where possiblethecharlesblake-35/+20