Every engine
03Engine

Mines

25 tiles, some of them mines. Each safe tile opened raises the prize; a mine ends the round; the player may take the prize after any safe tile.

Kind
steps with a cash-out
Largest win
5,148,297x the stake
Name in the files
mines
Version
45eab134847a

Download this engine as one file

What the player sets

  • mines: 1 to 24

Every round also takes the return dial in basis points, 9600 to 9900, and a stake.

The round, in order

  1. nothing is drawn at the start: no tile holds anything until it is opened
  2. the table is set at the start: after k safe tiles the prize is rtp x C(25,k) div C(25-mines,k) (x10k)
  3. each pick opens a tile the player names: r = int_below(the tiles not opened yet, this one among them); the tile is a mine when r < mines. A mine ends the round with nothing, a safe tile adds one to k
  4. opening every safe tile ends the round with the top prize
  5. when the round ends, the mines not found are placed for the picture, with the draws of the step that ended it: shuffle the tiles not opened (in rising order) and take the first mines of the result; after a mine was hit take one fewer, the tile hit being the other. When every safe tile was opened, the tiles left are the mines and nothing is drawn. This changes no pay

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

  • pick (a tile 0 to 24 not opened yet)
  • cashout: take the prize for the safe tiles opened so far (at least one)

What it pays

With j tiles opened safely, the next is safe with chance (25-mines-j)/(25-j): the same as on a field where the mines were laid beforehand. So C(25-mines,k) / C(25,k) is the chance of k safe tiles in a row, and 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%

1 mineslargest win 24x
Safe tiles openedPaysExact return, stopping here
11x96% (24/25)
21.0434x95.9928% (119991/125000)
31.0909x95.9992% (119999/125000)
41.1428x95.9952% (59997/62500)
51.2x96% (24/25)
61.2631x95.9956% (239989/250000)
71.3333x95.9976% (119997/125000)
81.4117x95.9956% (239989/250000)
91.5x96% (24/25)
101.6x96% (24/25)
111.7142x95.9952% (59997/62500)
121.8461x95.9972% (239993/250000)
132x96% (24/25)
142.1818x95.9992% (119999/125000)
152.4x96% (24/25)
162.6666x95.9976% (119997/125000)
173x96% (24/25)
183.4285x95.998% (47999/50000)
194x96% (24/25)
204.8x96% (24/25)
216x96% (24/25)
228x96% (24/25)
2312x96% (24/25)
2424x96% (24/25)
3 mineslargest win 2,208x
Safe tiles openedPaysExact return, stopping here
11.0909x95.9992% (119999/125000)
21.2467x95.9959% (959959/1000000)
31.4337x95.9955% (1103949/1150000)
41.6601x95.997% (2207933/2300000)
51.9368x95.9979% (137997/143750)
62.2786x95.9984% (11039817/11500000)
72.7058x95.997% (689979/718750)
83.247x95.9982% (55199/57500)
93.9428x95.9986% (68999/71875)
104.8527x95.999% (4415957/4600000)
116.0659x95.9994% (5519969/5750000)
127.7202x95.999% (5519943/5750000)
1310.0363x95.9993% (1103993/1150000)
1413.3818x95.9998% (2207997/2300000)
1518.4x96% (24/25)
1626.2857x95.9999% (5519997/5750000)
1739.4285x95.9998% (551999/575000)
1863.0857x95.9999% (4415999/4600000)
19110.4x96% (24/25)
20220.8x96% (24/25)
21552x96% (24/25)
222,208x96% (24/25)
5 mineslargest win 51,004.8x
Safe tiles openedPaysExact return, stopping here
11.2x96% (24/25)
21.5157x95.9943% (287983/300000)
31.9368x95.9979% (137997/143750)
42.5065x95.9999% (4857597/5060000)
53.2897x95.9975% (10625731/11068750)
64.3863x95.9982% (42503247/44275000)
75.9529x95.9993% (3035979/3162500)
88.2425x95.9996% (242879/253000)
911.6769x95.9998% (1517997/1581250)
1016.9846x95.9999% (1103999/1150000)
1125.4769x95.9999% (1103999/1150000)
1239.6307x95.9998% (15455973/16100000)
1364.4x96% (24/25)
14110.4x96% (24/25)
15202.4x96% (24/25)
16404.8x96% (24/25)
17910.8x96% (24/25)
182,428.8x96% (24/25)
198,500.8x96% (24/25)
2051,004.8x96% (24/25)
10 mineslargest win 3,138,009.6x
Safe tiles openedPaysExact return, stopping here
11.6x96% (24/25)
22.7428x95.998% (47999/50000)
34.8527x95.999% (4415957/4600000)
48.8967x95.9999% (24287991/25300000)
516.9846x95.9999% (1103999/1150000)
633.9692x95.9999% (1103999/1150000)
771.7128x95.9999% (10487997/10925000)
8161.3538x95.9999% (10487997/10925000)
9391.8593x95.9999% (356591963/371450000)
101,044.9582x95.9999% (75071997/78200000)
113,134.8747x95.9999% (124031999/129200000)
1210,972.0615x96% (285273599/297160000)
1347,545.6x96% (24/25)
14285,273.6x96% (24/25)
153,138,009.6x96% (24/25)
12 mineslargest win 4,992,288x
Safe tiles openedPaysExact return, stopping here
11.8461x95.9972% (239993/250000)
23.6923x95.9998% (479999/500000)
37.7202x95.999% (5519943/5750000)
416.9846x95.9999% (1103999/1150000)
539.6307x95.9998% (15455973/16100000)
699.0769x95.9999% (38639991/40250000)
7268.923x95.9999% (10487997/10925000)
8806.7692x95.9999% (26219999/27312500)
92,743.0153x95.9999% (356591989/371450000)
1010,972.0615x96% (285273599/297160000)
1154,860.3076x96% (1782959997/1857250000)
12384,022.1538x96% (24961439997/26001500000)
134,992,288x96% (24/25)
24 mineslargest win 24x
Safe tiles openedPaysExact return, stopping here
124x96% (24/25)

