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.
Data
| Data | Description |
|---|
| Reels | The 2D array of symbols. |
| Custom Paylines | Optional. Array of payline definitions. If omitted, uses a default set of 20 lines. |
Parameters
| Data | Description |
|---|
| Wild Symbol | The ID of the Wild symbol (substitutes for any other symbol). |
| Free Spins Symbol | The ID of the Scatter/Free Spin symbol (usually pays differently, often ignored by standard line checks). |
| Min Consecutive Symbols | Minimum number of matches to count as a win. Default: 3. |
Actions
| Signal | Description |
|---|
| Do | Triggers the check. |
Outputs
Results
| Data | Description |
|---|
| Winning Lines | An array of winning line data. |
| Paylines | The paylines used for the check. |
Events
| Signal | Description |
|---|
| Done | Triggered when the check is complete. |
Usage
Standard Spin
- After generating reels, pass them to Check Wins.
- Set Wild Symbol (e.g., 9).
- Trigger Do.
- 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.