Every engine
03Engine

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

  1. the table is set at the start: after k steps the prize is rtp x 10^(6k) div p_ppm^k (x10k)
  2. plain: each advance draws r = int_below(1000000); the step is won when r < p_ppm
  3. tiles: each advance draws order = shuffle(0..tiles-1); the first safe of 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
  4. 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 wonPaysExact return, stopping here
13.84x96% (24/25)
215.36x96% (24/25)
361.44x96% (24/25)
4245.76x96% (24/25)
8 steps, 2 in 3largest win 24.6x
Steps wonPaysExact return, stopping here
11.4399x95.9933% (9599338133/10000000000)
22.1599x95.9956% (9599565155113511/10000000000000000)
33.2399x95.9971%
44.8599x95.9982%
57.2899x95.9989%
610.9349x95.9994%
716.4024x95.9997%
824.6036x95.9997%
8 steps, 4 in 5largest win 5.72x
Steps wonPaysExact return, stopping here
11.2x96% (24/25)
21.5x96% (24/25)
31.875x96% (24/25)
42.3437x95.9979% (374992/390625)
52.9296x95.9971% (1874944/1953125)
63.6621x95.9997% (9374976/9765625)
74.5776x95.9992% (46874624/48828125)
85.722x95.9992% (46874624/48828125)
10 steps, 1 in 2largest win 983.04x
Steps wonPaysExact return, stopping here
11.92x96% (24/25)
23.84x96% (24/25)
37.68x96% (24/25)
415.36x96% (24/25)
530.72x96% (24/25)
661.44x96% (24/25)
7122.88x96% (24/25)
8245.76x96% (24/25)
9491.52x96% (24/25)
10983.04x96% (24/25)
20 steps, 1 in 5largest win 91,552,734,375,000x
Steps wonPaysExact return, stopping here
14.8x96% (24/25)
224x96% (24/25)
3120x96% (24/25)
4600x96% (24/25)
53,000x96% (24/25)
615,000x96% (24/25)
775,000x96% (24/25)
8375,000x96% (24/25)
91,875,000x96% (24/25)
109,375,000x96% (24/25)
1146,875,000x96% (24/25)
12234,375,000x96% (24/25)
131,171,875,000x96% (24/25)
145,859,375,000x96% (24/25)
1529,296,875,000x96% (24/25)
16146,484,375,000x96% (24/25)
17732,421,875,000x96% (24/25)
183,662,109,375,000x96% (24/25)
1918,310,546,875,000x96% (24/25)
2091,552,734,375,000x96% (24/25)

Dial at 97.5%

4 steps, 1 in 4largest win 249.6x
Steps wonPaysExact return, stopping here
13.9x97.5% (39/40)
215.6x97.5% (39/40)
362.4x97.5% (39/40)
4249.6x97.5% (39/40)
8 steps, 2 in 3largest win 24.99x
Steps wonPaysExact return, stopping here
11.4624x97.4933% (304666819/312500000)
22.1937x97.4978% (9749787527557993/10000000000000000)
33.2906x97.4994%
44.9359x97.4994%
57.4038x97.4988%
611.1058x97.4997%
716.6587x97.4998%
824.988x97.4996%
8 steps, 4 in 5largest win 5.81x
Steps wonPaysExact return, stopping here
11.2187x97.496% (12187/12500)
21.5234x97.4976% (15234/15625)
31.9042x97.495% (76168/78125)
42.3803x97.497% (380848/390625)
52.9754x97.4979% (1904256/1953125)
63.7193x97.4992% (9521408/9765625)
74.6491x97.4986% (47606784/48828125)
85.8114x97.4991% (238034944/244140625)
10 steps, 1 in 2largest win 998.4x
Steps wonPaysExact return, stopping here
11.95x97.5% (39/40)
23.9x97.5% (39/40)
37.8x97.5% (39/40)
415.6x97.5% (39/40)
531.2x97.5% (39/40)
662.4x97.5% (39/40)
7124.8x97.5% (39/40)
8249.6x97.5% (39/40)
9499.2x97.5% (39/40)
10998.4x97.5% (39/40)
20 steps, 1 in 5largest win 92,983,245,849,609.38x
Steps wonPaysExact return, stopping here
14.875x97.5% (39/40)
224.375x97.5% (39/40)
3121.875x97.5% (39/40)
4609.375x97.5% (39/40)
53,046.875x97.5% (39/40)
615,234.375x97.5% (39/40)
776,171.875x97.5% (39/40)
8380,859.375x97.5% (39/40)
91,904,296.875x97.5% (39/40)
109,521,484.375x97.5% (39/40)
1147,607,421.875x97.5% (39/40)
12238,037,109.375x97.5% (39/40)
131,190,185,546.875x97.5% (39/40)
145,950,927,734.375x97.5% (39/40)
1529,754,638,671.875x97.5% (39/40)
16148,773,193,359.375x97.5% (39/40)
17743,865,966,796.875x97.5% (39/40)
183,719,329,833,984.375x97.5% (39/40)
1918,596,649,169,921.875x97.5% (39/40)
2092,983,245,849,609.375x97.5% (39/40)

