# games.cavu.tier-madness.round

> Published by [chris.pardy.family](https://lexicon.garden/identity/did:plc:dp7v5b5kejmmzzpwmqyf5wj6)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.tier-madness.round)
- [Documentation](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.tier-madness.round/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.tier-madness.round/examples)

## Definitions

### `games.cavu.tier-madness.round`

**Type**: `record`

One player's account of a finished round, written by every player from their own PDS to the game's commitment space (rkey = `{game}-r{round}`) once the round's reveal starts. Written at the end rather than the start so it can't leak the deal order. Replay checks every player's round records agree.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `category` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `criteriaOptions` | `array` | Yes | Every criteria offered, in the order shown. |
| `criteriaPicker` | `string` (did) | Yes |  |
| `game` | `string` | Yes |  |
| `items` | `array` | Yes | The cards, in deal order. |
| `prompt` | `ref` → `games.cavu.tier-madness.defs#prompt` | Yes | The criteria picked: what this round's placements rate. |
| `round` | `integer` | Yes |  |
| `source` | `string` (uri) | No | Where the category came from, e.g. its Wikipedia category page. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One player's account of a finished round, written by every player from their own PDS to the game's commitment space (rkey = `{game}-r{round}`) once the round's reveal starts. Written at the end rather than the start so it can't leak the deal order. Replay checks every player's round records agree.",
      "key": "any",
      "record": {
        "properties": {
          "category": {
            "maxLength": 300,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "criteriaOptions": {
            "description": "Every criteria offered, in the order shown.",
            "items": {
              "ref": "games.cavu.tier-madness.defs#prompt",
              "type": "ref"
            },
            "maxLength": 5,
            "minLength": 1,
            "type": "array"
          },
          "criteriaPicker": {
            "format": "did",
            "type": "string"
          },
          "game": {
            "maxLength": 64,
            "type": "string"
          },
          "items": {
            "description": "The cards, in deal order.",
            "items": {
              "ref": "games.cavu.tier-madness.defs#item",
              "type": "ref"
            },
            "maxLength": 20,
            "minLength": 1,
            "type": "array"
          },
          "prompt": {
            "description": "The criteria picked: what this round's placements rate.",
            "ref": "games.cavu.tier-madness.defs#prompt",
            "type": "ref"
          },
          "round": {
            "maximum": 20,
            "minimum": 1,
            "type": "integer"
          },
          "source": {
            "description": "Where the category came from, e.g. its Wikipedia category page.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "game",
          "round",
          "category",
          "criteriaPicker",
          "criteriaOptions",
          "prompt",
          "items",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "games.cavu.tier-madness.round",
  "lexicon": 1
}
```
