diff --git a/prog2/BlackJack.lua b/prog2/BlackJack.lua index 8d0d9dc..93b26e3 100644 --- a/prog2/BlackJack.lua +++ b/prog2/BlackJack.lua @@ -89,7 +89,7 @@ money = tonumber(money) print("what is your bet?") local bet = io.read() bet = tonumber(bet) -if bet < 20 then +if not bet or bet < 20 then bet = 20 end if bet > money then