forked from minecartchris/CC-Casnio
fixed more shit
This commit is contained in:
+4
-3
@@ -64,8 +64,8 @@ local function input(message)
|
|||||||
return io.read()
|
return io.read()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function calculate_winnings(got, bet)
|
local function calculate_winnings(got, b)
|
||||||
local b = tonumber(bet) or 0
|
--local b = tonumber(bet) or 0
|
||||||
if got[1] == got[2] and got[2] == got[3] then
|
if got[1] == got[2] and got[2] == got[3] then
|
||||||
return b * 10
|
return b * 10
|
||||||
elseif got[1] == got[2] or got[2] == got[3] or got[1] == got[3] then
|
elseif got[1] == got[2] or got[2] == got[3] or got[1] == got[3] then
|
||||||
@@ -129,7 +129,7 @@ local function run()
|
|||||||
|
|
||||||
term.clear()
|
term.clear()
|
||||||
print("Welcome ".. username .." have fun!")
|
print("Welcome ".. username .." have fun!")
|
||||||
local bet_input = input("Bet: ")
|
local bet_input = tonumber(input("Bet: "))
|
||||||
if money < bet_input then
|
if money < bet_input then
|
||||||
print("please get more money or bet less as you can't bet more then you have")
|
print("please get more money or bet less as you can't bet more then you have")
|
||||||
end
|
end
|
||||||
@@ -158,6 +158,7 @@ local function run()
|
|||||||
sleep(0.3)
|
sleep(0.3)
|
||||||
draw_display(final)
|
draw_display(final)
|
||||||
end
|
end
|
||||||
|
sleep(30)
|
||||||
end
|
end
|
||||||
shell.execute("clear")
|
shell.execute("clear")
|
||||||
while true do
|
while true do
|
||||||
|
|||||||
Reference in New Issue
Block a user