cafe.thunderbird.prism.game

One finished game of Prism (a dice puzzle web tile), saved by its player to their own account. Written by the host page the game ran in, which fills in the game's address and version from the tile it actually ran. Anyone can check it: the tile's engine.wasm replays the moves on the game's dice (from the day, or from the seed) and must give exactly this board and score.

Repository @thunderbird.cafe did:plc:6vxjigxrqizmbo56gojxico3 not from the namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityprism.thunderbird.cafe
Commit rev3n2wvwim53c2t
Indexed
cid bafyreichiyo7zky7v3zhp6m7jqtv3ldbkbcxsudd5luwcx3hmdnfvqrsy4

Checks

Valid
  • unlimited-string defs.main.record.properties.modeNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One finished game of Prism (a dice puzzle web tile), saved by its player to their own account. Written by the host page the game ran in, which fills in the game's address and version from the tile it actually ran. Anyone can check it: the tile's engine.wasm replays the moves on the game's dice (from the day, or from the seed) and must give exactly this board and score.",
      "key": "tid",
      "record": {
        "properties": {
          "board": {
            "description": "The finished board, 12 cells row by row from the top left: a die as colour-number (red, lemon, teal or violet; 1 to 6), e.g. \"teal-3\", or \"empty\".",
            "items": {
              "maxLength": 8,
              "type": "string"
            },
            "maxLength": 12,
            "minLength": 12,
            "type": "array"
          },
          "createdAt": {
            "description": "When the game was saved.",
            "format": "datetime",
            "type": "string"
          },
          "day": {
            "description": "A daily game's day, YYYY-MM-DD (the America/Denver calendar day). Its dice come from the seed the engine works out for it (seed_for_day).",
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "empty": {
            "description": "Cells left empty.",
            "maximum": 12,
            "minimum": 0,
            "type": "integer"
          },
          "engine": {
            "description": "The CID of the engine (the tile's /engine.wasm) that checked the game, when the host ran it.",
            "format": "cid",
            "type": "string"
          },
          "filled": {
            "description": "Cells filled.",
            "maximum": 12,
            "minimum": 0,
            "type": "integer"
          },
          "game": {
            "description": "The Prism tile that played the game: its ing.dasl.masl record's address and exact version.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "mode": {
            "description": "daily: the day's dice, the same for everyone (carries day, never seed). free: free play, dice from its own seed (carries seed, never day).",
            "knownValues": [
              "daily",
              "free"
            ],
            "type": "string"
          },
          "moves": {
            "description": "Every placement in order: which die in the pool (0 to 3, among the dice left, in the order cast) times 12, plus the cell (0 to 11, row by row from the top left).",
            "items": {
              "maximum": 47,
              "minimum": 0,
              "type": "integer"
            },
            "maxLength": 24,
            "minLength": 1,
            "type": "array"
          },
          "rainbowRows": {
            "description": "Full rows with all four colours.",
            "maximum": 3,
            "minimum": 0,
            "type": "integer"
          },
          "score": {
            "description": "The score: +1 per filled cell, -1 per empty cell, +3 per rainbow row.",
            "maximum": 21,
            "minimum": -12,
            "type": "integer"
          },
          "seed": {
            "description": "A free-play game's seed.",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "game",
          "mode",
          "moves",
          "board",
          "filled",
          "empty",
          "rainbowRows",
          "score",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "cafe.thunderbird.prism.game",
  "lexicon": 1
}