Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language TinTin++

(new version)

Date:05/30/05
Author:Igor van den Hoven
URL:n/a
Comments:0
Info:http://tintin.sourceforge.net
Score: (3.00 in 8 votes)
/*
    99 Bottles of beer for TinTin++ (Mud Client)
*/

#loop {99 1}
{
    #showme {@beer{$loop} on the wall};
    #showme {@beer{$loop}......};
    #showme {Take one down pass it around, @beer{$loop-1} on the wall.\n}
}

#function {beer}
{
    #math {val} {&0};

    #if {$val == 1}
    {
        #variable {result} {$var bottle of beer}
    }
    {
        #if {$val == 0}
        {
            #variable {result} {No more bottles of beer}
        }
        {
            #variable {result} {$val bottles of beer}
        }
    }
}

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
version 2.0Igor van den Hoven08/16/090
historic versionAndrew Forster04/20/050

Comments

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!

Name:

eMail:

URL:

Security Code:
  
Comment: