Page 1 of 1

99 bottles of beer

Posted: Sun Oct 12, 2008 8:59 pm
by Scribbit
I was checking out a website that collects programs in different languages that all do the same thing: generate the lyrics to "99 bottles of beer on the wall."

This is the entry for ZZT.

This code does not work. It prints only the verses for 99, 98, 2, 1, and 0-- and it doesn't even do the "1" verse right!

I plan to rectify this. With lots of objects doing #char. Anyone have a better idea?

Posted: Mon Oct 13, 2008 5:45 am
by Quantum P.
You could do it the long way (listing every number).

Or, if you flash the text across the bottom of the screen, you could alternate between "9 " and " 9" really fast, to make it look like it said "99". Using some clever tricks with zapping labels, you could set up a crude counter.

Posted: Mon Oct 13, 2008 1:48 pm
by Scribbit
Oh yeah, nice ideas! Using persistance of vision would never have occured to me, but that could work. Hmm...