Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
I need help in Chapter 8 exercise 2 Butterfly Chase
Old
rmfunnies
Junior Member
 
Status: Offline
Posts: 2
Join Date: Aug 2013
Location: Lafayette, IN
Unhappy I need help in Chapter 8 exercise 2 Butterfly Chase - 09-23-2013, 12:52 PM

Can someone help me with the code in Chapter 8 exercise 2 "Butterfly Chase" or do this for me. Use recursion to make the white rabbit (Animal) chase a butterfly (Animals/Bugs). The butterfly should fly to a random, nearby location (within 0.2 meters in any direction).
The white rabbit, however, must always remain on the ground (rabbits do not fly). Each time the butterfly moves, use turn to face to make the rabbit turn toward the butterfly and then move the rabbit toward the butterfly 0.5 meters. When the rabbit gets close enough, have him catch the butterfly in his net (Objects). I need this by Friday 9/27/13.

Last edited by rmfunnies; 09-26-2013 at 12:20 PM.
   
Reply With Quote
Old
drellem
Member
 
drellem's Avatar
 
Status: Offline
Posts: 35
Join Date: Jun 2012
Default 09-23-2013, 04:35 PM

Please ask more specific questions. What exactly are you confused about?
   
Reply With Quote
Butterfly Chase
Old
rmfunnies
Junior Member
 
Status: Offline
Posts: 2
Join Date: Aug 2013
Location: Lafayette, IN
Default Butterfly Chase - 09-24-2013, 04:14 PM

I need the rabbit to catch the butterfly in the net, using recursion, show code in doing this or can you do this for me. I need this ASAP.
Attached Files
File Type: zip Butterfly Chase.zip (2.18 MB, 19 views)

Last edited by rmfunnies; 09-26-2013 at 02:36 PM.
   
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.