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.
|