diff options
| author | Tom Harley | 2019-01-29 12:29:37 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-01-29 12:29:37 +0000 |
| commit | 160b3a382440a91fca1b4bbcde693b8b7c164aa3 (patch) | |
| tree | 4baf86c19879003f43f055f2f5c85e76b2f7fefb /almost-finished.json | |
| parent | Reorganise repo (diff) | |
| download | metasol-160b3a382440a91fca1b4bbcde693b8b7c164aa3.tar.gz metasol-160b3a382440a91fca1b4bbcde693b8b7c164aa3.zip | |
Add support for reading gamestates from json files
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.
Diffstat (limited to 'almost-finished.json')
| -rw-r--r-- | almost-finished.json | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/almost-finished.json b/almost-finished.json new file mode 100644 index 0000000..6516f6f --- /dev/null +++ b/almost-finished.json @@ -0,0 +1,12 @@ +{ + "foundations": [ + [ "AC", "2C", "3C", "4C", "5C", "6C", "7C", "8C", "9C", "TC", "JC", "QC", "KC" ], + [ "AD", "2D", "3D", "4D", "5D", "6D", "7D", "8D", "9D", "TD", "JD", "QD" ], + [ "AH", "2H", "3H", "4H", "5H", "6H", "7H", "8H", "9H", "TH", "JH", "QH", "KH" ], + [ "AS", "2S", "3S", "4S", "5S", "6S", "7S", "8S", "9S", "TS", "JS", "QS", "KS" ] + ], + + "tableau": [ + [ "KD" ], [], [], [], [], [], [] + ] +} |
