Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Chapter 6 Gatekeeper excercise
Old
Slepley
Guest
 
Status:
Posts: n/a
Default Chapter 6 Gatekeeper excercise - 11-06-2009, 03: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
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-07-2009, 03: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, 132 views)
File Type: a2w EasyExample.a2w (159.5 KB, 138 views)


(')>

Last edited by x2495iiii; 11-07-2009 at 03:54 AM.
   
Reply With Quote
No help
Old
yozamacs
Guest
 
Status:
Posts: n/a
Default No help - 12-14-2009, 07:30 PM

I downloaded that example and it made no sense to me what the connection was with the gamekeeper and did not help me at all.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 12-14-2009, 10:13 PM

My examples are usually the same programming you need to know to make the world, but with COMPLETELY different objects so that it's impossible to submit them as your assignments.

Examine the underlying code and you'll notice that in both examples, the gatekeeper logic is there. Once you understand how that code works, make your gatekeeper world and apply that new knowledge to it.


(')>
   
Reply With Quote
hey
Old
beaver34fan
Guest
 
Status:
Posts: n/a
Default hey - 05-23-2011, 06:20 PM

You have to use a Boolean function that returns true when the objects have been rearranged so the gatekeeper is on the far right of the lineup and false if it is not. and yours doesn't have one
   
Reply With Quote
Gate Keeper
Old
mosmic
Junior Member
 
Status: Offline
Posts: 1
Join Date: Oct 2011
Default Gate Keeper - 10-27-2011, 12:05 PM

How is a placement in the world created?
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.