Have predator chase the prey, the prey runs away, and herbivores can find the grass.
Details: Use logic (if else) to adjust the movement so that the predator can detect prey within a certain distance and moves toward it, while the prey detects the predator and runs away, and herbivores detect where the grasses are.
When you're finished, make your project public and share the link below. Make sure to include:
- Why did you choose this challenge question?
- The URL for public link.
- What did you struggle with most?
- Is there anything else you still need help with?