/* * 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! */ /* * This example zips up and down in the middle of the screen * State 0 is always the starting state */ 0 // this indicates the map we want to start with 0 x*** -> N 0 // when in state 0, go north and stay in state 0 0 N*** -> X 1 // when in state 0 with s/t to the N, stop // and switch to state 1 1 **x* -> W 1 // when in state 1, go west and stay in state 1 1 **W* -> X 2 // when in state 1 with s/t to the S, stop // and switch to state 2 // state 2 is used to go east all the way across 2 *x** -> E 2 2 *E** -> W 3 // state 3 is used to go west all the way across 3 **x* -> W 3 3 **W* -> S 2 // state