Dial at 99%

4 steps, 1 in 4largest win 253.44x
Steps wonPaysExact return, stopping here
13.96x99% (99/100)
215.84x99% (99/100)
363.36x99% (99/100)
4253.44x99% (99/100)
8 steps, 2 in 3largest win 25.37x
Steps wonPaysExact return, stopping here
11.4849x98.9933% (9899338283/10000000000)
22.2274x98.9956% (4949782727556793/5000000000000000)
33.3412x98.9986%
45.0118x98.9987%
57.5177x98.9987%
611.2766x98.9992%
716.915x98.9998%
825.3725x98.9999%
8 steps, 4 in 5largest win 5.9x
Steps wonPaysExact return, stopping here
11.2375x99% (99/100)
21.5468x98.9952% (15468/15625)
31.9335x98.9952% (15468/15625)
42.4169x98.9962% (386704/390625)
53.0212x98.9986% (1933568/1953125)
63.7765x98.9986% (1933568/1953125)
74.7206x98.9981% (48338944/48828125)
85.9008x98.9989% (241696768/244140625)
10 steps, 1 in 2largest win 1,013.76x
Steps wonPaysExact return, stopping here
11.98x99% (99/100)
23.96x99% (99/100)
37.92x99% (99/100)
415.84x99% (99/100)
531.68x99% (99/100)
663.36x99% (99/100)
7126.72x99% (99/100)
8253.44x99% (99/100)
9506.88x99% (99/100)
101,013.76x99% (99/100)
20 steps, 1 in 5largest win 94,413,757,324,218.77x
Steps wonPaysExact return, stopping here
14.95x99% (99/100)
224.75x99% (99/100)
3123.75x99% (99/100)
4618.75x99% (99/100)
53,093.75x99% (99/100)
615,468.75x99% (99/100)
777,343.75x99% (99/100)
8386,718.75x99% (99/100)
91,933,593.75x99% (99/100)
109,667,968.75x99% (99/100)
1148,339,843.75x99% (99/100)
12241,699,218.75x99% (99/100)
131,208,496,093.75x99% (99/100)
146,042,480,468.75x99% (99/100)
1530,212,402,343.75x99% (99/100)
16151,062,011,718.75x99% (99/100)
17755,310,058,593.75x99% (99/100)
183,776,550,292,968.75x99% (99/100)
1918,882,751,464,843.75x99% (99/100)
2094,413,757,324,218.75x99% (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.

8 steps 2 in 3, stop at 3, dial 9900
seed f51ca083cde9964b6c098312a5e4b9138ab229d211a4df3ddbc3810487b18915
settings {"p_ppm":666667,"steps":8}
actions [["advance"],["advance"],["advance"],["cashout"]]
draws int_below(1000000) = 324570, int_below(1000000) = 150041, int_below(1000000) = 8009
pays 3.3412x (payX10k 33412)
10 steps 1 in 2, to the top, dial 9900
seed fe5a38a2804b17f84961f8ef542f296d557859bf8835f1a9a7400eb0adc8c260
settings {"p_ppm":500000,"steps":10}
actions [["advance"]]
draws int_below(1000000) = 933171
pays 0x (payX10k 0)

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.