Tower
A climb of steps, each won with the same chance; each step won raises the prize; the player may take it after any step.
- Kind
- steps with a cash-out
- Largest win
- 94,413,757,324,218.77x the stake
- Name in the files
- tower
- Version
- 716fff17a7be
Download this engine as one file
What the player sets
- steps: 2 to 20
- p_ppm: the chance of a step in parts per million, 200000 to 950000
- or tiles and safe: each step is a row of 2 to 5 tiles of which 1 to tiles-1 are safe, and the player picks one
Every round also takes the return dial in basis points, 9600 to 9900, and a stake.
The round, in order
- the table is set at the start: after k steps the prize is rtp x 10^(6k) div p_ppm^k (x10k)
- plain: each advance draws r = int_below(1000000); the step is won when r < p_ppm
- tiles: each advance draws order = shuffle(0..tiles-1); the first
safeof it are the safe tiles; the step is won when the picked tile is one of them; the table is rtp x tiles^k div safe^k - a lost step ends the round with nothing; the last step won ends it with the top prize
int_below(m) is a whole number from 0 to m-1: limit = 2^64 - (2^64 mod m); take values until v < limit; return v mod m. shuffle: Fisher-Yates from the end, j = int_below(i+1). Words: HMAC-SHA256(key = seed, "STORM-DRBG|" || u64be(j)), cut into big-endian u64s.
What the player may do
- advance (with the picked tile, in tiles mode)
- cashout: take the prize for the steps won so far (at least one)
What it pays
The prize after k steps is the dial divided by the chance of getting there, so the return is the dial wherever the player stops.
Tables
The tables the round uses at three points of the dial, each with its exact return. A multiple is kept in the files as a whole number times 10,000, rounded down (Storm’s multX1e4); here it is written out.
Dial at 96%
4 steps, 1 in 4largest win 245.76x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 3.84x | 96% (24/25) |
| 2 | 15.36x | 96% (24/25) |
| 3 | 61.44x | 96% (24/25) |
| 4 | 245.76x | 96% (24/25) |
8 steps, 2 in 3largest win 24.6x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.4399x | 95.9933% (9599338133/10000000000) |
| 2 | 2.1599x | 95.9956% (9599565155113511/10000000000000000) |
| 3 | 3.2399x | 95.9971% |
| 4 | 4.8599x | 95.9982% |
| 5 | 7.2899x | 95.9989% |
| 6 | 10.9349x | 95.9994% |
| 7 | 16.4024x | 95.9997% |
| 8 | 24.6036x | 95.9997% |
8 steps, 4 in 5largest win 5.72x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.2x | 96% (24/25) |
| 2 | 1.5x | 96% (24/25) |
| 3 | 1.875x | 96% (24/25) |
| 4 | 2.3437x | 95.9979% (374992/390625) |
| 5 | 2.9296x | 95.9971% (1874944/1953125) |
| 6 | 3.6621x | 95.9997% (9374976/9765625) |
| 7 | 4.5776x | 95.9992% (46874624/48828125) |
| 8 | 5.722x | 95.9992% (46874624/48828125) |
10 steps, 1 in 2largest win 983.04x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.92x | 96% (24/25) |
| 2 | 3.84x | 96% (24/25) |
| 3 | 7.68x | 96% (24/25) |
| 4 | 15.36x | 96% (24/25) |
| 5 | 30.72x | 96% (24/25) |
| 6 | 61.44x | 96% (24/25) |
| 7 | 122.88x | 96% (24/25) |
| 8 | 245.76x | 96% (24/25) |
| 9 | 491.52x | 96% (24/25) |
| 10 | 983.04x | 96% (24/25) |
20 steps, 1 in 5largest win 91,552,734,375,000x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 4.8x | 96% (24/25) |
| 2 | 24x | 96% (24/25) |
| 3 | 120x | 96% (24/25) |
| 4 | 600x | 96% (24/25) |
| 5 | 3,000x | 96% (24/25) |
| 6 | 15,000x | 96% (24/25) |
| 7 | 75,000x | 96% (24/25) |
| 8 | 375,000x | 96% (24/25) |
| 9 | 1,875,000x | 96% (24/25) |
| 10 | 9,375,000x | 96% (24/25) |
| 11 | 46,875,000x | 96% (24/25) |
| 12 | 234,375,000x | 96% (24/25) |
| 13 | 1,171,875,000x | 96% (24/25) |
| 14 | 5,859,375,000x | 96% (24/25) |
| 15 | 29,296,875,000x | 96% (24/25) |
| 16 | 146,484,375,000x | 96% (24/25) |
| 17 | 732,421,875,000x | 96% (24/25) |
| 18 | 3,662,109,375,000x | 96% (24/25) |
| 19 | 18,310,546,875,000x | 96% (24/25) |
| 20 | 91,552,734,375,000x | 96% (24/25) |
Dial at 97.5%
4 steps, 1 in 4largest win 249.6x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 3.9x | 97.5% (39/40) |
| 2 | 15.6x | 97.5% (39/40) |
| 3 | 62.4x | 97.5% (39/40) |
| 4 | 249.6x | 97.5% (39/40) |
8 steps, 2 in 3largest win 24.99x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.4624x | 97.4933% (304666819/312500000) |
| 2 | 2.1937x | 97.4978% (9749787527557993/10000000000000000) |
| 3 | 3.2906x | 97.4994% |
| 4 | 4.9359x | 97.4994% |
| 5 | 7.4038x | 97.4988% |
| 6 | 11.1058x | 97.4997% |
| 7 | 16.6587x | 97.4998% |
| 8 | 24.988x | 97.4996% |
8 steps, 4 in 5largest win 5.81x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.2187x | 97.496% (12187/12500) |
| 2 | 1.5234x | 97.4976% (15234/15625) |
| 3 | 1.9042x | 97.495% (76168/78125) |
| 4 | 2.3803x | 97.497% (380848/390625) |
| 5 | 2.9754x | 97.4979% (1904256/1953125) |
| 6 | 3.7193x | 97.4992% (9521408/9765625) |
| 7 | 4.6491x | 97.4986% (47606784/48828125) |
| 8 | 5.8114x | 97.4991% (238034944/244140625) |
10 steps, 1 in 2largest win 998.4x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.95x | 97.5% (39/40) |
| 2 | 3.9x | 97.5% (39/40) |
| 3 | 7.8x | 97.5% (39/40) |
| 4 | 15.6x | 97.5% (39/40) |
| 5 | 31.2x | 97.5% (39/40) |
| 6 | 62.4x | 97.5% (39/40) |
| 7 | 124.8x | 97.5% (39/40) |
| 8 | 249.6x | 97.5% (39/40) |
| 9 | 499.2x | 97.5% (39/40) |
| 10 | 998.4x | 97.5% (39/40) |
20 steps, 1 in 5largest win 92,983,245,849,609.38x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 4.875x | 97.5% (39/40) |
| 2 | 24.375x | 97.5% (39/40) |
| 3 | 121.875x | 97.5% (39/40) |
| 4 | 609.375x | 97.5% (39/40) |
| 5 | 3,046.875x | 97.5% (39/40) |
| 6 | 15,234.375x | 97.5% (39/40) |
| 7 | 76,171.875x | 97.5% (39/40) |
| 8 | 380,859.375x | 97.5% (39/40) |
| 9 | 1,904,296.875x | 97.5% (39/40) |
| 10 | 9,521,484.375x | 97.5% (39/40) |
| 11 | 47,607,421.875x | 97.5% (39/40) |
| 12 | 238,037,109.375x | 97.5% (39/40) |
| 13 | 1,190,185,546.875x | 97.5% (39/40) |
| 14 | 5,950,927,734.375x | 97.5% (39/40) |
| 15 | 29,754,638,671.875x | 97.5% (39/40) |
| 16 | 148,773,193,359.375x | 97.5% (39/40) |
| 17 | 743,865,966,796.875x | 97.5% (39/40) |
| 18 | 3,719,329,833,984.375x | 97.5% (39/40) |
| 19 | 18,596,649,169,921.875x | 97.5% (39/40) |
| 20 | 92,983,245,849,609.375x | 97.5% (39/40) |
Dial at 99%
4 steps, 1 in 4largest win 253.44x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 3.96x | 99% (99/100) |
| 2 | 15.84x | 99% (99/100) |
| 3 | 63.36x | 99% (99/100) |
| 4 | 253.44x | 99% (99/100) |
8 steps, 2 in 3largest win 25.37x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.4849x | 98.9933% (9899338283/10000000000) |
| 2 | 2.2274x | 98.9956% (4949782727556793/5000000000000000) |
| 3 | 3.3412x | 98.9986% |
| 4 | 5.0118x | 98.9987% |
| 5 | 7.5177x | 98.9987% |
| 6 | 11.2766x | 98.9992% |
| 7 | 16.915x | 98.9998% |
| 8 | 25.3725x | 98.9999% |
8 steps, 4 in 5largest win 5.9x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.2375x | 99% (99/100) |
| 2 | 1.5468x | 98.9952% (15468/15625) |
| 3 | 1.9335x | 98.9952% (15468/15625) |
| 4 | 2.4169x | 98.9962% (386704/390625) |
| 5 | 3.0212x | 98.9986% (1933568/1953125) |
| 6 | 3.7765x | 98.9986% (1933568/1953125) |
| 7 | 4.7206x | 98.9981% (48338944/48828125) |
| 8 | 5.9008x | 98.9989% (241696768/244140625) |
10 steps, 1 in 2largest win 1,013.76x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 1.98x | 99% (99/100) |
| 2 | 3.96x | 99% (99/100) |
| 3 | 7.92x | 99% (99/100) |
| 4 | 15.84x | 99% (99/100) |
| 5 | 31.68x | 99% (99/100) |
| 6 | 63.36x | 99% (99/100) |
| 7 | 126.72x | 99% (99/100) |
| 8 | 253.44x | 99% (99/100) |
| 9 | 506.88x | 99% (99/100) |
| 10 | 1,013.76x | 99% (99/100) |
20 steps, 1 in 5largest win 94,413,757,324,218.77x
| Steps won | Pays | Exact return, stopping here |
|---|---|---|
| 1 | 4.95x | 99% (99/100) |
| 2 | 24.75x | 99% (99/100) |
| 3 | 123.75x | 99% (99/100) |
| 4 | 618.75x | 99% (99/100) |
| 5 | 3,093.75x | 99% (99/100) |
| 6 | 15,468.75x | 99% (99/100) |
| 7 | 77,343.75x | 99% (99/100) |
| 8 | 386,718.75x | 99% (99/100) |
| 9 | 1,933,593.75x | 99% (99/100) |
| 10 | 9,667,968.75x | 99% (99/100) |
| 11 | 48,339,843.75x | 99% (99/100) |
| 12 | 241,699,218.75x | 99% (99/100) |
| 13 | 1,208,496,093.75x | 99% (99/100) |
| 14 | 6,042,480,468.75x | 99% (99/100) |
| 15 | 30,212,402,343.75x | 99% (99/100) |
| 16 | 151,062,011,718.75x | 99% (99/100) |
| 17 | 755,310,058,593.75x | 99% (99/100) |
| 18 | 3,776,550,292,968.75x | 99% (99/100) |
| 19 | 18,882,751,464,843.75x | 99% (99/100) |
| 20 | 94,413,757,324,218.75x | 99% (99/100) |
On Storm
In Storm’s core this engine is built from this page as written, with the settings and the largest win above, and is right when it reproduces the test rounds below. The rest of this part is about the templates Storm has live today, which is the way onto Storm until then.
Our reading against Storm’s templates: does not fit. A draw per step and a choice to stop.
On the templates it would take: a step template (a draw per step, a choice to stop). Storm lists it as not enabled.
Check a build against ours
36 whole rounds, each from a seed given in the file. A build is right when, from the same seed, settings, dial and actions, it makes the same draws in the same order and pays the same amount. The seed of a test round is sha256("rain-engine-vector|<engine>|<case>|<rtp_bps>|<i>"), given in hex in each vector.
The rest are in this engine’s file, with the full result of each round. The reference build plays this engine and reproduces every one of them.
Nothing hidden is fixed when a round starts: what a step shows is drawn at that step. So the same file holds 36 more rounds played with a seed of its own for the start and for every action after it, as a round runs where each step’s randomness is formed only after the player has acted. The rules are the same; only the generator is started afresh at each step.