mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +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) {
|
if (playerWin && Math.random() > 0.9) {
|
||||||
playerWin = false;
|
playerWin = false;
|
||||||
while (this.state.strategy.match(n)) {
|
while (this.state.strategy.match(n)) {
|
||||||
n++;
|
console.log("er)");
|
||||||
|
n = (n + 1) % 36;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (playerWin) {
|
if (playerWin) {
|
||||||
|
Loading…
Reference in New Issue
Block a user