Every engine
03Engine

Hi-Lo

A card is shown; the player says whether the next is higher or lower (or the same rank); each right guess multiplies the prize by one over its chance.

Kind
cards, higher or lower, with a cash-out
Largest win
Set by the play, not by a table
Name in the files
hilo
Version
914a39bef96b

Download this engine as one file

What the player sets

Nothing before the round: the choices are made during it.

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

The round, in order

  1. at the start the cards left are 0..51; the first card is take(left) and is shown; the prize multiple starts at 1
  2. a guess is judged on rank against the next card, which is take(left), drawn at the guess: "hi" wins on a higher or equal rank (strictly higher when the shown card is a two), "lo" on a lower or equal rank (strictly lower when it is an ace), "same" on the same rank
  3. the chance p of the guess is counted exactly from the cards left before that draw; a guess that cannot win or cannot lose is refused
  4. a right guess multiplies the prize by 1/p and the next card becomes the shown one; a wrong guess ends the round with nothing
  5. skip: the shown card is replaced by take(left) without a guess; the prize does not change; refused when fewer than two cards are left
  6. the round ends by itself when a right guess leaves one card

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

  • hi, lo or same
  • skip
  • cashout: take the prize (after at least one right guess)

What it pays

The prize multiple times rtp (x10k). Each guess is paid at exactly one over its chance, so the return is the dial however the player plays.

Tables

No table: a card per guess. What is paid follows from the steps above.

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 card per guess.

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

24 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.

two right, then take it, dial 9900
seed 1510e29465ea8458523f7cdb0c2e9fa5c108d48c960410e70258e378d3dd0c34
settings {}
actions [["lo"],["lo"],["cashout"]]
draws int_below(52) = 51, int_below(51) = 45, int_below(50) = 40
pays 1.9479x (payX10k 19479)
five right, then take it, dial 9900
seed 3a57df5f077e70966688d888aa924adecb2f45412601681ced83f3c633d790f0
settings {}
actions [["hi"]]
draws int_below(52) = 43, int_below(51) = 28
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 24 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.