Language Hourglass
Date: | 04/20/05 |
Author: | David Croft |
URL: | n/a |
Comments: | 1 |
Info: | n/a |
Score: | (2.95 in 19 votes) |
; ; source/Beer ; Hourglass code for the 99 bottles of beer project! ; by David Croft <david@davidc.net> ; define_variable"bottles" define_variable"ply" define_variable"players" ; this should match your capacities file players=32 default define_label"input" input ply reboot 253 if ply>players then goto"new" ditch_player ply fe[ditch_player ply] goto"input" define_label"new" ply-=players if ply>players then goto"input" select_player ply bottles=99 define_label"bottles1" $plural="" if bottles?1 then $plural="s" message 1 bottles-=1 if bottles>0 then message 2:goto"bottles1" message 3 send_messages ditch_player ply fe[ditch_player ply] goto"input"
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
regalis said on 08/05/09 09:35:46
The ugliest Sourcecode i've ever seen :D