Posted 28 October 2013 - 09:56 AM
Hi, I was writing my weird horse race simulator and I came across this while simulating….
For input string: "1horse"
I tried spacing some stuff and ends etc… I just can't figure it out.
Here is my code… I figured out how to get it from CCDesk
Please help!
-Agoldfish
For input string: "1horse"
I tried spacing some stuff and ends etc… I just can't figure it out.
Here is my code… I figured out how to get it from CCDesk
--VARIABLES AND FUNCTIONS--
local randomize = math.random(1,6)
local 1horse = "Gitty Bomb"
local 2horse = "Sleeper"
local 3horse = "Outside Charge"
local 4horse = "From the back"
local 5horse = "Take Charge South Man!"
local 6horse = "A New Life"
---------------------------------------
function clearScreen()
term.clear()
term.setCursorPos(1, 1)
end
--PROGRAM START--
print"And... They're off!"
sleep(2)
clearScreen()
print(1horse)
Please help!
-Agoldfish