Advertisement
calcpage

GridWorldPart2.txt

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