/* * See this URL for lots of information about Picobot: * * http://www.cs.hmc.edu/~dodds/Picobot/index.html */ 0 // this indicates the map we want to start with 0 x*** -> N 0 // north, if cant go, then go E,W or finally back up and try side to side 0 Nx** -> E 1 0 NEx* -> W 2 0 NEWx -> S 4 1 ***x -> S 1 // south, if cant go then go E, W or finally back up and try side to side 1 *x*S -> E 0 1 *ExS -> W 3 1 xEWS -> N 5 2 ***x -> S 2 // south, if can't go then W,E of finally back up and try side to side 2 **xS -> W 3 2 *xWS -> E 0 2 xEWS -> N 7 3 x*** -> N 3 // north, if can't go then W,E of finally back up and try side to side 3 N*x* -> W 2 3 NxW* -> E 1 3 NEWx -> S 6 4 *x** -> E 4 // east, if cant go then N,S finally back up and try up down 4 xE** -> N 5 4 NE*x -> S 6 4 NExS -> W 2 5 **x* -> W 5 5 x*W* -> N 4 5 N*Wx -> S 7 5 NxWS -> E 3 6 **x* -> W 6 6 **Wx -> S 7 6 x*WS -> N 7 6 N*WS -> E 1 7 *x** -> E 7 7 *E*x -> S 6 7 xE*S -> N 6 7 NExS -> W 0