Quantcast
millsworks.net
Gawker Artists
robbo cup

Main menu:



Be sure to read the Millsworks Blog.

NOW OPEN! Holly T-Shirt millsworks shop

Your Ad Here
Search millsworks.net
Subscribe

follow RobboMills at http://twitter.com
Archive Good Places Categories

Archive for 'Threedie Ceegie'

Threedie Ceegie - LOL Cats

.

The LOL Cats meme was stuck in my head. I needed to get it out.
I blame BoingBoing.

You can find more LOL Cats at icanhascheezburger.com and the LOL Code can be found at the Linux Programming pages.

Here’s a sample of their code:

HAI
I HAS A CHEEZBURGER ITZ 1

IM IN YR LOOP
VISIBLE “I has dis many: ” N CHEEZBURGER
IZ CHEEZBURGER BIGGER THAN 11 O RLY?
YA RLY
GTFO
NO WAI
UP CHEEZBURGER!!1
KTHX
KTHX

KTHXBYE

The I HAS A statement declares the variable CHEEZBURGER as 1. The IM IN YR LOOP statement starts the loop.

Next, we print out the current number using the VISIBLE function. You need to include N CHEEZBURGER rather than just CHEEZBURGER to print out the value of CHEEZBURGER. Then we do a comparison test, to see if the value is greater than the amount we want to trigger the end of the loop. UP CHEEZBURGER!!1 tells LOLCODE to add one to the value of CHEEZBURGER.

When we do the test, if it matches (YA RLY) LOLCODE will GTFO and exit the loop. If it doesn’t (NO WAI) it will iterate the variable again. Note that the loop ends with KTHX rather than KTHXBYE, which is recommended only for closing the whole program block. Finally, we end the program block with KTHXBYE.

I suspect human beings have way too much time on their hands. Speaking of which, read the Blog.

Cheers.