Appearance
Step 4: Place bets and collect
Your session is up and the config is loaded. Now the round loop needs two more calls. placeBet starts or continues a round. collect banks winnings when the game offers that choice.
What to do
- Restore the loaded round before enabling any money action. Apply effective stakes.
- For a new player-requested round, call
placeBet({ backendURL, token, stake, config })under a request lock. - Render the scenario. Finish required timing, operator notifications, and animation reporting.
- Inspect round status,
canCollect, pending choices, andinProgress, in that order. Use the slot controller. - Wait for player input where a choice or cashout is offered. Continue only as the vertical permits.
- Reconcile failed or lost responses through recovery. Never automatically retry a money request.
Partial collection can protect winnings inside an open round without crediting the wallet. Full collection omits the amount. See gamble and banking.
TIP
Use approved test outcomes to exercise wins, bonus triggers, and losses. See Cheating for test-environment controls.
Where to read more
- Getting Started with hizi engine SDK: the ordered implementation path and validated session setup.
- Game Flow: one worked, class-based implementation of the whole round lifecycle. Use it as a model for your client.
- Response Handling: the
IGameResultshape, multi-step continuations, and progression counters. - Error Handling: the response union, recoverable error codes, and what to do with each.
- Game Guides: the
scenarioshape for each game type, and anyadditionalDatathat type's rounds need.