aboutsummaryrefslogtreecommitdiff
path: root/resources/input-file-schema.json
diff options
context:
space:
mode:
authorCharlie Blake2017-10-28 13:28:49 +0100
committerGitHub2017-10-28 13:28:49 +0100
commit7b05ae6f24856a207f9d9ab3218f1b5e75343d74 (patch)
tree4c7b3d779f29f5cef8a5eb1803441f1aa20ac0bd /resources/input-file-schema.json
parentMerge pull request #13 from thecharlesblake/docs (diff)
parentAdd RapidJSON to travis (diff)
downloadmetasol-7b05ae6f24856a207f9d9ab3218f1b5e75343d74.tar.gz
metasol-7b05ae6f24856a207f9d9ab3218f1b5e75343d74.zip

Merge pull request #14 from thecharlesblake/simple-black-hole

Simple black hole

Diffstat (limited to 'resources/input-file-schema.json')
-rw-r--r--resources/input-file-schema.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/resources/input-file-schema.json b/resources/input-file-schema.json
new file mode 100644
index 0000000..1b55e4f
--- /dev/null
+++ b/resources/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