at.turtleme.game.castReef
Anchor over a fresh reef. The board is made empty and the shoal goes down on the first sweep, clear of it, so the patch a round opens with is never the one that ends it. A patch named with the cast is that first sweep, settled in the same call, and the outcome carries what it opened as sweepReef's would. Where the shoal lies is never sent: the whole reason this is settled here is that a board laid out in the page is a board whose shoal is sitting in memory. Anchoring over a board that is still being played hands that board back as it was left, with `resumed` set and every opened patch and what the open numbers prove in the outcome, and sweeps nothing: the patch named with the cast was tapped on an empty reef. The only ways off a board are to finish it or to leave it, and both rest. Requires an atproto service auth token addressed to did:web:turtleme.at#turtle_game and naming this method, so a token issued for one call cannot be spent on another.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | game.turtleme.at |
| Indexed |
Procedure
procedure · POSTInput
application/jsonacross
integerHow many patches across the board is. Which reef to play is the player's preference; an unknown size falls back to the middle one. The two past sixteen are only offered by the page on a desk, but the server lays them for anyone who asks.
minimum: 4maximum: 24
patch
integerThe patch that was tapped to start the board, opened in the same call. Optional: without it the board is anchored and nothing opens until the first sweepReef. One that is not on the board leaves the board anchored and unopened.
minimum: 0
Output
application/jsonschema
refSimilar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
at.turtleme.game.sweepReef
procedureSweep one patch of the reef, or the handful a chord opens, in the order given. What comes back is the patches that opened and what each one counts. While the board is still being played it also carries the covered patches the open numbers already prove safe, with what each of those counts, so a page can open one the moment it is tapped: a player could open every one of them at no risk and read the same counts. Where the shoal lies is not sent until the board is over. Sweeping a patch with a turt
-
at.turtleme.game.leaveReef
procedureUp anchor and leave the shoal where it lies. Nothing comes aboard, because a board pays the whole shoal or it pays nothing, and the water wants the same wait it would after any other ending. Requires an atproto service auth token addressed to did:web:turtleme.at#turtle_game and naming this method, so a token issued for one call cannot be spent on another.
-
at.turtleme.game.castSpot
procedureStand over a fishing spot. Casting at one that has not yet wandered off does not move it, the same way setting a net that is already out does not restart it. When a spot leaves is drawn from the moment it arrived, so the page and turtle meat work out the same answer and neither has to tell the other. Requires an atproto service auth token addressed to did:web:turtleme.at#turtle_game and naming this method, so a token issued for one call cannot be spent on another.
-
at.turtleme.game.cast
procedureCast out and start a run of strikes. The reply carries the seed every window of the run is drawn from, so the page can render the bar without being able to widen it or move the gold sliver. A cast while the water is still resting is refused. A cast while a run is still being played hands that run back, streak, strikes left and all, rather than starting another, so a page that lost sight of a run carries on with it and leaving a cast hanging is still not a way to fish without ever resting. A run
-
at.turtleme.game.fishSpot
procedureOne cast at the fishing spot. Whether it catches anything, and whether what it catches is a sea turtle, are turtle meat's rolls and not the caller's. A cast takes four ticks and casting again inside that is refused, as is casting at a spot that has already wandered off. Requires an atproto service auth token addressed to did:web:turtleme.at#turtle_game and naming this method, so a token issued for one call cannot be spent on another.