| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-04-03 | Add indefinite runningtrh/multirun | Tom Harley | -66/+102 | |
| centre can now be run indefinitely, attempting to solve games incrementally, by passing it the -f flag. | ||||
| 2019-04-03 | Remove thpool from Makefile | Tom Harley | -1/+0 | |
| thpool is no longer used by the system, so it shouldn't be mentioned in the Makefile. ctpl is a header-only library, and so doesn't need a Makefile entry. | ||||
| 2019-04-02 | Improve documentation output | Tom Harley | -18/+18 | |
| 2019-04-02 | Prepare for solvability calculations | Tom Harley | -51/+225 | |
| New fucntions have been implemented to allow for the integration into centre of the calculation of solvability percentages, through mass-solving games. | ||||
| 2019-02-27 | Change threadpool library | Tom Harley | -3/+3 | |
| thpool was great as a simple threadpool library, but lacked features required in the future of the project. CTPL is a C++ library, and uses futures. This takes the project a littel further from becoming a pure C library, but that can be fixed once it doesn't contribute to my grade. | ||||
| 2019-02-25 | Skip to 'solved' when there are no hidden cards | Tom Harley | -2/+38 | |
| If a game-state can be solved by a voter from a position where there are no hidden cards, the game can be solved by metasol also. The rest of the game can be skipped, which saves time. If the sequence of moves taken is required, the remaining moves can be taken from a successful voter. | ||||
| 2019-02-25 | Check for majority moves after regular move | Tom Harley | -14/+10 | |
| Previously, majority moves were checked for before regular moves. This would usually result in time wasted after a reveal-reset. | ||||
| 2019-02-22 | Add documentation for metasol.hpp | Tom Harley | -231/+3361 | |
| Adding doxygen documentation should help people understand the use for metasol. | ||||
| 2019-02-21 | Clean up rule description files | Tom Harley | -151/+190 | |
| The files for describing rules have changed a bit: they are no longer `.json` files (although they are still parsed by a JSON parser). The description files are now their own format, with a little less boilerplate required than for JSON files. As a result, rule description files can be given shebangs and be made executable, allowing a user to run the rule file instead of `centre` directly. The rules files in the repository are set up to run `centre` if it is on the user's path. | ||||
| 2019-02-20 | Add rules file for Canfield | Tom Harley | -0/+42 | |
| It seems like Canfield may need a longer timeout on the voters, but for the .json rules seem to describe the game accurately. | ||||
| 2019-02-19 | Move rules files to dedicated folder | Tom Harley | -0/+0 | |
| The plan is to add a few more sets of rules, which would clutter the root directory without a dedicated folder to stow them in. | ||||
| 2019-02-19 | Add support for Golf | Tom Harley | -3/+41 | |
| A few changes were needed to support Golf: `hole_build_loop` had to be implemented, as well as the `STOCK_TO_HOLE` stock deal method. The solver doesn't seem very good at Golf, although there may be a bug or missing rule causing this. | ||||
| 2019-02-18 | Add Will-o-the-wisp rules, reorganise main loop | Tom Harley | -140/+210 | |
| Also, the solvability (and the solved-ness) of a game-state is not checked between majority-vote moves. | ||||
| 2019-02-17 | Reveal stock cards if stock redeals allowed | Tom Harley | -0/+7 | |
| If stock redeals are allowed, then the player can go through the stock once at the start of the game and reset it, bringing the game back to the original game state. This allows the player to see all cards in the stock, even if the stock isn't explicitly face-up. This can be used to reduce the number of voters run, since the stock will not be hidden and fewer reveals means fewer full resets. As such, this optimisation seems to reduce solving time by roughly half. This optimisation also theoretically increases solvability percentages in affected games, since the system has fewer face-down cards to generate misleading permutations with. | ||||
| 2019-02-17 | Skip voting if majority already established | Tom Harley | -39/+80 | |
| If there is a number of voters that agree on the next move that is a majority, then it is unnecessary to run more voters as they cannot affect the outcome. | ||||
| 2019-02-17 | Split Solvitaire k+ moves into stock moves | Tom Harley | -89/+173 | |
| In Solvitaire, going through the stock in stock-waste games is bundled with the move out of the waste, in what's called a k-plus move. This makes sense in Solvitaire, but in this system having each stock move be explicit helps because it itemises all moves similarly, making shaving off single moves easy. The `calculate_stock_moves` function uses a simulation rather than a simple calculation, which has a couple of downsides: 1. it's slower than a calculation; 2. it loops infinitely when given an index that's impossible to reach. | ||||
| 2019-02-11 | Solve a Klondike deal | Tom Harley | -110/+430 | |
| The solver can now solve a Klondike deal! Use seed 5 to generate a deal that seems to always be solvable. | ||||
| 2019-02-02 | Add support for non-diagonal deals | Tom Harley | -20/+25 | |
| Previously, if a game had a tableau but was not diagonal-deal, it would only place one card in each tableau. Now, all left over cards are dealt to each each tableau pile, evenly split. | ||||
| 2019-02-01 | Add support for reading rules from .json files | Tom Harley | -29/+359 | |
| Game rules can now be read from .json files passed as argument with `-r`/`--rules` on the command-line. The rules descriptions are built on top of sane default rules, so some rules can be omitted. Without a rules file specified, `centre` plays canfield. | ||||
| 2019-01-31 | Update submodules | Tom Harley | -56/+52 | |
| I promise it works this time | ||||
| 2019-01-29 | Reorganise submodules (and submodulise solvitaire) | Tom Harley | -28568/+5 | |
| The submodules should now point to repos I've made in order to produce static libraries from them. Also, solvitaire now points to a similar personal repo. | ||||
| 2019-01-29 | Add support for reading gamestates from json files | Tom Harley | -39/+262 | |
| Piles of cards can now be read from `.json` files using the `--game`/`-g` flag, although the solver doesn't seem to like them. Currently, cards mentioned in these files are all face-up, which means that they aren't particularly useful for building whole games and more just test cases. Also added command-line options parsing, including accepting randomisation seeds from the `--seed`/`-s` option. | ||||
| 2019-01-27 | Reorganise repo | Tom Harley | -289/+540 | |
| All solvitaire content has been shoved into a subdirectory to tidy up the root of the project. This also means solvitaire is treated similarly to other dependencies of the project, and allows other dependencies to be added easily. There's also a lot of other work done here, such as usign a thread pool library to manage the running of the voters. | ||||
| 2019-01-24 | Split code into 3 files | Tom Harley | -806/+723 | |
| The code that used to reside in `metasol.cpp` has been split between `metasol.h`, `centre.cpp`, and the original file. | ||||
| 2019-01-24 | It works with fortune's favor | Tom Harley | -128/+1222 | |
| It seems to be consistently running to completion successfully! It's been renamed to `metasol` for now, since that's a better name than `test`. Next step will probably be eliminating the namespace pollution in `metasol.cpp`. | ||||
| 2018-11-16 | wow a thing that works | Tom Harley | -0/+246 | |
| 2018-10-26 | changes in Makefile to turn off some warnings | ipg | -1/+2 | |
| 2018-10-21 | Merge pull request #102 from thecharlesblake/waste-symmetry | Charlie Blake | -3/+20 | |
| Add k+ symmetry when waste size multiple of deal | ||||
| 2018-10-21 | Add k+ symmetry when waste size multiple of deal | thecharlesblake | -3/+20 | |
| 2018-10-14 | Merge pull request #101 from thecharlesblake/terminated-status | Charlie Blake | -3/+21 | |
| Add terminated status | ||||
| 2018-10-14 | Add terminated status | thecharlesblake | -3/+21 | |
| 2018-10-14 | Merge pull request #100 from thecharlesblake/maximal-built-group | Charlie Blake | -19/+29 | |
| Add maximal built group option | ||||
| 2018-10-14 | Add maximal built group option | thecharlesblake | -19/+29 | |
| 2018-10-14 | Merge pull request #99 from thecharlesblake/pre-filled-cells | Charlie Blake | -27/+120 | |
| Add pre-filled cells | ||||
| 2018-10-14 | Add pre-filled cells | thecharlesblake | -27/+120 | |
| 2018-10-13 | Merge pull request #98 from thecharlesblake/deal-print | Charlie Blake | -4/+81 | |
| Deal print | ||||
| 2018-10-13 | Add json printing of initial deal | thecharlesblake | -2/+71 | |
| 2018-10-13 | Add deal-print cmdln option | thecharlesblake | -4/+12 | |
| 2018-10-13 | Merge pull request #97 from thecharlesblake/comma-bug-ctd | Charlie Blake | -1/+4 | |
| Another attempt to fix comma bug | ||||
| 2018-10-13 | Another attempt to fix comma bug | thecharlesblake | -1/+4 | |
| 2018-10-13 | Merge pull request #96 from thecharlesblake/docker | Charlie Blake | -4/+12 | |
| Fix broken docker setup | ||||
| 2018-10-13 | Fix broken docker setup | thecharlesblake | -4/+12 | |
| 2018-10-13 | Merge pull request #95 from thecharlesblake/docker | Charlie Blake | -499/+231 | |
| Add docker to project | ||||
| 2018-10-13 | Add docker to project | chblake | -499/+231 | |
| 2018-09-29 | Merge pull request #94 from thecharlesblake/canfield-fix | Charlie Blake | -10583/+0 | |
| Remove extra canfield files | ||||
| 2018-09-29 | Remove extra canfield files | thecharlesblake | -10583/+0 | |
| 2018-09-29 | Merge pull request #93 from thecharlesblake/canfield-fix | Charlie Blake | -34/+21 | |
| Canfield fix | ||||
| 2018-09-29 | Fix reserve-foundation bug | thecharlesblake | -1/+1 | |
| 2018-09-29 | Correct legal moves for found base & remove wraps | thecharlesblake | -36/+19 | |
| 2018-09-29 | Fix wrapping logic | thecharlesblake | -2/+6 | |
| 2018-09-28 | Merge pull request #92 from thecharlesblake/canfield-comp | Charlie Blake | -2/+10626 | |
| Canfield comparison with wolter | ||||
| 2018-09-28 | Canfield comparison with wolter | thecharlesblake | -2/+10626 | |
| 2018-09-20 | Merge pull request #91 from thecharlesblake/fix-comma-bug-sol-percent | Charlie Blake | -13/+13 | |
| Fix comma bug with solvaibility percentage mode | ||||
| 2018-09-20 | Fix comma bug with solvaibility percentage mode | thecharlesblake | -13/+13 | |
| 2018-09-17 | Merge pull request #90 from thecharlesblake/correct-fortunes-favor | Charlie Blake | -8/+38 | |
| Correct fortunes favor | ||||
| 2018-09-16 | Change vbar csv to comma and add overall sol col | thecharlesblake | -5/+9 | |
| 2018-09-16 | Add logic for auto-waste-then-stock | thecharlesblake | -1/+23 | |
| 2018-09-16 | Add parsing logic for auto-waste-then-stock spaces | thecharlesblake | -2/+6 | |
| 2018-09-16 | Merge pull request #89 from thecharlesblake/add-gaps-basic | Charlie Blake | -4/+52 | |
| Add gaps basic | ||||
| 2018-09-16 | Add legal moves logic for fixed suit sequences | thecharlesblake | -1/+13 | |
| 2018-09-16 | Add parsing logic for sequence fixed suit rule | thecharlesblake | -3/+39 | |
| 2018-09-02 | Merge pull request #88 from thecharlesblake/fix-comma-bug | Charlie Blake | -2/+130 | |
| Fix comma bug | ||||
| 2018-09-02 | Add new games (canister etc) | thecharlesblake | -0/+128 | |
| 2018-09-02 | Change first comma to bar on output | thecharlesblake | -2/+2 | |
| 2018-09-02 | Remove extra comma when streamliner solves | thecharlesblake | -1/+1 | |
| 2018-08-17 | Merge pull request #87 from thecharlesblake/add_linux_time | Charlie Blake | -3/+4 | |
| Add linux time command results to output | ||||
| 2018-08-17 | Add linux time command results to output | Charles Blake | -3/+4 | |
| 2018-08-16 | Merge pull request #86 from thecharlesblake/ipg | Charlie Blake | -29/+540 | |
| Ipg | ||||
| 2018-08-10 | typos in script | Ian Gent | -0/+91 | |
| 2018-08-10 | solvability script | Ian Gent | -29/+4 | |
| 2018-08-10 | Merge branch 'ipg' of github.com:thecharlesblake/Solvitaire into ipg | Ian Gent | -0/+445 | |
| 2018-08-09 | Merge pull request #85 from thecharlesblake/fix-write-out-bugs | Charlie Blake | -6/+39 | |
| Fix write out bugs | ||||
| 2018-08-09 | Flushes output before and after results | Charlie Blake | -0/+2 | |
| 2018-08-09 | Write results to independent files and combines | Charlie Blake | -6/+37 | |
| 2018-08-08 | Merge pull request #84 from thecharlesblake/spider-face-up | Charlie Blake | -3/+6 | |
| Add face-down to spider games | ||||
| 2018-08-08 | Add face-down to spider games | Charlie Blake | -3/+6 | |
| 2018-08-08 | Merge pull request #83 from thecharlesblake/fix-write-out-bugs | Charlie Blake | -9/+10 | |
| Fix write out bugs | ||||
| 2018-08-08 | Print seed ofter runing solver | Charlie Blake | -3/+2 | |
| 2018-08-08 | Only log cache full error when in debug mode | Charlie Blake | -0/+2 | |
| 2018-08-08 | Change output of results to uint64_t data types | Charlie Blake | -6/+6 | |
| 2018-08-04 | Merge pull request #82 from thecharlesblake/two-deck-testing | Charlie Blake | -41/+299 | |
| Add two-deck presets & edit mv order to make work | ||||
| 2018-08-04 | Add two-deck presets & edit mv order to make work | Charlie Blake | -41/+299 | |
| 2018-07-26 | Merge pull request #81 from thecharlesblake/streamliner-fixup | Charlie Blake | -32/+62 | |
| Fix streamliner bug: was not applied on smart sol | ||||
| 2018-07-26 | Fix streamliner bug: was not applied on smart sol | Charlie Blake | -32/+62 | |
| 2018-07-26 | Merge pull request #80 from thecharlesblake/fix-timing-bug | Charlie Blake | -346/+344 | |
| Fix timing bug | ||||
| 2018-07-26 | Update gen results script to work with changes | Charlie Blake | -21/+47 | |
| 2018-07-26 | Add correct solvability script output | Charlie Blake | -5/+6 | |
| 2018-07-26 | Add csv output to single deal and init sol script | Charlie Blake | -67/+98 | |
| 2018-07-26 | Add timeout to individual games | Charlie Blake | -2/+4 | |
| 2018-07-26 | remove openmp cmake flag | Charlie Blake | -1/+1 | |
| 2018-07-26 | Replace openmp with std::thread | Charlie Blake | -63/+76 | |
| 2018-07-26 | Add open mp to --sol | Charlie Blake | -61/+53 | |
| 2018-07-26 | Make timeout operate using single thread | Charlie Blake | -215/+148 | |
| 2018-07-24 | Merge pull request #78 from thecharlesblake/add-canfield | Charlie Blake | -192/+540 | |
| Add canfield | ||||
| 2018-07-24 | Fix canfield to pass all unit tests | Charlie Blake | -55/+105 | |
| 2018-07-23 | Small bug fixes inc found. base card & whole piles | Charlie Blake | -30/+22 | |
| 2018-07-23 | Add foundation wrap logic and fix top-of-waste bug | Charlie Blake | -28/+35 | |
| 2018-07-19 | Add tableau wraps logic | Charlie Blake | -9/+13 | |
| 2018-07-19 | Add whole pile legal moves gen | Charlie Blake | -2/+42 | |
| 2018-07-19 | Add random gen for Canfield | Charlie Blake | -14/+30 | |
