When the bug is located in the Northeast corner of a bounded grid and facing North, it... turns 180 degrees(45 degrees at a time) and heads south. While the bug moves, it drops flowers behind it that turn darker and darker each time the bug moves one unit. When it reaches the south east corner, It turns -90 degrees and heads east continuing its behavior. when it reaches the south west corner, it heads north.
The bug continues to drop flowers that darken as the bug moves. The bug never leaves the boarder of the grid and continues traveling in a clockwise motion that is never ending and never gets interfered with.
Thorough and accurate, Ryan, good work. Being able to visualize how these objects behave in the GridWorld Case Study will serve you well for the AP exam. 15 XPs awarded for this completion.
ReplyDelete