Diagram of playing game

Flow details

  1. Player clicks the Spin button on the game screen. A doSpin request is sent to the Naga Games Game server.
  2. Game server subtracts money from the player balance and sends a Bet request to the Operator server. If the request cannot be handled by the Operator, Naga Games server will repeat it 2 times. After repeat 2 times still cannot be handled:
    • Request Timeout: Naga Games Game server will call api Cancel bet.
    • Error from operator: status bet will update PLACEBET_OPERATOR_ERROR.

📘

For free spin, a bet request with ZERO bet amount will be sent.

  1. If the Bet request is successful, the Operator then checks if the player has enough funds in the wallet to make a bet. If the player’s balance is enough, Operator will subtract from it the requested amount and return the updated balance. If there is not enough money in the wallet, Operator returns an error.
  2. Game server updates the player’s balance returned from Operator.
  3. Game server processes spin (gets new combinations on the reels, checks combinations that trigger free spins or bonus game features, calculates win amount, etc).
  4. Game server adds win amounts to the player balance and sends a Payout request to the Operator. If the request cannot be handled by the Operator, Naga Games game server will repeat it 2 more times and follow the reconciliation process until it receives a response from the Operator server.
  5. Operator adds money to the player's wallet and returns the player’s updated balance.
  6. Game server updates the player’s balance returned from Operator.
  7. Game server returns responses to the game client containing the updated player balance. Response may also contain updated reels, information about winning lines, triggered features and win amount.

📘

If the player loses, the flow ends at this point. Game server will return the bet result to the game client.