Skip to content

Games

Guides for reading game responses from specific hizi engine game types. Each guide explains the scenario data structure returned by placeBet and how to integrate it into your frontend.

Available Guides

Slot Games

How to read slot game responses (IResult shape from @hizi.io/slot-types) — boards, wins, cascades, hold & win, sticky symbols, multiplier collection, wheel features, and more.

Plinko

How to read plinko game responses — bucket indexes, row/risk selection via buy features, multiplier lookup from loadConfig, and ball drop animation.

Frogger

How to read frogger game responses — multi-step wager stake flow, risk selection via buy features, cashout multiplier ladder from loadConfig, and collect-or-continue game loop.

Mines

How to read mines game responses — sending pick positions via additionalData, reading the board array for tile states, mine count selection via buy features, cashout multiplier progression, and collect-or-continue game loop.

Hi/Lo

How to read Hi/Lo game responses — playerChoice-driven higher/lower/skip flow, dynamic card odds, skip re-dealing within the same round, multiplier rounding, and collect-or-continue game loop.

Keno

How to read keno game responses — sending player numbers via additionalData (or auto-pick), reading playerNumbers and drawnNumbers from the enriched scenario, pick count and risk selection via buy features, and pay table rendering.

Over/Under

How to read over/under game responses — single-roll instant resolution, threshold/direction selection via buy features, multiplier lookup, and win calculation.

Roulette

How to read roulette game responses — composing multi-bet rounds via additionalData, the polymorphic selection shape per bet type, the per-bet settlement[] array with won/payout/winAmount, enriched scenario fields (color, oddEven, dozen, column), and the two RTP mechanisms.

Blackjack

How to play blackjack via placeBet — initial deal with optional side bets, multi-step action flow (hit/stand/double/split/insurance/evenMoney) driven by playerChoice, and reading the final IBlackjackScenario with dealer, hands, side-bet results, and insurance payouts.

Crash

How to play crash — opening a round with one or more bets via crashPlaceBetData, listening to the server-driven curve over websocket events (roundStarted / roundTick / betCashedOut / roundEnded / balanceUpdated), and triggering manual cashouts via collect + crashCollectData.