Skip to main content

Slot Simulation

This node runs a high-speed simulation of the slot game logic.

The Slot Simulation node allows you to test the math model (RTP, Hit Frequency) by running thousands of spins instantly on the server.

The Slot Simulation node is a powerful development tool. Instead of spinning manually one by one, you can request the backend to simulate 10,000+ spins using the current game configuration. It returns statistical data like Return to Player (RTP) percentage and Hit Frequency.

Inputs

Simulation Configuration

DataDescription
Reel StripsThe reel strips to use.
Bet AmountThe bet per spin.
Number of SpinsHow many spins to simulate. Max: 10,000.
RowsNumber of rows (e.g., 3).
ColumnsNumber of reels (e.g., 5).
Payout FormulaThe formula used for paytable generation.
Result Precision"Basic" (summary only) or "Detailed" (includes time series data).

Plugins

DataDescription
Free SpinsEnable/Disable free spins logic.
Cascading ReelsEnable/Disable cascading logic.
Reel WaysEnable/Disable "Ways" logic (vs Paylines).

Actions

SignalDescription
SimulateStarts the simulation.

Outputs

Simulation Results

DataDescription
RTPReturn to Player percentage (Total Winnings / Total Bets * 100).
Hit FrequencyPercentage of spins that resulted in a win.
Total WinningsTotal amount won.
Total BetsTotal amount bet.

Detailed Results

DataDescription
Total Free Spins WonTotal number of free spins triggered.
RTP Data SeriesArray of RTP values over time (for plotting).

Events

SignalDescription
SuccessTriggered when simulation completes.
FailureTriggered if simulation fails.

Usage

Balancing the Game

  1. Configure your game parameters (Reel Strips, Payout Formula).
  2. Set Number of Spins to 1000.
  3. Trigger Simulate.
  4. Check RTP. If it's too high (e.g., 150%), adjust your Payout Formula or Symbol Weights and try again.
  5. Aim for a target RTP (e.g., 96%).

Detailed Behavior

  • Server-Side: The simulation runs on the XFORGE cloud engine to ensure speed and accuracy matching the real game logic.
  • Plugins: Ensure you enable the same plugins (Free Spins, Cascading) that your actual game uses, or the stats will be wrong.

Troubleshooting

  • Timeout: Simulating too many spins (e.g., >10,000) with complex logic (Cascading + Free Spins) might time out. Reduce the number of spins or complexity.