Skip to content
Snippets Groups Projects
Commit b0e337e9 authored by Tessaris Sergio's avatar Tessaris Sergio
Browse files

JSON schema for Wumpus world input

parent dc7aba73
No related branches found
No related tags found
No related merge requests found
{
"$schema": "http://json-schema.org/schema#",
"definitions": {
"coord": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{"type": "integer"},
{"type": "integer"}
]
},
"hunter": {
"type": "array",
"minItems": 2,
"items": [
{"type": "integer"},
{"type": "integer"},
{"type": "string", "enum": ["N", "S", "E", "W"]}
]
}
},
"type": "object",
"properties": {
"id": {"type": "string"},
"size": {"$ref": "#/definitions/coord"},
"hunters": {"type": "array", "items": {"$ref": "#/definitions/hunter"}},
"pits": {"type": "array", "items": {"$ref": "#/definitions/coord"}},
"wumpuses": {"type": "array", "items": {"$ref": "#/definitions/coord"}},
"exits": {"type": "array", "items": {"$ref": "#/definitions/coord"}},
"golds": {"type": "array", "items": {"$ref": "#/definitions/coord"}},
"blocks": {"type": "array", "items": {"$ref": "#/definitions/coord"}}
},
"required": ["size"]
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment