Skip to main content

Check Wins

This node analyzes slot machine reel results to identify winning combinations and paylines.

The Check Wins node examines symbol grids to detect winning patterns based on paylines and paytables.

The Check Wins node is responsible for analyzing the symbols on the slot machine reels after a spin to identify which paylines contain winning combinations. It processes the symbol grid against defined paylines and paytables to determine all valid wins.

Inputs

Data

DataDescription
Reel Results2D array representing the symbol grid after a spin
PaylinesArray defining payline patterns
PaytableObject defining winning symbol combinations

Parameters

DataDescription
Wild SymbolSymbol ID that acts as wild (default: 9)
Minimum SymbolsMinimum consecutive symbols required for a win (default: 3)

Actions

SignalDescription
DoTriggers the win checking process

Outputs

Results

DataDescription
Winning LinesArray of winning line combinations found
Total Winning LinesCount of winning lines detected

Events

SignalDescription
DoneTriggered when win checking is complete

Usage

Win Detection Process

  1. Analyzes Each Payline: Iterates through all defined paylines
  2. Checks Symbol Sequences: Examines symbols along each payline path
  3. Handles Wild Symbols: Substitutes wilds for other symbols
  4. Validates Against Paytable: Confirms combinations exist in paytable
  5. Records Winning Lines: Stores details of each winning combination

Example Use Cases

  1. Standard Slot Games: Check traditional left-to-right paylines
  2. Multi-way Games: Analyze hundreds of potential winning combinations
  3. Feature Games: Special win checking for bonus rounds
  4. Demo Mode: Test win detection with different configurations