Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Reply
 
Thread Tools Display Modes
Decisions, Decisions....
Old
keithtaylor
Junior Member
 
Status: Offline
Posts: 9
Join Date: Jul 2013
Location: Dallas, Tx
Cool Decisions, Decisions.... - 07-18-2013, 01:19 PM

Alright, no a small issue with this one... There is no sidewalks in Alice, how do you make a club that has a bouncer if there is no sidewalk to put him on lol. Anyway the "IF" problem wasn't a problem at all, at first I made 3 "IF" statements, and then after looking at it figured out that I could make one with another inside so that is the user put 21 it was true, else if #=>21 one statement else another statement. Was not very difficult, I added a small loop so that the bouncer would ask 3 times what the users age was.
   
Reply With Quote
Old
mf1782
Junior Member
 
Status: Offline
Posts: 14
Join Date: Jul 2013
Default 07-20-2013, 02:30 PM

I think I went down the same path as you initially, Keith. I too did three If statements, then nested them in my final product. I also thought about having the bouncer ask three times, but I didn't think it made sense, so I removed them. I should have left them like you did..... There are always enhancements
   
Reply With Quote
Reply

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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.