Language TorqueScript
(Torque game engine's language)
Date: | 07/19/07 |
Author: | Soldier of Light |
URL: | n/a |
Comments: | 0 |
Info: | http://garagegames.com |
Score: | (3.00 in 2 votes) |
function beer() { for(%i = 99; %i >= 0; %i--) { if(%i == 1) { echo("1 more bottle of beer on the wall, 1 more bottle of beer. Take it down, pass it around, no more bottles of beer on the wall."); } else if(%i == 0) { echo("No more bottles of beer on the wall, no more bottles of beer. Go to the store, buy some more, 99 bottles of beer on the wall."); } else { echo(%i @ " more bottles of beer on the wall, " @ %i @ " more bottles of beer. Take one down, pass it around, " @ (%i - 1) @ " bottles of beer on the wall."); } } } beer();
Download Source | Write Comment
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