# ai.dennery.game.chess

- Kind: defs
- Authority: game.dennery.ai
- Lexicon: 1
- Published by [game.dennery.ai](https://lexicon.garden/identity/did:plc:com7beprxcim4u4ezzroudpc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.chess)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.chess/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.chess/analytics)

## #move (`ai.dennery.game.chess#move`)

Type: object

One chess move in UCI coordinates plus claimed SAN and resulting FEN.

### Properties

- `fenAfter` (string, required)
  - Constraints: maxLength: 100
- `from` (string, required)
  - Constraints: minLength: 2, maxLength: 2
- `promotion` (string)
  - Constraints: knownValues: b | n | q | r
- `san` (string, required)
  - Constraints: maxLength: 12
- `to` (string, required)
  - Constraints: minLength: 2, maxLength: 2

## #state (`ai.dennery.game.chess#state`)

Type: object

Authoritative chess position.

### Properties

- `fen` (string, required)
  - Constraints: maxLength: 100
- `fullmoveNumber` (integer)
  - Constraints: minimum: 1
- `halfmoveClock` (integer)
  - Constraints: minimum: 0
- `turnColor` (string, required)
  - Constraints: knownValues: black | white

## Schema

```json
{
  "$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
}
```
