This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
SuicidalSTDz's profile picture

Bottles of beer on the wall!

Started by SuicidalSTDz, 04 March 2013 - 06:22 PM
SuicidalSTDz #1
Posted 04 March 2013 - 07:22 PM
local beer = 99
while true do
  term.clear()
  term.setCursorPos(1,1)
  if not beer == 0 then
   print([[beer.." bottle(s) of beer on the wall! "..beer.." bottle(s) of beer! Take one down pass it around, "..beer-1.." bottle(s) of beer on the wall"]])
   beer = (beer-1)
   sleep(1.5)
  else
   return print("No more bottles of beer on the wall!")
  end
end

Just got really, really, bored… Hope you like it! (No I don't)
Sammich Lord #2
Posted 04 March 2013 - 07:44 PM
Somebody got really bored :P/>
SuicidalSTDz #3
Posted 04 March 2013 - 07:51 PM
Somebody got really bored :P/>
Just a bit :D/>

Wait! There is nothing like this on CC Forums is there. HA! Finally made something that no one else has made :D/>
remiX #4
Posted 05 March 2013 - 01:29 AM
It's a shame that it doesn't work ;P
BigSHinyToys #5
Posted 05 March 2013 - 03:46 AM

for beer = 99,1,-1 do
    term.clear()
    term.setCursorPos(1,1)
    print( beer.." bottles of beer on the wall "..beer.." bottles of beer. You take one down pass it around "..(beer - 1).." bottles of beer on the wall.")
    sleep(1.5)
end
print("No more bottles of beer on the wall!")
compact
SuicidalSTDz #6
Posted 05 March 2013 - 09:01 AM
It's a shame that it doesn't work ;P
i never did test it :)/> Oh well, it was 4 am when i made it