Language Alice 2.x
|Author:||Kevin G. Mess|
|Score:||(2.25 in 4 votes)|
world Events When the world starts Do: world.99bottles Methods world.99bottles() bottles = 99, text = "99.0 bottles" // Alice 2.2 Implementation // Author: Kevin G. Mess // Date: 04/21/2012 While ( bottles != 0 ) skater_guy say ( text joined with " of beer on the wall," ) skater_guy say ( text joined with " of beer" ) skater_guy say ( "Take one down, pass it around," ) decrement bottles by 1 If ( bottles == 1 ) text set value to "1.0 bottle" Else text set value to ( ( bottles as string ) joined with " bottles" ) skater_guy say ( text joined with " of beer on the wall." ) Wait 1 second
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!