Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Thread Tools Display Modes
Assign 6
Shannon Gallentine
Junior Member
Status: Offline
Posts: 13
Join Date: Dec 2015
Location: Dallas
Default Assign 6 - 12-26-2015, 10: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.
Reply With Quote
Status: Offline
Posts: 18
Join Date: Dec 2015
Default 01-03-2016, 03: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?
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.