GridWorldScreencasts

toc

CircleBug
media type="custom" key="7479521"

SpiralBug
media type="custom" key="7479543"

ZBug
media type="custom" key="8654050"

DancingBug
The array line in the DancingBugRunner is: int [] turns = {2, 2, 1, 3}; Some thoughts: 1) The array does not have to be random. It would be a nice touch, but it's not a requirement. 2) Now that you know about "super" your code might be a bit simpler. 3) When I read the desciption, I felt that an alternative approach to what you see below would be to have the bug possible continue turning in place before moving. media type="custom" key="8666774"

Another Dancing Bug
This time, the array line is: int [] turns = {2, 5, 1, 4}; media type="custom" key="8666876"