games.cavu.haikuDay

chris.pardy.family

Documentation

gradedLine object

No description available.

Properties

tiles array of ref#gradedTile Required

No description available.

View raw schema
{
  "properties": {
    "tiles": {
      "items": {
        "ref": "#gradedTile",
        "type": "ref"
      },
      "type": "array"
    }
  },
  "required": [
    "tiles"
  ],
  "type": "object"
}
gradedTile object

No description available.

Properties

correct boolean Required

No description available.

id string Required

No description available.

maxLength: 32 bytes
View raw schema
{
  "properties": {
    "correct": {
      "type": "boolean"
    },
    "id": {
      "maxLength": 32,
      "type": "string"
    }
  },
  "required": [
    "id",
    "correct"
  ],
  "type": "object"
}
intent union

No description available.

Open union
View raw schema
{
  "refs": [
    "#place",
    "#submit"
  ],
  "type": "union"
}
place object

Move a tile. 0 = the bank, 1-3 = poem lines. The missing word ('missing') may be placed once per line.

Properties

from integer Required

No description available.

minimum: 0maximum: 3
index integer Optional

1-based insert position in the target line after removal from the source; default end.

minimum: 1
item string Required

No description available.

maxLength: 32 bytes
to integer Required

No description available.

minimum: 0maximum: 3
type string Required

No description available.

View raw schema
{
  "description": "Move a tile. 0 = the bank, 1-3 = poem lines. The missing word ('missing') may be placed once per line.",
  "properties": {
    "from": {
      "maximum": 3,
      "minimum": 0,
      "type": "integer"
    },
    "index": {
      "description": "1-based insert position in the target line after removal from the source; default end.",
      "minimum": 1,
      "type": "integer"
    },
    "item": {
      "maxLength": 32,
      "type": "string"
    },
    "to": {
      "maximum": 3,
      "minimum": 0,
      "type": "integer"
    },
    "type": {
      "const": "place",
      "type": "string"
    }
  },
  "required": [
    "type",
    "item",
    "from",
    "to"
  ],
  "type": "object"
}
result object

Present only after this viewer submits. Reveals the solution.

Properties

decoy string Required

No description available.

maxLength: 64 bytes
lines array of ref#gradedLine Required

No description available.

max_score integer Required

No description available.

minimum: 0
missing ref #word Required

No description available.

score integer Required

No description available.

minimum: 0
solution array of ref#solutionLine Required

No description available.

View raw schema
{
  "description": "Present only after this viewer submits. Reveals the solution.",
  "properties": {
    "decoy": {
      "maxLength": 64,
      "type": "string"
    },
    "lines": {
      "items": {
        "ref": "#gradedLine",
        "type": "ref"
      },
      "type": "array"
    },
    "max_score": {
      "minimum": 0,
      "type": "integer"
    },
    "missing": {
      "ref": "#word",
      "type": "ref"
    },
    "score": {
      "minimum": 0,
      "type": "integer"
    },
    "solution": {
      "items": {
        "ref": "#solutionLine",
        "type": "ref"
      },
      "type": "array"
    }
  },
  "required": [
    "score",
    "max_score",
    "lines",
    "missing",
    "solution",
    "decoy"
  ],
  "type": "object"
}
scoreDetails object

games.cavu.score `details` for Haiku Day: the puzzle number and which tiles were right, per line.

Properties

lines array of ref#scoreLine Required

No description available.

maxLength: 3 itemsminLength: 3 items
number integer Required

No description available.

minimum: 1
View raw schema
{
  "description": "games.cavu.score `details` for Haiku Day: the puzzle number and which tiles were right, per line.",
  "properties": {
    "lines": {
      "items": {
        "ref": "#scoreLine",
        "type": "ref"
      },
      "maxLength": 3,
      "minLength": 3,
      "type": "array"
    },
    "number": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "number",
    "lines"
  ],
  "type": "object"
}
scoreLine object

No description available.

Properties

correct array of boolean Required

No description available.

maxLength: 32 items
View raw schema
{
  "properties": {
    "correct": {
      "items": {
        "type": "boolean"
      },
      "maxLength": 32,
      "type": "array"
    }
  },
  "required": [
    "correct"
  ],
  "type": "object"
}
solutionLine object

No description available.

Properties

words array of ref#word Required

No description available.

View raw schema
{
  "properties": {
    "words": {
      "items": {
        "ref": "#word",
        "type": "ref"
      },
      "type": "array"
    }
  },
  "required": [
    "words"
  ],
  "type": "object"
}
submit object

Grade the current lines. One try per day.

Properties

type string Required

No description available.

View raw schema
{
  "description": "Grade the current lines. One try per day.",
  "properties": {
    "type": {
      "const": "submit",
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
tile object

No description available.

Properties

id string Required

No description available.

maxLength: 32 bytes
syllables integer Required

No description available.

minimum: 1
text string Required

No description available.

maxLength: 64 bytes
View raw schema
{
  "properties": {
    "id": {
      "maxLength": 32,
      "type": "string"
    },
    "syllables": {
      "minimum": 1,
      "type": "integer"
    },
    "text": {
      "maxLength": 64,
      "type": "string"
    }
  },
  "required": [
    "id",
    "text",
    "syllables"
  ],
  "type": "object"
}
view object

project(state, viewer). `none` when no puzzle is scheduled for the day.

Properties

date string Required

No description available.

maxLength: 10 bytes
lines array of array Optional

No description available.

maxLength: 3 itemsminLength: 3 items
max_score integer Optional

No description available.

minimum: 0
missing_id string Optional

No description available.

maxLength: 32 bytes
next_at integer Optional

Next puzzle, ms since epoch (UTC midnight).

none boolean Optional

No description available.

number integer Optional

No description available.

minimum: 1
result ref #result Optional

No description available.

tiles array of ref#tile Optional

No description available.

View raw schema
{
  "description": "project(state, viewer). `none` when no puzzle is scheduled for the day.",
  "properties": {
    "date": {
      "maxLength": 10,
      "type": "string"
    },
    "lines": {
      "items": {
        "items": {
          "maxLength": 32,
          "type": "string"
        },
        "type": "array"
      },
      "maxLength": 3,
      "minLength": 3,
      "type": "array"
    },
    "max_score": {
      "minimum": 0,
      "type": "integer"
    },
    "missing_id": {
      "maxLength": 32,
      "type": "string"
    },
    "next_at": {
      "description": "Next puzzle, ms since epoch (UTC midnight).",
      "type": "integer"
    },
    "none": {
      "type": "boolean"
    },
    "number": {
      "minimum": 1,
      "type": "integer"
    },
    "result": {
      "ref": "#result",
      "type": "ref"
    },
    "tiles": {
      "items": {
        "ref": "#tile",
        "type": "ref"
      },
      "type": "array"
    }
  },
  "required": [
    "date"
  ],
  "type": "object"
}
word object

No description available.

Properties

syllables integer Required

No description available.

minimum: 1
text string Required

No description available.

maxLength: 64 bytes
View raw schema
{
  "properties": {
    "syllables": {
      "minimum": 1,
      "type": "integer"
    },
    "text": {
      "maxLength": 64,
      "type": "string"
    }
  },
  "required": [
    "text",
    "syllables"
  ],
  "type": "object"
}

Lexicon Garden

@