Hackware

Switch to dark theme

minigame

Freeform minigame state — a named game and whatever data it needs to move.

Freeform state for client minigames: a named game and whatever data that game needs to move between participants. Part of the IRC schema reference.

{
	"type": "minigame",
	"game": "tictactoe",
	"gamedata": {
		"board": "x..o..x..",
		"turn": "o"
	}
}
FieldTypeConstraints
type"minigame"Discriminator
gamestringWhich game this belongs to
gamedataanyEntirely game-defined — the mesh does not inspect it
Note

gamedata is the one deliberately unvalidated field in the union. The mesh relays it as-is; both ends of a game have to agree on its shape themselves.