Back to Documentation
Win Evaluation Node

WinEvaluatePayways

Evaluate wins using ways-to-win mechanic across adjacent reels

Inputs

paymentConfigIdstringrequired

ID of the payment config to use

Outputs

No data outputs (execution flow only)

Overview

Evaluates wins using the "payways" (aka "ways to win") mechanic. Any matching symbol on adjacent reels from left-to-right counts, regardless of row position. The number of ways is the product of matching symbol counts on each consecutive winning reel.

Disabled Position Handling

Positions with the disabled:true tag are skipped during symbol counting. They do not contribute to the ways calculation.

Algorithm

  1. Build grid: map each reel to its symbols
  2. For each non-wild, non-scatter symbol:
    • Count consecutive reels from left containing the symbol (or wild)
    • Skip positions with disabled:true
    • Calculate ways = product of matching counts per reel
    • Look up payout from paytable
  3. Write win tags to global entity

Example

Grid:
┌───┬───┬───┬───┬───┐
│ A │ A │ A │ K │ Q │
├───┼───┼───┼───┼───┤
│ K │ A │ W │ A │ J │   W = Wild
├───┼───┼───┼───┼───┤
│ Q │ W │ A │ J │ 10│
└───┴───┴───┴───┴───┘

Symbol A:
- Reel 1: 1 A
- Reel 2: 2 (A + W)
- Reel 3: 2 (A + W)
- Reel 4: 1 A (breaks here due to only 1)

Ways: 1 × 2 × 2 × 1 = 4 ways
Count: 4 reels