Distance instructions
Similarly, the closeOrderDrill method is
- Instructed to cause the
object to move by 2 meters each time a penguin is passed as a parameter
- Instructed to cause the object to move by only 1 meter each time a cow is
passed as a parameter.
This causes the formation to
behave differently than was the case in the earlier program.