mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 15:37:51 -08:00
Player balance is now deducted on bets
This commit is contained in:
@@ -157,7 +157,8 @@ public class Roulette {
|
||||
}
|
||||
|
||||
if (betNumber > 0 && betNumber <= 50 && betValue >= 5 && betValue <= 500) {
|
||||
bets[i] = new Bet(betValue, betNumber);
|
||||
bets[i] = new Bet(betNumber,betValue);
|
||||
playerBalance -= betValue;
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user