games.atplay.game.turn

atplay.games

Documentation

A turn

main record

A turn

Record Key tid Timestamp-based ID

Properties

actions array of string Required

The actions taken by this player in this game, created & interpretable by the game logic (but ideally also human readable)

minLength: 1 items
follows array of ref com.atproto.repo.strongRef Optional

The record(s) that this new game state is based upon. This is usually the single previous turn (or the invitation, for the first turn), but for games where turns can be taken parallel for a given round, this may contain more than one record.

minLength: 1 items
nextPlayers array of string did Optional

Array of DIDs for the next player(s) to take a turn

minLength: 1 items
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "game",
      "invitation",
      "actions",
      "state"
    ],
    "properties": {
      "game": {
        "ref": "games.atplay.game.release",
        "type": "ref"
      },
      "state": {
        "ref": "games.atplay.game.state",
        "type": "ref"
      },
      "actions": {
        "type": "array",
        "items": {
          "type": "string",
          "maxLength": 1024
        },
        "minLength": 1,
        "description": "The actions taken by this player in this game, created & interpretable by the game logic (but ideally also human readable)"
      },
      "follows": {
        "type": "array",
        "items": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "minLength": 1,
        "description": "The record(s) that this new game state is based upon. This is usually the single previous turn (or the invitation, for the first turn), but for games where turns can be taken parallel for a given round, this may contain more than one record."
      },
      "invitation": {
        "ref": "com.atproto.repo.strongRef",
        "type": "ref",
        "description": "Reference to the game invitation record"
      },
      "nextPlayers": {
        "type": "array",
        "items": {
          "type": "string",
          "format": "did"
        },
        "minLength": 1,
        "description": "Array of DIDs for the next player(s) to take a turn"
      }
    }
  },
  "description": "A turn"
}

Lexicon Garden

@