Skip to content

Instantly share code, notes, and snippets.

@coopermayne
Created January 28, 2026 03:00
Show Gist options
  • Select an option

  • Save coopermayne/53e6a4ecc09f61aa58f05fb0a6141815 to your computer and use it in GitHub Desktop.

Select an option

Save coopermayne/53e6a4ecc09f61aa58f05fb0a6141815 to your computer and use it in GitHub Desktop.
Two Not Touch Puzzle JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/two-not-touch-puzzle.schema.json",
"title": "Two Not Touch Puzzle",
"description": "A Two Not Touch puzzle with solution and solving steps",
"type": "object",
"required": ["puzzle", "solution", "steps"],
"additionalProperties": false,
"properties": {
"puzzle": {
"description": "10x10 grid where each cell contains a region ID (0-9). Cells with the same ID belong to the same region.",
"type": "array",
"minItems": 10,
"maxItems": 10,
"items": {
"type": "array",
"minItems": 10,
"maxItems": 10,
"items": {
"type": "integer",
"minimum": 0,
"maximum": 9
}
}
},
"solution": {
"description": "10x10 grid where 1 = star position, 0 = empty cell. Each row, column, and region contains exactly 2 stars.",
"type": "array",
"minItems": 10,
"maxItems": 10,
"items": {
"type": "array",
"minItems": 10,
"maxItems": 10,
"items": {
"type": "integer",
"enum": [0, 1]
}
}
},
"steps": {
"description": "Human-readable solving steps explaining the logical deductions to solve the puzzle",
"type": "array",
"items": {
"type": "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment