@@ -80,7 +80,9 @@ export const wonBonusWildCards = (): boolean => Math.random() < 0.3;
80
80
81
81
// not matched symbols are different and none of them is wildcard
82
82
const areSymbolsNotMatched = ( symbolAType : SymbolType , symbolB : Symbol ) : boolean =>
83
- symbolAType !== symbolB . type && ( symbolAType !== WILDCARD_METADATA . type && symbolB . type !== WILDCARD_METADATA . type ) ;
83
+ symbolAType !== symbolB . type &&
84
+ symbolAType !== WILDCARD_METADATA . type &&
85
+ symbolB . type !== WILDCARD_METADATA . type ;
84
86
85
87
export const getScreenWithBonusWildcards = (
86
88
slotScreen : Symbol [ ] [ ]
@@ -113,16 +115,16 @@ const getPayLineResult = (slotScreen: Symbol[][], payLine: PayLine): PayLineResu
113
115
if ( numberOfSymbolsInLine >= MIN_MATCH_SEQUENCE_NUMBER ) {
114
116
break ;
115
117
}
116
-
117
- // If no win sequence yet, check if previous symbol is a Wildcard, which was not set as currentSymbol in the previous iteration
118
+
119
+ // If no win sequence yet, check if previous symbol is a Wildcard, which was not set as currentSymbol in the previous iteration
118
120
// because regular symbols are preferentially stored instead, to be able to check if the next symbols are a match with them
119
121
120
- // if index of previous symbol is higher than MIN_MATCH_SEQUENCE_NUMBER, there is no chance to match a line
122
+ // if index of previous symbol is higher than MIN_MATCH_SEQUENCE_NUMBER, there is no chance to match a line
121
123
// even if we have a wildcard in the previous posiiton, so break
122
124
if ( positionIndex - 1 > MIN_MATCH_SEQUENCE_NUMBER - 1 ) {
123
125
break ;
124
126
}
125
-
127
+
126
128
const previousPosition : Position = payLine . positions [ positionIndex - 1 ] ;
127
129
const previousSymbol : Symbol = slotScreen [ previousPosition . reel ] [ previousPosition . row ] ;
128
130
// Check if previous symbol is wildcard, so the new line can start being evaluated from the wildcard position
@@ -132,12 +134,12 @@ const getPayLineResult = (slotScreen: Symbol[][], payLine: PayLine): PayLineResu
132
134
initialPositionIndex = positionIndex - 1 ;
133
135
continue ;
134
136
}
135
-
136
- // if no wildcard in previous position and currentSymbolIndex is higher than MIN_MATCH_SEQUENCE_NUMBER, there is no chance to match, so break
137
+
138
+ // if no wildcard in previous position and currentSymbolIndex is higher than MIN_MATCH_SEQUENCE_NUMBER, there is no chance to match, so break
137
139
if ( positionIndex > MIN_MATCH_SEQUENCE_NUMBER - 1 ) {
138
140
break ;
139
141
}
140
-
142
+
141
143
// if there is still a chance to match, adjust initial checking variables and continue to next iteration
142
144
currentSymbolType = symbol . type ;
143
145
numberOfSymbolsInLine = 1 ;
@@ -185,10 +187,7 @@ export const getScreenResult = (slotScreen: Symbol[][]): SlotScreenResult => {
185
187
freeSpins += FREE_SPINS_NUMBER ;
186
188
}
187
189
188
- const winFactor : number = findWinFactor (
189
- currentSymbolType as SymbolType ,
190
- numberOfSymbolsInLine
191
- ) ;
190
+ const winFactor : number = findWinFactor ( currentSymbolType as SymbolType , numberOfSymbolsInLine ) ;
192
191
winAmount += winFactor ;
193
192
winPayLines . push ( {
194
193
...payLine ,
0 commit comments