Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set 2:
- 1) sideLength is how many steps a BoxBug has to make before turing
- 2) steps keeps track of how far along the sideLength BoxBug has gone
- 3) so that the BoxBug makes a 90 degree turn
- 4) move() is inherited from the supper class Bug
- 5) if its blocked, the square is not finished, may be a rectangle
- 6) yes, if blocked by edgfe of grid or by an Actor other than a Flower
- 7) when BoxBug is constructed and when it runs out of sideLength
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement