Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   I need help in Chapter 8 exercise 2 Butterfly Chase (http://www.alice.org/community/showthread.php?t=10294)

 rmfunnies 09-23-2013 01:52 PM

I need help in Chapter 8 exercise 2 Butterfly Chase

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.

 drellem 09-23-2013 05:35 PM

Please ask more specific questions. What exactly are you confused about?

 rmfunnies 09-24-2013 05:14 PM

Butterfly Chase

1 Attachment(s)
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.

 All times are GMT -5. The time now is 08:02 AM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.