Skip to main content

Check Wins

This node evaluates the reels against paylines to find winning combinations.

The Check Wins node is the core logic for determining if a spin is a winner.

The Check Wins node iterates through a list of defined paylines. For each payline, it checks the symbols on the reels to see if they form a winning sequence (e.g., 3 or more matching symbols starting from the left). It handles Wild symbols substitutions.

Inputs​

Data​

DataDescription
ReelsThe 2D array of symbols.
Custom PaylinesOptional. Array of payline definitions. If omitted, uses a default set of 20 lines.

Parameters​

DataDescription
Wild SymbolThe ID of the Wild symbol (substitutes for any other symbol).
Free Spins SymbolThe ID of the Scatter/Free Spin symbol (usually pays differently, often ignored by standard line checks).
Min Consecutive SymbolsMinimum number of matches to count as a win. Default: 3.

Actions​

SignalDescription
DoTriggers the check.

Outputs​

Results​

DataDescription
Winning LinesAn array of winning line data.
PaylinesThe paylines used for the check.

Events​

SignalDescription
DoneTriggered when the check is complete.

Usage​

Standard Spin​

  1. After generating reels, pass them to Check Wins.
  2. Set Wild Symbol (e.g., 9).
  3. Trigger Do.
  4. Pass Winning Lines to Calculate Winnings.

Detailed Behavior​

  • Left-to-Right: Matches must start from the first reel (index 0).
  • Wilds: Wild symbols count as the symbol they are substituting for.
  • Priority: If a line consists only of Wilds, it might be treated differently depending on game rules (this node treats it as a win of Wilds).

Troubleshooting​

  • Missing Wins: Check Min Consecutive Symbols. If set to 3, a match of 2 symbols won't trigger a win.