Small change when the game is won, make sure to add the additional

winnings to the user winnings
pull/197/head
Chuck 2023-09-03 21:27:04 -07:00
parent 1e3512b31d
commit 07b1766594
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ def handle_payout(gambler, state, game):
raise Exception("Attempted to payout a game that has not finished.")
if split_status == BlackjackStatus.WON:
game.winnings = game.wager
game.winnings += game.wager
payout += game.wager * 2
elif split_status == BlackjackStatus.LOST:
game.winnings += -game.wager