Reel Strips Generator
This node generates the layout of the reel strips based on symbol weights.
The Reel Strips Generator node creates the virtual "tapes" of symbols used for the slot machine.
The Reel Strips Generator node creates the underlying data structure for the slot reels. Instead of determining the result of a single spin, it generates the long strips of symbols that the reels "spin" through. It uses weighted probabilities to determine how often each symbol appears on the strips.
Parameters
| Data | Description |
|---|
| Symbol Weights | Array of numbers representing the relative frequency of each symbol. |
| Random Seeds | Array of seeds for the random number generator (one per reel). |
| Column Size | Number of reels to generate. Default: 5. |
Actions
| Signal | Description |
|---|
| Do | Triggers the generation. |
Outputs
Results
| Data | Description |
|---|
| Reel Strips | A 2D array representing the generated strips for each reel. |
Events
| Signal | Description |
|---|
| Done | Triggered when generation is complete. |
Usage
Game Initialization
- Define Symbol Weights (e.g.,
[10, 20, 30, 40], where symbol 1 appears least often).
- Generate random seeds.
- Trigger Do at the start of the game session.
- Store Reel Strips in a variable.
- Use these strips in Slot Spin to determine results.
Detailed Behavior
- Algorithm: Uses a Fisher-Yates shuffle with a seeded random number generator to distribute symbols according to their weights.
- Determinism: Using the same seeds and weights will always produce the same strips.
Troubleshooting
- Empty Output: Ensure Symbol Weights is a non-empty array of positive numbers.