Alice Community  

Go Back   Alice Community > Educators > Textbook Discussion

Reply
 
Thread Tools Display Modes
Chapter 6 Gatekeeper excercise
Old
  (#1)
Slepley
Junior Member
 
Status: Offline
Posts: 1
Join Date: Nov 2009
Location: usa
Default Chapter 6 Gatekeeper excercise - 11-06-2009, 04:16 PM

Hi i am having trouble with the gate keeper excercise on page 203. i was wondering if i need to have 4 parameters for each person for example pharoh as parameter a mummy as b and so on. and if there is a way i can have locations on alice to identify what location a certain person is in. thanks

scott
   
Reply With Quote
Old
  (#2)
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Online
Posts: 665
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-07-2009, 04:44 AM

Do you want a good example, with the proper, complex code that doesn't involve multiple if/else ifs, or do you want the simple if/else if example, easy to understand but much more cumbersome?
Attached Files
File Type: a2w FancyExample.a2w (169.2 KB, 12 views)
File Type: a2w EasyExample.a2w (159.5 KB, 9 views)


This video won a contest I entered for a local company. Hope you guys like it!

http://www.youtube.com/watch?v=4JZKwtDNCIk

Try my newest and biggest game: Resident Penguin.

http://www.alice.org/community/showthread.php?t=3205

Last edited by x2495iiii; 11-07-2009 at 04:54 AM.
   
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 ©2009, Carnegie Mellon University