Tuesday, September 13, 2011

Challenge 013’s Solution

When in the Northeast corner of the Grid World, the Bug turns at 45° intervals until it faces a direction it can move forward in; or, in this case, South. The Bug then continues to move in that direction until colliding with another wall boundary, in which it then again continues turning at 45° intervals until it can move forward again in a West direction. Because of its starting position, the Bug will continuously travel in a square−shaped pattern.
 
−Phoenix

1 comment:

  1. Detailed observations with solid explanation, 15 XPs awarded.

    ReplyDelete