{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "move": {
      "description": "One chess move in UCI coordinates plus claimed SAN and resulting FEN.",
      "properties": {
        "fenAfter": {
          "maxLength": 100,
          "type": "string"
        },
        "from": {
          "maxLength": 2,
          "minLength": 2,
          "type": "string"
        },
        "promotion": {
          "knownValues": [
            "b",
            "n",
            "q",
            "r"
          ],
          "type": "string"
        },
        "san": {
          "maxLength": 12,
          "type": "string"
        },
        "to": {
          "maxLength": 2,
          "minLength": 2,
          "type": "string"
        }
      },
      "required": [
        "from",
        "to",
        "san",
        "fenAfter"
      ],
      "type": "object"
    },
    "state": {
      "description": "Authoritative chess position.",
      "properties": {
        "fen": {
          "maxLength": 100,
          "type": "string"
        },
        "fullmoveNumber": {
          "minimum": 1,
          "type": "integer"
        },
        "halfmoveClock": {
          "minimum": 0,
          "type": "integer"
        },
        "turnColor": {
          "knownValues": [
            "black",
            "white"
          ],
          "type": "string"
        }
      },
      "required": [
        "fen",
        "turnColor"
      ],
      "type": "object"
    }
  },
  "id": "ai.dennery.game.chess",
  "lexicon": 1
}
