The maths of SWEET
How the payout works, why the return is exactly 96.5%, what the top prize is and how often it lands, why no betting or playing strategy can push those odds up, and how to play best. exact means proven or computed; measured means taken from simulations run on the game's own code.
1. The round
You bet B ∈ {5, 10, 25, 50} and get 10 moves on a shaped board, with 5 kinds of fruit per round. Each round draws one of 172 original shapes (heart, egg, tower, castle, ring and more) on an 8 × 11 grid; some have stones that never move, match or clear. The shape is drawn by the cryptographic generator after the bet is taken, so nobody can choose a bet by the shape. Your round score is S. At the end:
Golden multiplier exact
| G | ×1 | ×2 | ×3 | ×5 | ×10 | ×25 | ×100 | ×400 | ×40,000 |
|---|---|---|---|---|---|---|---|---|---|
| P(G) | 81.14599% | 10% | 5% | 2.5% | 1% | 0.3% | 0.05% | 0.004% | 0.00001% |
G does not depend on the board, your moves, your bet or your history. It comes from the browser's cryptographic generator (crypto.getRandomValues).
2. The top prize
For a player who always takes the hint, P(m = 25) was measured over 60,000 independent rounds on randomly drawn shapes: 80 hits, or 0.133% ± 0.015%. measured
| Win of at least | Chance per round | About once every |
|---|---|---|
| ×10 the bet | 1.96% | 51 rounds |
| ×100 the bet | 0.041% | 2,443 rounds |
| ×1,000 the bet | 7.6·10⁻⁶ | 131 thousand rounds |
| ×10,000 the bet | 9.7·10⁻⁸ | 10.3 million rounds |
| ×100,000 the bet | 4.3·10⁻⁹ | 234 million rounds |
| ×1,000,000 the bet | 1.3·10⁻¹⁰ | 7.5 billion rounds (95%: 6.1–9.5 billion) |
For comparison, typical online slots put their ×5,000–×50,000 top prize at one in millions to tens of millions of spins. ×1,000,000 here is a headline ceiling: at one round every 10 seconds, around the clock, one player would wait about 2,400 years on average. With tens of thousands of players someone will hit it; section 9 shows how often and why that is already paid for.
3. RTP
Return to player is the average payout per unit staked:
Hint player at s = 1 measured, 200,000 rounds
| Step | Points from | P(step) | ± 95% | Share of RTP |
|---|---|---|---|---|
| ×0 | 0 | 52.33% | 0.22% | 0 |
| ×0.5 | 2,980 | 23.26% | 0.19% | 17.8% |
| ×1 | 3,870 | 12.10% | 0.14% | 18.5% |
| ×2 | 4,620 | 8.29% | 0.12% | 25.4% |
| ×4 | 5,710 | 3.02% | 0.08% | 18.5% |
| ×10 | 6,990 | 0.90% | 0.04% | 13.8% |
| ×25 | 9,040 | 0.110% | 0.015% | 4.2% |
The paytable was fitted on a separate 300,000 rounds to give 96.5% at s = 1. Check samples came out at 96.6%, 97.9% and 98.2%, within about two standard errors of the target. The controller removes the rest: for the hint player the scale hovers around 1.0 (0.93–1.17) over long runs.
4. The controller and the 96.5% theorem
After every round the paytable scale moves like this:
Theorem (invariant) exact
For any sequence of moves and bets over a player's whole life:
Section 8 derives C from the game code and shows the upper clip ln 200,000 can never be reached. For a hint player L stays near 0, so in practice the figure is tens of coins.
Proof. Without clipping, each round moves L by exactly g·(E[X|m] − ρB). Sum over rounds: the left side is the total deviation, the right side is the total change in L. The lower clip only fires when the player is winning less than ρ; the part it drops favours the house, so the left side can only get smaller.
Corollary. Actual winnings = Σ E[X|m] + Σ (X − E[X|m]). The second sum adds up independent golden-multiplier deviations with mean 0. So as Σ B → ∞, Σ X / Σ B → 96.5% for any style of play, and the expected profit above 96.5% over a whole lifetime is capped by the constant C.
Checked on the game code measured, 16,000 rounds per strategy
| Strategy | Expected RTP | Σ deviation | ln s / g | Scale s |
|---|---|---|---|---|
| Always the hint, bet 10 | 96.43% | −113 | −113 | 0.89 |
| Greedy move, bet 10 | 96.10% | −641 | −641 | 0.53 |
| Random move, bet 10 | 95.99% | −810 | −810 | 0.44 |
| Always bet 5 | 95.56% | −756 | −756 | 0.47 |
| Always bet 50 | 96.51% | 86 | 86 | 1.09 |
| Bet 50 when thresholds are low, else 5 | 96.54% | 140 | 140 | 1.15 |
The "Σ deviation" and "ln s / g" columns match to the coin; that is the theorem. Before the rounding fix, bet 5 returned 99.35%: a 2.5-coin payout rounded up to 3 and the controller never saw it. It now counts exactly the coins that are paid.
5. The hint uses only what is on screen
Fruits "above the reel" do not exist in advance: each new fruit is created by the generator at the moment it falls. Nobody can know them, not the hint and not the game itself. The hint is a greedy one-move choice on the visible board. Looking deeper is pointless, because the next board depends on refills nobody knows.
6. How to play best
From the theorem: expected result = −3.5% · (everything staked) + (L_now − L_start)/g. The first term does not depend on the player; the second is bounded. So:
- Always take the highlighted move. The paytable is calibrated for hint play: with it, s stays near 1 and the return is 96.5% from the first round. Weaker play pulls s down to 0.4–0.6, and while the controller adjusts you lose about |ln s*| / g coins once: 640–820 for greedy or random play.
- Bet size does not change your expectation. RTP is 96.5% at 5, 10, 25 and 50.
- Small bets mean longer play. Over N rounds you lose 0.035·N bets on average. Leaving out the ultra-rare ×40,000 tail, the typical swing is ±6.5·√N bets. The smaller the bet, the longer your balance lasts.
- Big bets mean bigger absolute wins. ×1,000,000 at bet 50 is 50M coins; at bet 5 it is 5M. The odds are the same.
- Timing your bets does nothing. A bet of 50 "while thresholds are low" moves them ten times as far as a bet of 5. Tested: that strategy returned 96.54%.
- Resetting progress does not help. It puts s back to 1, which is the hint player's equilibrium anyway. For weaker play a reset hurts: you pay the transition loss again.
7. What is and isn't guaranteed
- The whole game runs in your browser. Balance and scale live in localStorage and can be edited by hand. For play money that does not matter. For real money or a shared leaderboard, the balance, generator and controller must run on a server.
- Resetting progress never adds coins (the balance stays as it is or drops to 200), so a new "life" cannot win you more. Clearing browser data is tampering with the client; see section 8.
- The free 50 coins every 30 seconds at zero balance are a source of coins outside the RTP. That is deliberate, so the game never ends.
- "Measured" figures carry sampling error, shown next to them. "Exact" figures do not depend on any simulation.
8. Proof: no strategy can raise the ×1,000,000 odds
Attacker model
- Knows every rule, all the code, every table and every past result.
- Chooses moves, bets and the timing of each bet; can play for years.
- Can collude with other players and share any information.
- In the strongest version, even knows in advance every fruit that will fall onto the board.
Assumptions
- The client is not tampered with. The game's code and data run as written (for real money: on a server).
- The browser's generator is secure.
crypto.getRandomValuesis a cryptographic generator: no amount of past output predicts the next value better than a guess. This is the standard assumption that HTTPS and bank keys rely on.
Lemma 1. The controller cannot be pinned at its ceiling exact
One cascade step scores at most 88·10·30 + 29·50 + 29·300 = 36,550 points: at most 88 cells (the full 8 × 11 shape), cascade level ≤ 30, at most 29 groups that make a special fruit or a crown. So one round, with 10 moves and at most 4 boosters (each usable once), scores S ≤ 14·30·36,550 = 15,351,000.
Every shape has k_L ≥ 0.2468. Above s = 15,351,000 / (2,980 · 0.2468) ≈ 20,873 even the ×0.5 step is out of reach on every shape: payout 0, E[X|m] = 0, and L can only fall. One round can raise L by at most g·(25·50·1.53146 − 0.965·50) = 1.866. So L ≤ ln 20,873 + 1.866 at all times, which means s ≤ 134,887 < 200,000.
The ceiling never fires, and the invariant in section 4 holds with C = (ln 20,873 + 1.866) / g = 11,812 coins. The lower clip only ever works against the player.
Lemma 2. The share of ×25 rounds is capped exact
For the ×25 step, 25·B·g is a whole number at every bet, so E[X | m = 25] = 25·B·μ with μ = E[G] = 1.53146. For every other step E[X | m] ≥ 0. Put that into the invariant:
This holds for every single history of play, not "on average": the controller reacts to what the player actually scored. So it holds even for an attacker who knows every future fruit. That knowledge only raises their thresholds.
Lemma 3. The golden multiplier cannot be predicted or re-rolled exact under the assumptions
- G is drawn with one fresh generator call after the last move, once the step m is final. It exists nowhere, in memory or anywhere else, before that.
- The payout is written to storage before the animation starts. Reloading the page shows the same result, never a new draw.
- Every write carries a version number. A tab holding an older copy refuses to write and reloads, so nobody can play the same coins in two tabs and keep the better result.
- Once G is drawn, the player has no action left that affects that round.
So G is independent of everything the player sees or decides, and P(G = 40,000) = 10⁻⁷ under any strategy.
Theorem exact under the assumptions
That is at most about 19 times the hint player's rate (1 in 7.5 billion), under any strategy, any knowledge and any collusion. Anyone who gets close to that ceiling pays for it with fewer low-step wins: the average return still stays at 96.5%.
Shapes measured
Each shape's k_L was fitted on hint-player rounds so that every shape pays the same expected table multiplier ρ/μ = 0.630. A fresh check of 12,000 rounds per imprecise shape keeps every one of the 172 within ±8% of that (most within ±4%). Six strategies over 30,000 rounds each on random shapes gave expected RTP 96.21–96.65% with the invariant exact to the coin; the bound in section 8 does not depend on the shape.
Check: a clairvoyant bot measured on the earlier 6 × 8 board
In the simulation the game took its fruits from a pre-recorded tape of random numbers, and the bot read the same tape. It knew every future fruit and picked the move that truly scored most, cascades included.
| Run | Expected RTP | Σ deviation = ln s / g | ×25 share | Lemma 2 cap |
|---|---|---|---|---|
| Bet 10, 20,000 rounds | 96.64% | 278 = 278 | 0.10% | 2.52% |
| Bet 50, 8,000 rounds | 96.57% | 272 = 272 | 0.14% | 2.52% |
Boosters measured
Hammer, bomb, rainbow and swap are player actions like moves: their points go into the round score, and the controller reacts to the score actually reached. The worst case was simulated: all four boosters used at their best visible target in every round, plus 10 hint moves, 15,000 rounds on random shapes. The invariant matched to the coin (517 = 517). Expected RTP was 96.8% during the transient while the scale climbed to 1.7. The excess is bounded by C, and the long-run return is 96.5%. Booster charges come from level-ups only, never from coins.
Point by point
- "They'll learn how it works." The proof assumes from the start that the attacker knows all the code and every table.
- "They'll crack the sequences." Board fruits: even full knowledge does not help (Lemma 2, the bot above). The golden multiplier: you would have to break a cryptographic generator (assumption 2).
- "They'll find a path." Lemma 2 holds for every possible history of moves and bets, not just a "typical" one.
- "They'll team up." Players share no state: no common pot, no common generator, no common thresholds. k accounts are k independent players, each capped by their own C. Only a server with one account per person can stop multi-accounting.
Found and fixed along the way
- In version 7, a reload right after the last move granted an 11th move (confirmed in the browser), and a reload during the golden spin let the multiplier be re-drawn. Two tabs let a player keep the better of two outcomes.
- The generator pre-filled 256 random numbers in memory. Each number is now a separate call made at the moment of use.
- Resetting progress on an empty balance granted 200 coins. Reset no longer adds coins.
- All three attacks were re-run after the fix: the round result is in storage before the animation, the extra move is refused, and a stale tab cannot write.
What this proof does not cover
In a browser, a player with developer tools can change the code or the data: write themselves coins, swap out the generator. Nothing inside a browser can prevent that. For real money, the balance, generator and controller must run on a server that fixes each outcome before the client shows it; then assumption 1 holds by construction.
9. Tens of thousands of players
More players do not change the odds of a single round. They add rounds, so the chance that somebody hits the top prize grows. That is expected, not an exploit.
| Load | Rounds per day | Hint play (realistic) | Theoretical cap (everyone perfect) |
|---|---|---|---|
| 10k players × 100 rounds | 1M | once every ~25 years | once every ~1.1 years |
| 10k × 1,000 rounds | 10M | once every ~2.5 years (≈33% a year) | once every ~40 days |
| 100k × 1,000 rounds | 100M | once every ~90 days | once every ~4 days |
The top prize is paid for in advance: the ×40,000 step takes exactly 0.26 percentage points of RTP from every stake by every player. More players hit it more often, and the pool that funds it grows at the same rate, so the average return stays 96.5%. The real risk is a single large payout. With real money an operator needs a reserve at least as large as the top payout, or a per-round payout cap, or a smaller top prize.
