# ink.igav.galaxius.temp.result

> Published by [galaxius-gm.igav.ink](https://lexicon.garden/identity/did:plc:whg4cehv5lzx6yorjkwzbk56)

✓ This is the authoritative definition for this NSID.

## Description

The final record of a Galaxius game: the last period, the outcome and the standings.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:whg4cehv5lzx6yorjkwzbk56/ink.igav.galaxius.temp.result)
- [Documentation](https://lexicon.garden/lexicon/did:plc:whg4cehv5lzx6yorjkwzbk56/ink.igav.galaxius.temp.result/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:whg4cehv5lzx6yorjkwzbk56/ink.igav.galaxius.temp.result/examples)

## Definitions

### `ink.igav.galaxius.temp.result`

**Type**: `record`

A result record, written by the game master when a game ends.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `game` | `ref` → `com.atproto.repo.strongRef` | Yes | A strongRef to the game this is the result of. |
| `outcome` | `string` | Yes | How the game ended. |
| `period` | `ref` → `com.atproto.repo.strongRef` | No | A strongRef to the game's last period; absent when no period was published. |
| `revealedKey` | `string` | No | The revealed game key, for M4's encrypted periods. |
| `standings` | `array` | Yes | The final standings, in the game master's order. |

### `ink.igav.galaxius.temp.result#standing`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `rank` | `integer` | Yes | The seat's final rank, one being the winner. |
| `seat` | `integer` | Yes | The seat's number. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A result record, written by the game master when a game ends.",
      "key": "any",
      "record": {
        "properties": {
          "game": {
            "description": "A strongRef to the game this is the result of.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "outcome": {
            "description": "How the game ended.",
            "knownValues": [
              "finished",
              "abandoned",
              "broken"
            ],
            "maxGraphemes": 32,
            "type": "string"
          },
          "period": {
            "description": "A strongRef to the game's last period; absent when no period was published.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "revealedKey": {
            "description": "The revealed game key, for M4's encrypted periods.",
            "maxLength": 128,
            "type": "string"
          },
          "standings": {
            "description": "The final standings, in the game master's order.",
            "items": {
              "ref": "#standing",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          }
        },
        "required": [
          "game",
          "outcome",
          "standings"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "standing": {
      "properties": {
        "rank": {
          "description": "The seat's final rank, one being the winner.",
          "minimum": 1,
          "type": "integer"
        },
        "seat": {
          "description": "The seat's number.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "seat",
        "rank"
      ],
      "type": "object"
    }
  },
  "description": "The final record of a Galaxius game: the last period, the outcome and the standings.",
  "id": "ink.igav.galaxius.temp.result",
  "lexicon": 1
}
```
