aboutsummaryrefslogtreecommitdiff
path: root/metasol.h
AgeCommit message (Collapse)AuthorLines
2019-02-22Add documentation for metasol.hppTom Harley-206/+0
Adding doxygen documentation should help people understand the use for metasol.
2019-02-20Add rules file for CanfieldTom Harley-0/+2
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-19Add support for GolfTom Harley-1/+3
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-11Solve a Klondike dealTom Harley-53/+84
The solver can now solve a Klondike deal! Use seed 5 to generate a deal that seems to always be solvable.
2019-02-01Add support for reading rules from .json filesTom Harley-0/+22
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-31Update submodulesTom Harley-1/+1
I promise it works this time
2019-01-29Add support for reading gamestates from json filesTom Harley-1/+3
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-27Reorganise repoTom Harley-9/+10
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-24Split code into 3 filesTom Harley-0/+146
The code that used to reside in `metasol.cpp` has been split between `metasol.h`, `centre.cpp`, and the original file.