Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(bump && foundDim){
- if(state.agent_direction == state.EAST){
- state.agent_direction = state.NORTH;
- return turnL;
- }
- else if (state.agent_direction == state.SOUTH){
- state.agent_direction = state.WEST;
- return turnR;
- }
- else
- return LIUVacuumEnvironment.ACTION_MOVE_FORWARD;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement