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 U-Code

(UberMUD)

Date:08/16/07
Author:Gordon Henderson
URL:http://www.drogon.net/
Comments:0
Info:n/a
Score: (3.50 in 2 votes)
func @.bob
{
  @.bottles = 99 ;
  @._bob () ;
  echo ("No more bottles of beer on the wall.\n") ;
}

func @._bob
{
  echo (@.bottles, " bottles of beer on the wall, ",
        @.bottles, " bottles of beer!\n") ;
  echo ("Take one down, pass it around and there'll be:\n") ;
  @.bottles = @.bottles - 1 ;
  if (@.bottles == 0)
    return ;
  echo ("  ", @.bottles, " bottles of beer on the wall.\n\n") ;
  @._bob () ;
}

Download Source | Write Comment

Alternative Versions

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: