/* * See this URL for lots of information about Picobot: * * http://www.cs.hmc.edu/~dodds/Picobot/index.html */ /* * Be sure to save this file before running! */ /* * * State 0 is always the starting state */ 0 // this indicates the map we want to start with // Always go right! then straight, then left, then reverse // Going north 0 *x** -> E 1 0 xE** -> N 0 0 NEx* -> W 2 // 25 0 NEWx -> S 3 // If none of these apply, we're in a box. that sucks. // going east 1 ***x -> S 3 1 *x*S -> E 1 1 xE*S -> N 0 1 NExS -> W 2 //35 // going west 2 x*** -> N 0 2 N*x* -> W 2 2 N*Wx -> S 3 2 NxWS -> E 1 // going south 3 **x* -> W 2 3 **Wx -> S 3 3 *xWS -> E 1 3 xEWS -> N 0