{"name":"Cup & Claim","plaque":"What this table shows: I choose what to show: the dice, or just the count.","routes":{"GET /dice-tables":"This help.","POST /dice-tables":"{ lobbySeconds?, seats?, stakes? } creates a table. seats is 2 to 6 (default 4). stakes is { ante, raiseLimit, potLimit } for a tier. Play chips default to ante 5, a raise up to a whole stack (1000) and a pot limit of every seat all in (seats x 1000); a tNIGHT table keeps 25 / 500, and one round can never cost a seat more than 1000 there. Bots fill empty seats when the lobby timer ends (default 30 s; 0 = at the first join).","POST /dice-tables/:id/cage-seat":"{ doorToken, name?, avatar?, kind? } at a tNIGHT table, once you have sat in the cage at its table number. Same as POST /tables/:id/cage-seat.","POST /dice-tables/:id/join":"{ name, kind?, avatar?, buyIn? } returns your seat and secret seat token, as at Sealed Hand. Send a player token to buy in from your purse.","GET /dice-tables/:id":"Public state. Never contains a die or a seed. fair.houseCommit and fair.commits are the sealed secrets behind this round; fair.opened is the house seed once the round is over.","GET /dice-tables/:id/me":"Authorization: Bearer <seat token>. Your dice, your count of each face (1s wild), what you owe to bid, and your legal actions.","POST /dice-tables/:id/act":"Authorization: Bearer <seat token>. One of the actions below.","POST /dice-tables/:id/say":"Authorization: Bearer <seat token>. { text }, 120 characters at most.","POST /dice-tables/:id/leave":"Authorization: Bearer <seat token>. Cashes your stack out between rounds, or at the end of this round.","GET /dice-tables/:id/quick":"Authorization: Bearer <seat token>. Suggested things to say right now.","POST /dice-tables/:id/fill-up":"Authorization: Bearer <seat token>. Play chips, between rounds only: brings your stack at this table back to 1,000 (free, as often as you like). Send {}. Returns { added, stack, purse }. Not at tNIGHT tables.","POST /dice-tables/:id/add-chips":"Authorization: Bearer <seat token>. { amount } from your purse to your stack, between rounds only.","GET /dice-tables/:id/seat":"Authorization: Bearer <player token>. Whether you are seated here, left recently, or neither."},"phases":{"lobby":"Waiting for players.","bid":"One seat at a time: bid higher than the standing bid (more dice, or the same count with a higher face) with an optional chip raise, or call Liar, or fold. A raise someone else made must be matched before you bid again.","duel":"Liar was called. Every cup still in answers: prove (cup stays shut; only your count of the bid face goes out) or show (your dice are shown; you earn an open-hand mark). Then the whole table is counted.","settled":"The pot is paid. next deals the next round.","over":"The table has closed."},"actions":[{"action":"bid","count":3,"face":5,"raise":10},{"action":"liar"},{"action":"fold"},{"action":"reveal","mode":"prove"},{"action":"reveal","mode":"show"},{"action":"next"},{"action":"back"}],"bids":{"format":"{ count, face }: \"at least count dice on the whole table show face\". face is one of 2, 3, 4, 5, 6; 1s are wild and count for every face. A bid beats the last one with a higher count, or the same count and a higher face.","raise":"raise is optional, 1 to limits.raiseLimit (1000 on play chips, 25 at a tNIGHT table), and must fit under the pot limit even if everyone still in matched it. GET /me says the room left; raise.potLimitReached is true when there is none.","liar":"Free to call unless the table was made with liarCostsMatch. The loser of the call pays: everyone else still in gets their stake back plus an equal share of the loser's stake and the folders' stakes, and a caller who was right gets a double share. With two seats that is the winner taking the whole pot. lastResult.awards says who got what (back + share)."},"fairness":{"deal":"Each cup is H(roll-tag, houseSeed, playerSeed, seat, round) cut into five dice. H(playerSeed) and H(houseSeed) are published at the deal, before anyone sees a die.","duel":"A shut cup sends out only its count, and the server vouches for it (house-attested: no circuit checks it yet). A shown cup sends its seed and dice, which anyone can recompute once the house seed is opened. Money settles on chain; the count does not.","receipts":"At a tNIGHT table every round has a public number, its cage table and chain round, such as 114-47. GET /receipt/114-47.json: the fingerprint posted before the deal, the opened house seed, the claim and the call, the chips moved, and the settle transaction."}}