Compare commits
4
Commits
851f8b351a
...
33e536c654
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33e536c654 | ||
|
|
f697306766 | ||
|
|
348919bb52 | ||
|
|
5b5424cf1d |
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -76,8 +76,8 @@ print("what is your bet?")
|
||||
bet = tonumber(io.read())
|
||||
print("what is your guess 1 to 15?")
|
||||
userGess = tonumber(io.read())
|
||||
if bet > money then
|
||||
print("You do not have enough funds")
|
||||
if not bet or bet > money then
|
||||
print("You do not have enough funds or did not enter a bet.")
|
||||
sleep(3)
|
||||
shell.run("reboot")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user