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
- 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)
- each action draws r = int_below(10000)
- 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
- shoot from spot s: scored when r < the shot chance for s; a miss ends the round with nothing
- shot chances by spot: 3000, 3600, 4200, 5000, 5800, 6700, 7700, 8800
- 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 spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.2x | 96% (24/25) |
| 1 | 4.1025x | 95.9985% (191997/200000) |
| 2 | 5.6717x | 95.9991% (479995971/500000000) |
| 3 | 8.2142x | 95.9993% (479996777/500000000) |
| 4 | 13.1134x | 95.9997% (599998437207/625000000000) |
| 5 | 22.7038x | 95.9997% (2399994064377/2500000000000) |
| 6 | 42.9463x | 95.9999% (239999934351177/250000000000000) |
| 7 | 89.4714x | 95.9999% (749999305864809/781250000000000) |
lowlargest win 817.71x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.2x | 96% (24/25) |
| 1 | 5.3333x | 95.9994% (479997/500000) |
| 2 | 9.7264x | 95.9995% (5999973/6250000) |
| 3 | 18.5686x | 95.9996% (47999831/50000000) |
| 4 | 40.0186x | 95.9998% (2999994349/3125000000) |
| 5 | 96.2306x | 95.9999% (149999928903/156250000000) |
| 6 | 261.6661x | 95.9999% (937499919741/976562500000) |
| 7 | 817.7066x | 95.9999% (1464843691773/1525878906250) |
openlargest win 20.4x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.2x | 96% (24/25) |
| 1 | 3.5555x | 95.9985% (191997/200000) |
| 2 | 4.2328x | 95.9999% (2999997/3125000) |
| 3 | 5.0793x | 95.9987% (9599877/10000000) |
| 4 | 6.5354x | 95.999% (11999876679/12500000000) |
| 5 | 8.8399x | 95.9994% (74999567979/78125000000) |
| 6 | 12.8198x | 95.9996% (187499382147/195312500000) |
| 7 | 20.3952x | 95.9999% (58593739743/61035156250) |
Dial at 97.5%
highlargest win 90.87x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.25x | 97.5% (39/40) |
| 1 | 4.1666x | 97.4984% (2437461/2500000) |
| 2 | 5.7603x | 97.4988% (487494189/500000000) |
| 3 | 8.3426x | 97.4999% (487499831/500000000) |
| 4 | 13.3183x | 97.4997% (1218747111543/1250000000000) |
| 5 | 23.0586x | 97.4999% (2437499587419/2500000000000) |
| 6 | 43.6173x | 97.4998% (243749732493267/250000000000000) |
| 7 | 90.8694x | 97.4999% (761718123605439/781250000000000) |
lowlargest win 830.48x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.25x | 97.5% (39/40) |
| 1 | 5.4166x | 97.4988% (243747/250000) |
| 2 | 9.8784x | 97.4998% (3046869/3125000) |
| 3 | 18.8588x | 97.4999% (24374999/25000000) |
| 4 | 40.6439x | 97.4998% (6093739927/6250000000) |
| 5 | 97.7342x | 97.4999% (152343672921/156250000000) |
| 6 | 265.7546x | 97.4999% (476074119213/488281250000) |
| 7 | 830.4832x | 97.4999% (743865878448/762939453125) |
openlargest win 20.71x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.25x | 97.5% (39/40) |
| 1 | 3.6111x | 97.4997% (974997/1000000) |
| 2 | 4.2989x | 97.499% (24374763/25000000) |
| 3 | 5.1587x | 97.4994% (9749943/10000000) |
| 4 | 6.6375x | 97.4987% (194997537/200000000) |
| 5 | 8.978x | 97.4991% (3808561869/3906250000) |
| 6 | 13.0201x | 97.4996% (380857845753/390625000000) |
| 7 | 20.7138x | 97.4996% (476072411661/488281250000) |
Dial at 99%
highlargest win 92.27x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.3x | 99% (99/100) |
| 1 | 4.2307x | 98.9983% (4949919/5000000) |
| 2 | 5.8489x | 98.9984% (494992407/500000000) |
| 3 | 8.4709x | 98.9994% (989994083/1000000000) |
| 4 | 13.5232x | 98.9997% (19335896073/19531250000) |
| 5 | 23.4133x | 98.9997% (4949989079139/5000000000000) |
| 6 | 44.2883x | 98.9998% (247499530635357/250000000000000) |
| 7 | 92.2674x | 98.9999% (773436941346069/781250000000000) |
lowlargest win 843.26x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.3x | 99% (99/100) |
| 1 | 5.5x | 99% (99/100) |
| 2 | 10.0303x | 98.999% (98999061/100000000) |
| 3 | 19.1489x | 98.9998% (98999813/100000000) |
| 4 | 41.2692x | 98.9998% (1546872789/1562500000) |
| 5 | 99.2378x | 98.9999% (154687416939/156250000000) |
| 6 | 269.8431x | 98.9999% (966796557111/976562500000) |
| 7 | 843.2599x | 98.9999% (3021240002319/3051757812500) |
openlargest win 21.03x
| Shot from spot | Pays | Exact return, stopping here |
|---|---|---|
| 0 | 3.3x | 99% (99/100) |
| 1 | 3.6666x | 98.9982% (494991/500000) |
| 2 | 4.365x | 98.9982% (494991/500000) |
| 3 | 5.238x | 98.9982% (494991/500000) |
| 4 | 6.7397x | 98.9999% (24749998119/25000000000) |
| 5 | 9.1161x | 98.9989% (77342906781/78125000000) |
| 6 | 13.2204x | 98.9995% (96679231803/97656250000) |
| 7 | 21.0325x | 98.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.
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.