fix casino infinite loop

This commit is contained in:
Olivier Gagnon 2021-09-21 16:58:20 -04:00
parent 637f88efcd
commit 06880c68e1

@ -196,7 +196,8 @@ export class Roulette extends Game<IProps, IState> {
if (playerWin && Math.random() > 0.9) {
playerWin = false;
while (this.state.strategy.match(n)) {
n++;
console.log("er)");
n = (n + 1) % 36;
}
}
if (playerWin) {