65
16
Recreate '99 bottles of beers on the wall'.
The desired output is this:
99 bottles of beer on the wall, 99 bottles of beer.
Take one down and pass it around, 98 bottles of beer on the wall.
98 bottles of beer on the wall, 98 bottles of beer.
Take one down and pass it around, 97 bottles of beer on the wall.
97 bottles of beer on the wall, 97 bottles of beer.
Take one down and pass it around, 96 bottles of beer on the wall.
96 bottles of beer on the wall, 96 bottles of beer.
Take one down and pass it around, 95 bottles of beer on the wall.
95 bottles of beer on the wall, 95 bottles of beer.
Take one down and pass it around, 94 bottles of beer on the wall.
....
3 bottles of beer on the wall, 3 bottles of beer.
Take one down and pass it around, 2 bottles of beer on the wall.
2 bottles of beer on the wall, 2 bottles of beer.
Take one down and pass it around, 1 bottle of beer on the wall.
1 bottle of beer on the wall, 1 bottle of beer.
Go to the store and buy some more, 99 bottles of beer on the wall.
Show me how you would solve this with your favorite programming language. Most creative use of a language wins.
3Is it supposed to run infinitely? I assumed so. Also codegolf doesn't own 99 bottles of beer so there is not reason to even discuss it. – None – 2011-01-28T08:04:01.280
bzip2 - 553 bytes. not very good – gnibbler – 2011-01-28T12:31:02.167
1@Chris -- That is going to be the toughest part of this SE site, because the whole thing is based on creativity, because that is half the fun of programming puzzles. The most creative solution isn't always the most efficient or shortest. – Nick Berardi – 2011-01-28T14:13:50.163
2@Nick: I hear you. I just want to know how one can determine how creative a solution is---based on your own judgement? Based on the voters'? Neither is particularly reliable (no offence). Something like brevity is indisputable---for example, nobody can dispute the "goodness" of the 1-byte stack overflow code golf solution. – Chris Jester-Young – 2011-01-28T14:26:35.207
1@Nick: So I'm not against "creativity-based" criteria per se, but there needs to be a way to have a (somewhat) objective method to measure it. – Chris Jester-Young – 2011-01-28T14:27:41.947
30"Most creative use" is too subjective for an SE site, I think. We should aim to use objective criteria, such as "shortest code". – Chris Jester-Young – 2011-01-27T21:04:33.587
@ChrisJester-Young So, this just got bumped... presumably [tag:popularity-contest] fits now? – Bob – 2014-01-17T05:13:15.660
5Still a good question though – Chris Laplante – 2011-01-27T21:06:59.403
1
BTW: 1 bottle of beer.. is not the final verse.
– Sylwester – 2014-02-06T23:07:28.200@TheDoctor Why is this not a [popularity-contest]? – Justin – 2014-04-12T17:10:31.153
This question is from codegolf.com. We are still discussing whether to allow it. I have 199 bytes solution, but will not post for now )
– Nakilon – 2011-01-27T23:30:05.36399 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall. <Now everyone join me!> 98 bottles of beer on the wall, 98 bottles of beer. Take one down and pass it around, 97 bottles of beer on the wall. – Thomas Eding – 2011-09-25T15:20:45.730