Unlike conventional slot machines that rely on weighted paylines, this game calculates a mathematical statistic based on the sum of three squares. Players select a weight mode (linear, squared, or cubed) to determine the gross multiplier applied to their single captured stake.
Reel Mechanics and Integer Generation
The game uses two independent reels. Each reel displays a value from 0 to 15, corresponding to hexadecimal digits 0–9 and A–F (where A=10, ..., F=15).
From these two values, a single integer n is calculated using the formula:
n = 16 * first + second + 1
This results in an integer n that is uniformly distributed between 1 and 256. Each of the 256 possible outcomes has an equal probability of 1/256.
The Score Function
The core mechanic involves calculating a statistic for the generated integer n. The statistic is defined as the number of unordered non-negative integer triples (x, y, z) such that x ≤ y ≤ z and x² + y² + z² = n.
The reward score is derived by subtracting the exact minimum statistic observed across all 256 possible outcomes from the calculated statistic.
- Exact minimum statistic: 0
- Score formula: score(n) = statistic(n) - 0
For example, if the reels show [0, 0], the integer is 1. The raw statistic is 1. The reward score is 1 - 0 = 1.
Modes and Gross Multipliers
Before capturing a stake, the player selects one of three weight modes. These modes determine how the reward score is converted into a gross multiplier. The gross multiplier is calculated as:
Gross Multiplier = 0.96 * weight / exact_mean
The table lists weight sums across256 outcomes. Divide each sum by256 to obtain the mean used in the formula:
| Mode | Weight Type | Exact Weight Denominator | Exact Gross RTP |
|---|---|---|---|
| 0 | Linear | 488 | 24/25 (96%) |
| 1 | Squared | 1404 | 24/25 (96%) |
| 2 | Cubed | 4802 | 24/25 (96%) |
Note that while the expected RTP is 96% for all modes, the distribution of returns differs due to the different weight functions.
Stakes and Settlement
Stakes: Selectable stakes are 10, 20, 50, or 100 play coins. The default stake is 20 coins.
Settlement: Each round involves one captured stake. At settlement, the floor of (raw gross return + stored fractional carry) is credited to the balance. Any remainder persists as fractional carry.
Zero Returns: If the return is zero, the fractional carry remains unchanged.
Controls: Stake, mode selectors, refill, and starting another round are locked while a round is active.
Wallet and Persistence
Initial Balance: 1000 virtual coins.
Restoration: A manual idle-only restoration is available. If the balance drops below 10 coins while idle, clicking restoration sets the balance exactly to 1000. This does not add1000 coins; it resets the balance.
Fractional Carry: Fractional payout carry is stored in browser localStorage. It persists across settlement, refill, and reload. Refilling the balance does not clear the carry.
Unfinished Reload: If the page reloads during an active round, the captured stake remains deducted. The round ends without refund, payout, or continuation. The round is not resumable.
Controls After Reload: The default stake (20) and first preset are restored.
Simulation Evidence
The following data comes from 1,000,000 rounds per mode. These are supporting sample observations, not the mathematical payout law.
| Mode | Measured RTP | Standard Error (%) |
|---|---|---|
| 0 (Linear) | 96.0159% | 0.0685 |
| 1 (Squared) | 95.9758% | 0.1141 |
| 2 (Cubed) | 96.1844% | 0.1653 |
The exact Gross RTP for all modes is 24/25 (96%).
Frequently asked questions
Is this a real casino game with real money?
No. This is an independent demo owned by this guide. The virtual coins have no cash value, and there is no account, login, or payment flow. The game mechanics are exact, but the environment is a browser-based simulation.
How is the reward score calculated?
The reels generate an integer n (1–256). The score is the number of unordered non-negative integer triples (x,y,z) with x²+y²+z²=n, minus the global minimum statistic (which is 0). You choose linear, squared, or cubed weights to determine the final multiplier.
What happens if I reload the page during a spin?
The captured stake remains deducted. The round ends without refund or payout. It does not resume. Reload restores the default stake20 and Linear mode; a new round captures a new stake.