© A+ Computer Science - www.apluscompsci.com The bug act method calls move if canMove returns true.
{"Image DocumentName": "\u00a9 A+ Computer Science -", "Image ImageDescription": "move. The bug act method calls move if canMove returns true. move calls moveTo to move the bug to the location in front of this bug. move leaves a flower in the old location. Each time the bug act method is called the bug will move to the location/cell immediately in front of it. The bug will turn if the cell/location in front of it is occupied or invalid. A flower of the same color as the bug is left in the cell/location vacated by the bug when it moves. The default color of a bug is red and the default direction of a bug is NORTH. \u00a9 A+ Computer Science -", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}