Big & Small: I Bet First, the Dice Roll After. Can the Server Snipe Me?
Wager admission does not use the dice result. The dice come from the committed server seed and active wager seeds. Here is how to verify a roll and your own settlement.
Learn by playing: open Big & Small in your browser, no download needed.
Play Big & SmallHistorical implementation. This article describes the first version that added player seeds. See the browser game guide for signed wager receipts, the public pulse after betting closes, and signed voids.
The Big & Small implementation described here does not use your choice of Big or Small to roll the dice. Each round publishes a commitment to the server seed first. Before sending a new wager, your browser saves a local receipt and submits its own random seed. The server rolls the shared dice from its seed and those of the accepted wagers still in the round. It cannot predict a result that includes your new seed before receiving it.
Here is how a round rolls, how the server accepts and settles a wager, and how to verify your own wager. Sources are listed at the end; the draw code and the verifier are open source.
1. What exactly is the worry?
“Sniping” usually means one of two things:
- Changing the result after seeing the bet: you bet Big, so the server rolls Small.
- Knowing the result first and acting on it: the server computes the dice in advance, then picks an outcome that hurts you, or refuses your wager when it would win.
The server checks the seat, round, deadline, wager revision, stake, balance, commitment and seed format. The admission code has no branch that refuses a wager based on the dice or whether it would win. Once the last eligible seed arrives, the server has the inputs needed to compute the dice. See section 4.
2. How a round is rolled
- Commit first. At the start of each round the server draws a 32-byte server seed from the operating system’s cryptographic random source and publishes only its SHA-256 commitment. The commitment is sent in the table state. The server checks that each new wager carries that round’s commitment.
- Your wager carries your seed. Your browser generates a 32-byte seed for a new wager. A retry of the same wager at the same revision uses the same seed. Before sending, the browser saves a local receipt holding the commitment, your wager and this seed.
- The server checks the commitment. A wager is refused if its commitment differs from the round’s or it carries no seed.
- Roll. At automatic tables, the round can roll early once every seated human confirms a wager. Otherwise it rolls after the eight-second countdown. At manual tables, an eight-second countdown is followed by a five-second reveal window, with an automatic roll at the end. New wagers close in the last second of the eight-second countdown. The server sorts and deduplicates the seeds from the active wagers, combines them, and draws three dice from 1 to 6 with the published rejection-sampling algorithm.
- Publish. After the roll the server publishes its seed and the player seeds used in the round. Anyone can replay the dice with the same algorithm.
3. Why the same inputs always give the same dice
It cannot be changed: the server seed is locked by the commitment before you bet. A different seed would not match the commitment. Your browser saved the commitment it saw before you bet, so the verifier would reject the round.
It cannot be known in advance: the dice depend on the server seed and on every bettor’s seed. Your new seed first leaves your browser with the wager. Before that, the server cannot predict a result that includes it. The server seed was locked before your seed existed, so the server cannot pick a server seed to suit your seed either. As long as your seed is random, the server cannot predict a result that includes it before receiving it.
The dice code does not read bets: the function that draws the dice takes only seeds as input. It sees no account, no side, no stake and no balance, and it has no “lose after a winning streak” or “big bets win less” branch. Wagers are used only after the dice exist, to settle wins and losses.
AI co-bettors are not aimed at you: an AI co-bettor’s side and stake are chosen at random when the round starts, before the dice exist. They move only their own display chips, are not part of the house result and do not affect your payout. Every wager settles against the house at fixed odds, so what others bet does not change what you win.
4. Wager confirmation, voids and seed checks
- Confirmation and settlement are separate. A successful response means the room accepted the wager in memory. Bean rooms reserve the stake and settle the net result later. A process restart without a restored handoff voids the round if settlement was still pending and releases its reservations. A successful handoff can restore the round. After settlement, check the table result. Players in bean rooms can also check their bean history.
- The seed list has no independently signed wager list. Seeds arrive with the wagers, so the server can compute the outcome of a given set once it has the inputs. Admission in the current code follows the game rules. The proof carries no signed wager list for checking who supplied the other seeds, and it cannot audit requests that were never accepted. Counting seeds is a cross-check. AI co-bettors supply no seed.
Beans are in-game points with no cash value. They cannot be withdrawn or cashed out.
5. Why it can still feel like you always lose
A total of 4–10 is Small and 11–17 is Big. When all three dice match (a triple), both Big and Small lose. Each wager therefore wins with probability 105/216, about 48.6%, and loses about 51.4% of the time. A win returns twice the stake (stake included), so the long-run return is about 97.2%. In bean rooms a winning wager also has a 1-in-10,000 chance at a 10-bean jackpot, which barely changes the average.
Losing streaks are more common than they feel. Five losses in a row has a probability of about 3.6%, yet over 100 wagers the chance of at least one 5-loss streak is about 85%, a 7-loss streak about 36%, and a 10-loss streak still about 5.6%. Dice have no memory: a Big roll does not make Small more likely next time.
6. How to check a round yourself
- On a Big & Small table, open “Players at the table · Recent rolls · Draw proof” from the menu. The round’s draw proof is at the top.
- After the roll, choose “Verify in Tools” to open the Fairness Verifier. You can also download the proof and receipt and import them later. Your browser recomputes the dice locally using the open-source draw verifier.
- The public proof lets you recompute the commitment and dice. A settlement proof with your wager details, paired with your local receipt, also checks your seed, side, stake, result, base net payout and any 10-bean jackpot. Jackpot credits appear separately in the bean history. If you only have the public proof, check your own table result to see whether your wager settled.
- If you would rather not use our page, build the
draw-verifycommand-line verifier from the open-source repository and check offline:draw-verify draw-proof.json --receipt draw-pre-bet-receipt.json.
The browser you bet from keeps up to 256 receipts for up to 30 days. A downloaded receipt can be imported in another browser or used with the offline verifier. If you lose the receipt, you can still replay the dice. Checking your pre-wager commitment and personal seed requires the original receipt.
Sources and what is published
The draw rules and verification code are in the draw-games/ folder of the AGPL-3.0 repository CisaSettle/bluffking, linked below at the public commit checked for this article:
- verifier/src/proof.rs: commitments, reveals and the random stream.
- verifier/src/sicbo.rs: combining player seeds, drawing the three dice, and the Big/Small rules.
- verifier/src/document.rs: checking a draw proof against a pre-draw receipt.
The live release manifest identifies the commit and release for each production component. The build pins its source commit, and the release checks that the published source subset matches the corresponding build inputs byte for byte. That subset includes the draw algorithm and verifier. Room admission and wallet settlement belong to the application backend. See the Big & Small page for rules and odds.