Dial at 97.5%

1 mineslargest win 24.38x
Safe tiles openedPaysExact return, stopping here
11.0156x97.4976% (15234/15625)
21.0597x97.4924% (243731/250000)
31.1079x97.4952% (121869/125000)
41.1607x97.4988% (243747/250000)
51.2187x97.496% (12187/12500)
61.2828x97.4928% (60933/62500)
71.3541x97.4952% (121869/125000)
81.4338x97.4984% (121873/125000)
91.5234x97.4976% (15234/15625)
101.625x97.5% (39/40)
111.741x97.496% (12187/12500)
121.875x97.5% (39/40)
132.0312x97.4976% (15234/15625)
142.2159x97.4996% (243749/250000)
152.4375x97.5% (39/40)
162.7083x97.4988% (243747/250000)
173.0468x97.4976% (15234/15625)
183.4821x97.4988% (243747/250000)
194.0625x97.5% (39/40)
204.875x97.5% (39/40)
216.0937x97.4992% (60937/62500)
228.125x97.5% (39/40)
2312.1875x97.5% (39/40)
2424.375x97.5% (39/40)
3 mineslargest win 2,242.5x
Safe tiles openedPaysExact return, stopping here
11.1079x97.4952% (121869/125000)
21.2662x97.4974% (487487/500000)
31.4561x97.4953% (1121197/1150000)
41.686x97.4947% (112119/115000)
51.9671x97.4997% (1121247/1150000)
62.3142x97.4982% (11212299/11500000)
72.7481x97.4978% (1401531/1437500)
83.2977x97.4972% (560609/575000)
94.0044x97.4984% (70077/71875)
104.9285x97.4985% (896987/920000)
116.1607x97.4997% (5606237/5750000)
127.8409x97.4998% (11212487/11500000)
1310.1931x97.4992% (1121241/1150000)
1413.5909x97.4999% (4484997/4600000)
1518.6875x97.5% (39/40)
1626.6964x97.4998% (1401561/1437500)
1740.0446x97.4998% (1401561/1437500)
1864.0714x97.4999% (2242499/2300000)
19112.125x97.5% (39/40)
20224.25x97.5% (39/40)
21560.625x97.5% (39/40)
222,242.5x97.5% (39/40)
5 mineslargest win 51,801.75x
Safe tiles openedPaysExact return, stopping here
11.2187x97.496% (12187/12500)
21.5394x97.4953% (146243/150000)
31.9671x97.4997% (1121247/1150000)
42.5456x97.4974% (1541679/1581250)
53.3411x97.4974% (1541679/1581250)
64.4549x97.4996% (43167981/44275000)
76.0459x97.499% (3083409/3162500)
88.3713x97.4997% (18500573/18975000)
911.8593x97.4993% (1541709/1581250)
1017.25x97.5% (39/40)
1125.875x97.5% (39/40)
1240.25x97.5% (39/40)
1365.4062x97.4999% (981093/1006250)
14112.125x97.5% (39/40)
15205.5625x97.5% (39/40)
16411.125x97.5% (39/40)
17925.0312x97.4999% (2312578/2371875)
182,466.75x97.5% (39/40)
198,633.625x97.5% (39/40)
2051,801.75x97.5% (39/40)
10 mineslargest win 3,187,041x
Safe tiles openedPaysExact return, stopping here
11.625x97.5% (39/40)
22.7857x97.4995% (194999/200000)
34.9285x97.4985% (896987/920000)
49.0357x97.4998% (24667461/25300000)
517.25x97.5% (39/40)
634.5x97.5% (39/40)
772.8333x97.4999% (85214961/87400000)
8163.875x97.5% (39/40)
9397.9821x97.4999% (362163711/371450000)
101,061.2857x97.4999% (2897309961/2971600000)
113,183.8571x97.4999% (2897309961/2971600000)
1211,143.5x97.5% (39/40)
1348,288.5x97.5% (39/40)
14289,731x97.5% (39/40)
153,187,041x97.5% (39/40)
12 mineslargest win 5,070,292.5x
Safe tiles openedPaysExact return, stopping here
11.875x97.5% (39/40)
23.75x97.5% (39/40)
37.8409x97.4998% (11212487/11500000)
417.25x97.5% (39/40)
540.25x97.5% (39/40)
6100.625x97.5% (39/40)
7273.125x97.5% (39/40)
8819.375x97.5% (39/40)
92,785.875x97.5% (39/40)
1011,143.5x97.5% (39/40)
1155,717.5x97.5% (39/40)
12390,022.5x97.5% (39/40)
135,070,292.5x97.5% (39/40)
24 mineslargest win 24.38x
Safe tiles openedPaysExact return, stopping here
124.375x97.5% (39/40)

