Tuesday 21 December 2010

Print the "99 bottles of beer on a wall" song... in LOLCODE

I came by this (the other day). And I just can't resist putting it on here.

The program is from:

Language LOLCODE

Print the "99 bottles of beer on a wall" song

in lolcode:

BTW LOLCODE version of 99 Bottles of beer
BTW By Mike Gogulski (http://www.gogulski.com/) 13 July 2007
BTW LOLCODE is a programming language by and for lolcats
BTW http://www.lolcode.com/
BTW
BTW Tested with:
BTW sjlol version 1.1 for lolcode 1.0
BTW Win32 binary: http://www.rit.edu/~sjl7678/sjlol.zip
BTW Home: http://lolcode.com/implementations/sjlol
BTW Online interpreter: http://wealhtheow.rh.rit.edu:8080/index
BTW (Doesn't work with comments, so delete all "BTW" lines)
BTW
BTW Save as 99BOTTLZ.LOL, start with "sjlol 99bottlz.lol"
BTW
BTW LOLCATZ CNT SPEL 2 GUD
BTW
HAI
VISIBLE "O HAI! IM IN UR BEERZ!"
I HAS A VAR
LOL VAR R 99
IM IN YR LOOP
VISIBLE VAR!
VISIBLE " BOTTLZ OF BEER N TEH WALL, "!
VISIBLE VAR!
VISIBLE " BOTTLZ OF BEER!"
VISIBLE "TAKE 1 DWN, PAS IT AROUN, "!
NERFZ VAR!!
IZ VAR LIEK 0?
YARLY
VISIBLE "NO MOAR"!
NOWAI
VISIBLE VAR!
KTHX
VISIBLE " BOTTLZ OF BEER N TEH WALL!"
IZ VAR LIEK 0?
GTFO
KTHX
KTHX
VISIBLE "GIEV MOAR PLZ! KTHXBAI!"
KTHXBYE

No comments:

Post a Comment