aboutsummaryrefslogtreecommitdiff
path: root/resources/rules-presets/input-file-schema.json
diff options
context:
space:
mode:
authorCharlie Blake2018-02-15 12:48:35 +0000
committerGitHub2018-02-15 12:48:35 +0000
commit9e865ef56ff2b90695343e2e5b7be6e05b2c56f4 (patch)
tree7cd620ee74084d74d849b44fae2db3897763cadb /resources/rules-presets/input-file-schema.json
parentMerge pull request #37 from thecharlesblake/docs (diff)
parentAdd simple auto-found + works w/ removable founds (diff)
downloadmetasol-9e865ef56ff2b90695343e2e5b7be6e05b2c56f4.tar.gz
metasol-9e865ef56ff2b90695343e2e5b7be6e05b2c56f4.zip

Merge pull request #38 from thecharlesblake/foundation-dominance

Foundation dominance

Diffstat (limited to 'resources/rules-presets/input-file-schema.json')
-rw-r--r--resources/rules-presets/input-file-schema.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/resources/rules-presets/input-file-schema.json b/resources/rules-presets/input-file-schema.json
new file mode 100644
index 0000000..1b55e4f
--- /dev/null
+++ b/resources/rules-presets/input-file-schema.json
@@ -0,0 +1,32 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "definitions": {
+ "card": {
+ "type": "string",
+ "pattern": "^(?i)([A|[1-9]|1[0-3]|J|Q|K])([C|D|H|S])$"
+ }
+ },
+ "type": "object",
+ "properties": {
+ "tableau piles": {
+ "type": "array",
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/card"
+ }
+ }
+ },
+ "hole card": {
+ "$ref": "#/definitions/card"
+ }
+ },
+ "additionalProperties": false,
+ "anyOf": [
+ {
+ "required": [
+ "tableau piles"
+ ]
+ }
+ ]
+} \ No newline at end of file