/* * 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 // Get as far north, then as far west, as possible. // Go north 0 x*** -> N 0 0 NEW* -> S 3 0 NEx* -> X 1 // 25 0 NxW* -> X 2 // 0 N*x* -> X 1 // Step west one, then try to go north again 1 N*W* -> X 2 1 **x* -> W 0 // state 2 is used to go east one, then try north //35 2 NE** -> X 3 2 *x** -> E 0 // state 3 is used to go west all the way across 3 **x* -> W 3 3 **WS -> E 4 //45 3 **Wx -> X 4 // state 4 to go east all the way across 4 *x** -> E 4 4 *E*S -> W 5 4 *E*x -> X 5 // state 5 takes us west all the way again // 55 5 **x* -> W 5 5 **WS -> E 6 5 **Wx -> S 3 // state 6 takes us east all the way again 6 *x** -> E 6 6 *E*S -> W 7 6 *E*x -> S 3 //65 // state 7 tries to get south one asap, travelling west when not possible 7 ***x -> S 3 7 **xS -> W 7 7 **WS -> S 3 // BAD - END OF PLACES TO GO