Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. if(bump && foundDim){
  2. if(state.agent_direction == state.EAST){
  3. state.agent_direction = state.NORTH;
  4. return turnL;
  5. }
  6. else if (state.agent_direction == state.SOUTH){
  7. state.agent_direction = state.WEST;
  8. return turnR;
  9. }
  10. else
  11. return LIUVacuumEnvironment.ACTION_MOVE_FORWARD;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement