# ai.dennery.game.move

> One move. Payload is a union of per-game move defs.

- Kind: record
- Record key: tid
- 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.move)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.move/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.move/analytics)

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

Type: record · key tid

### Properties

- `actor` (string · did, required)
- `createdAt` (string · datetime, required)
- `moveNumber` (integer, required)
  - Constraints: minimum: 1
- `note` (string)
  - Constraints: maxLength: 280
- `payload` (union, required)
  - One of: `ai.dennery.game.chess#move`, `ai.dennery.game.wordGrid#move`, `ai.dennery.game.jigsaw#move`
- `session` (ref, required)
  - Reference: `com.atproto.repo.strongRef`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One move. Payload is a union of per-game move defs.",
      "key": "tid",
      "record": {
        "properties": {
          "actor": {
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "moveNumber": {
            "minimum": 1,
            "type": "integer"
          },
          "note": {
            "maxLength": 280,
            "type": "string"
          },
          "payload": {
            "refs": [
              "ai.dennery.game.chess#move",
              "ai.dennery.game.wordGrid#move",
              "ai.dennery.game.jigsaw#move"
            ],
            "type": "union"
          },
          "session": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "createdAt",
          "session",
          "moveNumber",
          "actor",
          "payload"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.dennery.game.move",
  "lexicon": 1
}
```
