cafe.thunderbird.contagion.game

One finished game of Contagion (a push-your-luck dice web tile, from House Dice), 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: give the tile's engine.wasm the essentials (mode, day or seed, moves) and it must answer with exactly the other fields (its standard question, std_check_daily or std_check_free).

Details · record, key tid
Kindrecord
Record keytid
Authoritycontagion.thunderbird.cafe
Commit rev3n33t2qqf322g
Indexed

Record

record · key tid

Properties

createdAt

requiredstring · datetime

When the game was saved.

day

string

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).

  • minLength: 10
  • maxLength: 10

ending

requiredstring

How the game ended: bank (the player banked); emptied (a keep set aside the last dice); stuck (a roll left nothing that could be kept: 1 if contained, otherwise 0, no bonuses).

  • knownValues: bank | emptied | stuck

engine

string · cid

The CID of the engine (the tile's /engine.wasm) that checked the game, when the host ran it.

exhaustionBonus

requiredboolean

A keep emptied the grid, and contained (+1).

fullSetBonus

requiredboolean

All three resource types kept, and contained (+3).

game

requiredref

The Contagion tile that played the game: its ing.dasl.masl record's address and exact version.

grid

requiredarray

The grid at the end, 16 cells row by row from the top left: the face of a die still on it, or empty.

  • minLength: 16
  • maxLength: 16
itemsstring
  • enum: empty | defense | home | hospital | water

kept

requiredref

How many dice of each face were set aside.

Reference

mode

requiredstring

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

moves

requiredarray

Every move in order (the opening roll isn't one): a keep (defense, home, hospital or water), then roll or bank. The engine numbers these words 0 to 5 in the order listed here, so a host turns each word into its position in this list before asking the engine.

  • minLength: 0
  • maxLength: 32
itemsstring
  • enum: roll | bank | defense | home | hospital | water

pass

requiredboolean

Contained: defense at least as many as contamination.

resourceCount

requiredinteger

Home, hospital and water dice kept (the real count, also when not contained).

  • minimum: 0
  • maximum: 16

score

requiredinteger

The score: if contained, the resources kept, +3 for all three resource types, +1 for emptying the grid, at least 1 (a stuck game scores 1); otherwise 0.

  • minimum: 0
  • maximum: 20

seed

integer

A free-play game's seed.

  • minimum: 0
  • maximum: 4294967295

#kept

object

Properties

contamination

requiredinteger
  • minimum: 0
  • maximum: 16

defense

requiredinteger
  • minimum: 0
  • maximum: 16

home

requiredinteger
  • minimum: 0
  • maximum: 16

hospital

requiredinteger
  • minimum: 0
  • maximum: 16

water

requiredinteger
  • minimum: 0
  • maximum: 16

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • cafe.thunderbird.prism.game

    record not from the namespace authority

    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.

  • One finished run of Cosmic Junkyard (a web tile game), 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. With moves, anyone can replay the run on its day's course to check its score.