Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
Chapter 6 exercise 9
Old
gmarie3120
Guest
 
Status:
Posts: n/a
Default Chapter 6 exercise 9 - 03-25-2010, 07:36 AM

I'm having problems with this exercise. Any help at all would be greatly appreciated. I made the custom properties, methods, and functions, but I'm having trouble on how to implement them and make them work. This is the shark pursuit exercise where the shark swims towards the fish, but when the shark gets within 1 meter of the fish, it quickly swims away. The shark continues to pursue the fish, but each time the shark comes within 1meter of the fish it swims. The world should generate a random number to indicate the direction that the fish will swim to escape the shark, and the distance.

Last edited by gmarie3120; 03-25-2010 at 08:07 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 ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.