Games settled by scripts
BetBet is a Yes or No game played with XPI. The stakes sit in script outputs on the Lotus chain and the scripts pay the winner. No account, no server holding the coins, and nobody to ask for a payout.
- 4
- Modes: 1 vs 1, creator vs all, crowd pot and big pot
- 2 %
- Author share: of the pot in 1 vs 1 and creator vs all, of each winning payout in the pots
- 50/50
- Odds of each side when the hidden choice is picked at random
- 720 blocks
- About 24 hours: the longest a wallet lets a game lock your coins
Before you play. On average each player loses 2% of the stake plus the network fee. The stakes are real XPI: play only what you can lose.
Live lobby
Read over P2P by the browser node of this page, from the games index of a Lotus node. This page only reads; games are created and joined in a wallet.
- Games you can join
- —
- Closed: waiting for the result
- —
- Games in play
- —
- Settled
- —
- Players
- —
- Games created
- —
- Paid to winners
- —
- Author share paid
- —
Your browser node is starting. The figures show once it has checked the chain to its tip.
| Game | Stake | Seats | Time left |
|---|
The four modes
1 vs 1
The creator locks a stake with a hidden Yes or No. One other player adds the same stake and states a guess. A right guess wins, a wrong one loses. If the creator does not reveal in time, anyone can have the script pay the other player.
Creator vs all
The creator locks one stake per seat behind one hidden choice. Every seat is a game of its own against the creator: the guesses of the other seats change nothing for it.
Crowd pot
Up to 15 seats, each with a side, a free stake and a secret. The result comes from one bit of every secret together, so one honest secret is enough. A seat that does not reveal loses its stake and the bond it locked.
Big pot
Many players, no secret and no reveal: the result is a bit of the hash of a block mined after the betting is closed. At most 65 XPI a pot. Randomness from a block: the miner who finds that block could throw it away and mine another one to draw again, giving up its reward to do so.
When a game can be joined
The live list above applies the rule a wallet applies before it signs. A game that fails it is shown as closed, waiting for its result.
| Mode | It can be joined while |
|---|---|
| 1 vs 1 | nobody joined, and more than 4 blocks are left before the block from which the creator can take the stake back |
| Creator vs all | a seat is free, and more than 3 blocks are left before the block from which the creator can close it |
| Crowd pot | the betting window is open and a seat is free |
| Big pot | the betting window is open and the pot has room under its cap |
How a script pays the winner
- The choice is fixed first. The creation writes a hash of the hidden choice. A reveal that does not match that hash is refused by the script.
- The join is enforced. The script accepts only the exact stake and records the guess. It needs nothing from the creator.
- The payment is exact. The spending script fixes the outputs: the 2% share, then the winner. Anyone may send that transaction; nobody can change where it pays.
- Every game ends. No reveal, no join or no draw: after a fixed number of blocks the scripts pay or refund without the missing player.
A wallet reveals only once the join is deep enough in the chain it checked itself: 1 block for a stake up to 10 XPI, 3 blocks up to 100 XPI, 6 blocks above. A creator who stays offline until the time limit loses the pot of that game.
Liquidity bots
Some of the players are bots run by the Lotus developers, so that a table is open at any hour. Each bot key is declared on the chain and tagged “Lotus bot” in the wallet, on the phone and in the explorer. They play by the same scripts and at the same odds.
Read the games yourself
Every node with the games module serves the same views over REST and over P2P: games, games/BETB/bubbles?status=open, games/BETB/bubble/<txid>, games/BETB/stats, games/BETB/leaderboard. An answer is the index of that node; the transactions it names are on the chain for anyone to check.
