app.knightsky.game

A player's mutable copy of a chess game. Without challenge this record is an invitation; with challenge it accepts the referenced invitation. Update the same record key after each move or resignation.

Repository @knightsky.app did:plc:4jwu5r3kihk5btmr7nqtvt2r namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityknightsky.app
Commit rev3n2hbs2dsij2u
Indexed
cid bafyreiaaypj2kdrxlx65ox3s2gjjqhuuhmg75hzhubu5jx3yeks4sfoqye

Checks

Valid
  • unlimited-string defs.main.record.properties.colorNo maxLength, maxGraphemes or format limits this string.
  • large-string defs.main.record.properties.pgnmaxLength is over 20 KB. Use a blob for content that large.
  • unlimited-string defs.main.record.properties.statusNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A player's mutable copy of a chess game. Without challenge this record is an invitation; with challenge it accepts the referenced invitation. Update the same record key after each move or resignation.",
      "key": "tid",
      "record": {
        "properties": {
          "challenge": {
            "description": "Present only on the accepting player's record. Identifies the challenger's app.knightsky.game record and its CID at acceptance; retain this reference unchanged on later updates.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "color": {
            "description": "The record owner's color, not the opponent's color.",
            "enum": [
              "white",
              "black"
            ],
            "type": "string"
          },
          "fen": {
            "description": "The six-field FEN after replaying pgn, or the standard initial position before any moves. Clients must validate it with the chess engine and compare it with the replayed position.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "opponent": {
            "description": "DID of the opposing player. The record owner's DID is taken from the repository, not this field.",
            "format": "did",
            "type": "string"
          },
          "pgn": {
            "description": "Full mainline move history in PGN from the standard initial position. An empty string is allowed before the first move. Clients must replay and validate the moves rather than trust this text.",
            "maxLength": 262144,
            "type": "string"
          },
          "status": {
            "description": "Resigned means this record's owner has resigned. Active means no resignation by this owner; checkmate and automatic draws are derived by the engine from the accepted history.",
            "enum": [
              "active",
              "resigned"
            ],
            "type": "string"
          }
        },
        "required": [
          "opponent",
          "color",
          "pgn",
          "fen",
          "status"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.knightsky.game",
  "lexicon": 1
}