aboutsummaryrefslogtreecommitdiff
path: root/klondike.json
diff options
context:
space:
mode:
authorTom Harley2019-02-01 15:53:27 +0000
committerTom Harley2019-02-01 15:53:27 +0000
commit912a11b8bc173fada75815fb4f740cd11879205b (patch)
tree27f7a32b2e57221ebc7923a1715d0ba150e12834 /klondike.json
parentUpdate submodules (diff)
downloadmetasol-912a11b8bc173fada75815fb4f740cd11879205b.tar.gz
metasol-912a11b8bc173fada75815fb4f740cd11879205b.zip

Add support for reading rules from .json files

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.

Diffstat (limited to 'klondike.json')
-rw-r--r--klondike.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/klondike.json b/klondike.json
new file mode 100644
index 0000000..88af397
--- /dev/null
+++ b/klondike.json
@@ -0,0 +1,16 @@
+{
+ "tableau size": 7,
+ "build policy": "red-black",
+ "spaces policy": "kings",
+ "move built group": "yes",
+ "group build policy": "red-black",
+
+ "diagonal deal": true,
+ "face up policy": "top",
+
+ "foundations removable": true,
+
+ "cards in stock": 24,
+ "stock deal count": 3,
+ "stock redeal": true
+}