Language TinTin++
(version 2.0)
Date: | 08/16/09 |
Author: | Igor van den Hoven |
URL: | n/a |
Comments: | 0 |
Info: | http://tintin.sourceforge.net |
Score: | (2.90 in 10 votes) |
#nop 99 bottles of beer for TinTin++ (a Mud Client) #function {bottles_of_beer} { #math value %0; #switch {$value} { #case 0 { #return no more bottles of beer }; #case 1 { #return 1 bottle of beer }; #default { #return $value bottles of beer } } } #loop 99 0 number { #if {$number > 0} { #showme @bottles_of_beer{$number} on the wall, @bottles_of_beer{$number}.; #showme Take one down pass it around, @bottles_of_beer{$number - 1} on the wall.; #showme; }; #else { #showme No more bottles of beer on the wall, no more bottles of beer.; #showme Go to the store and buy some more, 99 bottles of beer on the wall.; } }
Download Source | Write Comment
Alternative Versions
Version | Author | Date | Comments | Rate |
---|---|---|---|---|
new version | Igor van den Hoven | 05/30/05 | 0 | |
historic version | Andrew Forster | 04/20/05 | 0 |
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments