Every engine
03Engine

Counter Attack

A striker dribbles up to seven defenders and may shoot from any spot; further spots are easier shots; a lost dribble or a missed shot ends the round.

Kind
steps with a cash-out
Largest win
843.26x the stake
Name in the files
counter_attack (the kit: counterattack)
Version
0e166d529807

Download this engine as one file

What the player sets

  • mode: open, high or low (how hard the dribbles are)

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: a goal from spot s pays rtp / (the chance of reaching s x the chance of scoring from s) (x10k)
  2. each action draws r = int_below(10000)
  3. dribble from spot s: won when r < the mode's dribble chance for s (in ten-thousandths); the striker moves to s+1; lost ends the round with nothing
  4. shoot from spot s: scored when r < the shot chance for s; a miss ends the round with nothing
  5. shot chances by spot: 3000, 3600, 4200, 5000, 5800, 6700, 7700, 8800
  6. dribble chances by spot, open: 7500, 7200, 7000, 6700, 6400, 6000, 5500; high: 6500, 6200, 5800, 5400, 5000, 4600, 4200; low: 5000, 4700, 4400, 4000, 3600, 3200, 2800

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

  • dribble
  • shoot

What it pays

A goal pays the table's value for the spot it was shot from. The return is the dial for every choice of spot.

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%

highlargest win 89.47x
Shot from spotPaysExact return, stopping here
03.2x96% (24/25)
14.1025x95.9985% (191997/200000)
25.6717x95.9991% (479995971/500000000)
38.2142x95.9993% (479996777/500000000)
413.1134x95.9997% (599998437207/625000000000)
522.7038x95.9997% (2399994064377/2500000000000)
642.9463x95.9999% (239999934351177/250000000000000)
789.4714x95.9999% (749999305864809/781250000000000)
lowlargest win 817.71x
Shot from spotPaysExact return, stopping here
03.2x96% (24/25)
15.3333x95.9994% (479997/500000)
29.7264x95.9995% (5999973/6250000)
318.5686x95.9996% (47999831/50000000)
440.0186x95.9998% (2999994349/3125000000)
596.2306x95.9999% (149999928903/156250000000)
6261.6661x95.9999% (937499919741/976562500000)
7817.7066x95.9999% (1464843691773/1525878906250)
openlargest win 20.4x
Shot from spotPaysExact return, stopping here
03.2x96% (24/25)
13.5555x95.9985% (191997/200000)
24.2328x95.9999% (2999997/3125000)
35.0793x95.9987% (9599877/10000000)
46.5354x95.999% (11999876679/12500000000)
58.8399x95.9994% (74999567979/78125000000)
612.8198x95.9996% (187499382147/195312500000)
720.3952x95.9999% (58593739743/61035156250)

Dial at 97.5%

highlargest win 90.87x
Shot from spotPaysExact return, stopping here
03.25x97.5% (39/40)
14.1666x97.4984% (2437461/2500000)
25.7603x97.4988% (487494189/500000000)
38.3426x97.4999% (487499831/500000000)
413.3183x97.4997% (1218747111543/1250000000000)
523.0586x97.4999% (2437499587419/2500000000000)
643.6173x97.4998% (243749732493267/250000000000000)
790.8694x97.4999% (761718123605439/781250000000000)
lowlargest win 830.48x
Shot from spotPaysExact return, stopping here
03.25x97.5% (39/40)
15.4166x97.4988% (243747/250000)
29.8784x97.4998% (3046869/3125000)
318.8588x97.4999% (24374999/25000000)
440.6439x97.4998% (6093739927/6250000000)
597.7342x97.4999% (152343672921/156250000000)
6265.7546x97.4999% (476074119213/488281250000)
7830.4832x97.4999% (743865878448/762939453125)
openlargest win 20.71x
Shot from spotPaysExact return, stopping here
03.25x97.5% (39/40)
13.6111x97.4997% (974997/1000000)
24.2989x97.499% (24374763/25000000)
35.1587x97.4994% (9749943/10000000)
46.6375x97.4987% (194997537/200000000)
58.978x97.4991% (3808561869/3906250000)
613.0201x97.4996% (380857845753/390625000000)
720.7138x97.4996% (476072411661/488281250000)

Dial at 99%

highlargest win 92.27x
Shot from spotPaysExact return, stopping here
03.3x99% (99/100)
14.2307x98.9983% (4949919/5000000)
25.8489x98.9984% (494992407/500000000)
38.4709x98.9994% (989994083/1000000000)
413.5232x98.9997% (19335896073/19531250000)
523.4133x98.9997% (4949989079139/5000000000000)
644.2883x98.9998% (247499530635357/250000000000000)
792.2674x98.9999% (773436941346069/781250000000000)
lowlargest win 843.26x
Shot from spotPaysExact return, stopping here
03.3x99% (99/100)
15.5x99% (99/100)
210.0303x98.999% (98999061/100000000)
319.1489x98.9998% (98999813/100000000)
441.2692x98.9998% (1546872789/1562500000)
599.2378x98.9999% (154687416939/156250000000)
6269.8431x98.9999% (966796557111/976562500000)
7843.2599x98.9999% (3021240002319/3051757812500)
openlargest win 21.03x
Shot from spotPaysExact return, stopping here
03.3x99% (99/100)
13.6666x98.9982% (494991/500000)
24.365x98.9982% (494991/500000)
35.238x98.9982% (494991/500000)
46.7397x98.9999% (24749998119/25000000000)
59.1161x98.9989% (77342906781/78125000000)
613.2204x98.9995% (96679231803/97656250000)
721.0325x98.9997% (38671776297/39062500000)

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 dribble and a choice to shoot.

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.

open, shoot at once, dial 9900
seed b70b6650ee0a6e5a9417b02b88902e83f22ab8f5f72fda345724a6dc694a25af
settings {"mode":"open"}
actions [["shoot"]]
draws int_below(10000) = 1858
pays 3.3x (payX10k 33000)
high, two dribbles then shoot, dial 9900
seed 4515177019cc2f9cbf3cae8ac8f39570a91ecbb83dd8c567e394b8c5d602d009
settings {"mode":"high"}
actions [["dribble"],["dribble"],["shoot"]]
draws int_below(10000) = 6474, int_below(10000) = 6037, int_below(10000) = 3929
pays 5.8489x (payX10k 58489)

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.