PDA

View Full Version : Assign 6


Shannon Gallentine
12-26-2015, 09:54 PM
It was a different assignment. I kept wanting to sing bottles of beer! Not pop!
Either way, It's done and I was able to do it in seven lines of code! I spent along time on this one to make sure i got it short and compact.

kaufill
01-03-2016, 02:22 PM
Impressive brevity!

I, once again, wanted my characters to dance around, so I had code for their movements. I just couldn't have a boring song!

The actual song took 6 lines of code for me as well, except to make it grammatically correct with "bottle(s)", I added a couple of if statements (if the number of bottles was 2 or 1) and repeated the 6 lines with the correct strings. Did you have a simpler way of keeping the song grammatically correct?