Dial at 99%

1 mineslargest win 24.75x
Safe tiles openedPaysExact return, stopping here
11.0312x98.9952% (15468/15625)
21.076x98.992% (6187/6250)
31.125x99% (99/100)
41.1785x98.994% (49497/50000)
51.2375x99% (99/100)
61.3026x98.9976% (123747/125000)
71.375x99% (99/100)
81.4558x98.9944% (123743/125000)
91.5468x98.9952% (15468/15625)
101.65x99% (99/100)
111.7678x98.9968% (61873/62500)
121.9038x98.9976% (123747/125000)
132.0625x99% (99/100)
142.25x99% (99/100)
152.475x99% (99/100)
162.75x99% (99/100)
173.0937x98.9984% (30937/31250)
183.5357x98.9996% (247499/250000)
194.125x99% (99/100)
204.95x99% (99/100)
216.1875x99% (99/100)
228.25x99% (99/100)
2312.375x99% (99/100)
2424.75x99% (99/100)
3 mineslargest win 2,277x
Safe tiles openedPaysExact return, stopping here
11.125x99% (99/100)
21.2857x98.9989% (989989/1000000)
31.4785x98.9952% (227689/230000)
41.712x98.9982% (14231/14375)
51.9973x98.9966% (1138461/1150000)
62.3498x98.998% (11384781/11500000)
72.7904x98.9985% (355776/359375)
83.3485x98.9991% (113849/115000)
94.066x98.9982% (14231/14375)
105.0043x98.9981% (4553913/4600000)
116.2554x98.9985% (2846207/2875000)
127.9615x98.9995% (2276989/2300000)
1310.35x99% (99/100)
1413.8x99% (99/100)
1518.975x99% (99/100)
1627.1071x98.9998% (5692491/5750000)
1740.6607x98.9999% (2846249/2875000)
1865.0571x98.9999% (4553997/4600000)
19113.85x99% (99/100)
20227.7x99% (99/100)
21569.25x99% (99/100)
222,277x99% (99/100)
5 mineslargest win 52,598.7x
Safe tiles openedPaysExact return, stopping here
11.2375x99% (99/100)
21.5631x98.9963% (296989/300000)
31.9973x98.9966% (1138461/1150000)
42.5848x98.9988% (3130839/3162500)
53.3925x98.9974% (19057/19250)
64.5234x98.9988% (3130839/3162500)
76.1389x98.9988% (3130839/3162500)
88.5001x98.9998% (18785221/18975000)
912.0418x98.9997% (782717/790625)
1017.5153x98.9995% (2276989/2300000)
1126.273x98.9997% (341549/345000)
1240.8692x98.9999% (3984747/4025000)
1366.4125x99% (99/100)
14113.85x99% (99/100)
15208.725x99% (99/100)
16417.45x99% (99/100)
17939.2625x99% (99/100)
182,504.7x99% (99/100)
198,766.45x99% (99/100)
2052,598.7x99% (99/100)
10 mineslargest win 3,236,072.4x
Safe tiles openedPaysExact return, stopping here
11.65x99% (99/100)
22.8285x98.9975% (39599/40000)
35.0043x98.9981% (4553913/4600000)
49.1747x98.9997% (1088997/1100000)
517.5153x98.9995% (2276989/2300000)
635.0307x98.9998% (4553991/4600000)
773.9538x98.9999% (43262973/43700000)
8166.3961x98.9999% (21631493/21850000)
9404.1049x98.9999% (367735459/371450000)
101,077.6131x98.9999% (2941883763/2971600000)
113,232.8395x98.9999% (588376789/594320000)
1211,314.9384x98.9999% (183867749/185725000)
1349,031.4x99% (99/100)
14294,188.4x99% (99/100)
153,236,072.4x99% (99/100)
12 mineslargest win 5,148,297x
Safe tiles openedPaysExact return, stopping here
11.9038x98.9976% (123747/125000)
23.8076x98.9976% (123747/125000)
37.9615x98.9995% (2276989/2300000)
417.5153x98.9995% (2276989/2300000)
540.8692x98.9999% (3984747/4025000)
6102.173x98.9999% (3984747/4025000)
7277.3269x98.9999% (108157491/109250000)
8831.9807x98.9999% (108157491/109250000)
92,828.7346x98.9999% (183867749/185725000)
1011,314.9384x98.9999% (183867749/185725000)
1156,574.6923x99% (7354709999/7429000000)
12396,022.8461x99% (7354709999/7429000000)
135,148,297x99% (99/100)
24 mineslargest win 24.75x
Safe tiles openedPaysExact return, stopping here
124.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: fits with a cap (choice). One round is one bet: the mines and the safe picks are set before the picking; one Storm game per mine count, at most 16 pick counts each (Storm's limit), pays capped at 10,000x; published and played on devnet 2 on 29 Nov.

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.

3 mines, 4 picks, dial 9900
seed a593bef95a059d1769f71033d6fd7cc18254259d03a87c613deadb77b569de3f
settings {"mines":3}
actions [["pick",0],["pick",1],["pick",2],["pick",3],["cashout"]]
draws int_below(25) = 18, int_below(24) = 23, int_below(23) = 8, int_below(22) = 16, int_below(21) = 14, int_below(20) = 5, int_below(19) = 7, int_below(18) = 6, int_below(17) = 13, int_below(16) = 13, int_below(15) = 0, int_below(14) = 8, int_below(13) = 7, int_below(12) = 11, and 10 more in the file
pays 1.712x (payX10k 17120)
10 mines, 2 picks, dial 9900
seed a7e3e56aaa1bca0dec7067b0a3070776157c2b27902169f6f63446e8c52db5ae
settings {"mines":10}
actions [["pick",0]]
draws int_below(25) = 5, int_below(24) = 23, int_below(23) = 11, int_below(22) = 12, int_below(21) = 15, int_below(20) = 7, int_below(19) = 14, int_below(18) = 3, int_below(17) = 5, int_below(16) = 13, int_below(15) = 1, int_below(14) = 8, int_below(13) = 0, int_below(12) = 0, and 10 more in the file
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.