mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 06:32:26 +01:00
fix casino infinite loop
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user