Comments on 99 Shortened Bottles of Beer
Parent
99 Shortened Bottles of Beer
Disclaimer
This challenge also exists in CGCC, but if you want to compete here (too), then hop in!
Challenge
Recreate "99 Bottles of Beer on the Wall", using the least bytes possible.
Lyrics:
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.
Rules
- 0-byte answers aren't allowed. Although 1-byte answers are allowed while still abiding to not using loopholes, they won't be very interesting (unless you DO make it interesting).
- Use any form of output in the program. Yes, the whole thing must be outputted up until you reach $n=1$.
- Built-in functions and/or code for this specific challenge is pretty much allowed, only if you explain (even a little) how the code works (or not if you can't at all).
- Shortest program of each language used is the winner.
[Java (JDK)], 311 301 296 byte …
3y ago
[Python 3], 202 bytes …
3y ago
FALSE, 198 bytes ``` [" on t …
3y ago
[C (gcc)], 244 bytes …
3y ago
[C (gcc)], 232 bytes …
3y ago
[Haskell], 221 215 bytes …
3y ago
[Scala], 242 bytes …
3y ago
[shortC], 223 bytes AOC …
3y ago
JavaScript (V8), 185 bytes …
3y ago
Japt, 117 116 115 bytes Nee …
3y ago
[JavaScript (Node.js)], 228 22 …
3y ago
Sclipting, (UTF-16) 238 bytes …
3y ago
[Seriously], 1 byte N …
3y ago
Post
JavaScript (Node.js), 228 224 bytes
-4 bytes thanks to Hakerh400
(b=n=>`${n} bottle${n-1?'s':''} of beer`,w=' on the wall')=>[...Array(99)].map((_,i)=>`${b(i=99-i)}${w}, ${b(i)}.
`+(--i?`Take one down and pass it around, `:(i=99,`Go to the store and buy some more, `))+b(i)+w+'.').join`
`
2 comment threads