Sets a new temporary value for symbolsPerReel. The value will be persisted until changed by the user
or until the simulation is reset or the next simulation starts.
Sets a new temporary value for reelsAmount. The value will be persisted until changed by the user
or until the simulation is reset or the next simulation starts.
Array of booleans representing anticipation for reels. Anticipation is a visual effect
that usually teases potential free spins when one more scatter is needed to trigger it.
For example, an anticipation array of [false, false, false, true, true] can instruct the client
to apply anticipation effects to reels 4 and 5.
Combines multiple arrays of reel stops into a single array of reel stops.
If you had multiple scatter variants, you could use this to get a single array
of all scatter positions in a reel set.
Tumbles the board. All given symbols will be deleted and new symbols will fall from the top.
If you use the symbols from winCombinations returned by a win type, ensure symbols are deduped
to prevent bugs during tumbling. For example, the same Wild symbol may be associated with multiple
win combinations. To dedupe, use ctx.services.game.dedupeWinSymbols().
The resulting symbol positions are safe to use for tumbling.
The function returns the new symbols that were added to each reel.
For example, newBoardSymbols will be an object where the keys are the reel indexes
and the values are the added symbols for that reel.
This method is experimental and may be changed or replaced in the future.
If you plan to use this method, ensure padSymbols is set to 0 in the game config
or you will most likely experience bugs or unexpected behavior.
While tumbleBoard() remembers the last tumble and can seamlessly tumble multiple times in a row,
tumbleBoardAndForget() will not remember what it did. This is useful to do a single one-off tumble.
While tumbleBoard() always uses the last used reel set that the board was drawn with,
tumbleBoardAndForget() can tumble symbols from an arbitrary reel set
and won't override any internal board state (besides the symbols on the reels).
This can be particularly useful if you need to fill a part of the board with some blocker symbols
(think of the game Templar Tumble, or Temple Tumble).
If you plan to use this method, ensure padSymbols is set to 0 in the game config
or you will most likely experience bugs or unexpected behavior.
Use of AI on this page: All texts were initially written by hand and many were later revised by AI for improved flow. All AI generated revisions were carefully reviewed and edited as needed.