Skip to content

Instantly share code, notes, and snippets.

@guaracy
Last active February 9, 2016 04:11
Show Gist options
  • Save guaracy/a59f70bb9382c0cb0eec to your computer and use it in GitHub Desktop.
Save guaracy/a59f70bb9382c0cb0eec to your computer and use it in GitHub Desktop.
Red []
max: 99
bottles: max
while [bottles > 0] [
bottle_word: either bottles = 1 ["bottle"]["bottles"]
if bottles <> max [
print "Take one down and pass it arround"
print [bottles bottle_word "of beer on the wall"]
print ""
]
print [bottles bottle_word "of beer on the wall"]
print [bottles bottle_word "of beer"]
bottles: bottles - 1
]
print "Take one down and pass it arround"
print "No more bottles of beer on the wall"
print ""
print "Go to the store and buy some more"
print [max "bottles of beer on the wall"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment