From 160b3a382440a91fca1b4bbcde693b8b7c164aa3 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 29 Jan 2019 12:29:37 +0000 Subject: 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. --- almost-finished.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 almost-finished.json (limited to 'almost-finished.json') 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" ], [], [], [], [], [], [] + ] +} -- cgit v1.2.1