games.atplay.game.createTurn
Publish a turn. The appview writes it to the caller's repo, from where the other players pick it up. Actions may be empty for the negotiation steps middleware drives (ADR 0028). The caller must have stored any secrets this turn depends on first (ADR 0030).
Details · procedure
| Kind | procedure |
|---|---|
| Authority | game.atplay.games |
| Indexed |
Procedure
procedure · POSTInput
application/jsonactions
arrayThe actions taken by this player in this game, created & interpretable by the game logic (but ideally also human readable). May be empty: setup negotiation (commit/reveal, shuffles) advances the state without any human action.
maxLength: 1024
follows
arrayThe record(s) that this new game state is based upon. This is usually the single previous turn (or the invitation, for the first turn), but for games where turns can be taken parallel for a given round, this may contain more than one record.
minLength: 1
game
refinvitation
refReference to the game invitation record
nextPlayers
arrayArray of DIDs for the next player(s) to take a turn. Duplicates state.individual.[].player (where active is true) so appviews can answer 'whose turn is it' without deserialising the state. Absent means the game is over.
minLength: 1
state
refSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
games.atplay.game.turn
recordA turn
-
games.atplay.game.createInvitation
procedureInvite other players to a game. The appview writes the invitation to the caller's repo, where the invitees will find it. The state must already be the output of the initiator's own first resolve (see ADR 0006).
-
games.atplay.game.invitation
recordAn invitation to play a game, with everything needed to execute it