Skip to main content

Spin Calculate

This node performs comprehensive spin calculations including reel generation, win detection, and payout computation.

The Spin Calculate node handles the complete mathematical calculation of a slot machine spin.

The Spin Calculate node orchestrates the complete slot machine spin calculation process, from reel symbol generation through win detection to final payout calculation. It serves as a comprehensive calculation engine for slot game mechanics.

Inputs

Game Configuration

DataDescription
Reel StripsSymbol sequences for each reel
PaytablePayout values for winning combinations
PaylinesLine patterns for win detection
Bet AmountPlayer's bet for this spin

Random Input

DataDescription
Random SeedSeed for deterministic results (optional)

Actions

SignalDescription
CalculateExecutes the complete spin calculation

Outputs

Spin Results

DataDescription
Reel ResultsFinal symbol positions after spin
Winning LinesAll detected winning combinations
Total WinSum of all winnings from this spin
Win DetailsDetailed breakdown of each win

Events

SignalDescription
Calculation CompleteTriggered when all calculations finish

Usage

Complete Spin Processing

The Spin Calculate node handles the entire spin calculation pipeline:

  1. Reel Generation: Uses weighted randomization to determine symbol positions
  2. Win Detection: Analyzes all paylines for winning combinations
  3. Payout Calculation: Computes winnings based on paytable and bet amount
  4. Result Compilation: Packages all results into structured output

Example Use Cases

  1. Single Spin Processing: Calculate results for individual spins
  2. Batch Simulation: Process multiple spins for testing
  3. Game Validation: Verify spin mechanics and math accuracy
  4. Development Testing: Test game behavior with controlled inputs