def pickLowSkill
@ball = WorldModel.getInstance.getBall.getRelativePosition
case
when (not @validity_proc.call) :
puts "validity"
return nil
when EnvironmentModel.beamablePlayMode :
puts "beam"
return nil
when @agentModel.falled? :
puts "fall"
return nil
when !@leftLook :
puts "left look"
@leftLook = true
return get_skill("head_left_120")
when !@rightLook :
puts "right look"
@rightLook = true
return get_skill("head_right_120")
when (ballInRange? @@left and (ballInRange? @@front1 or ballInRange? @@front2)) :
puts "vlavo vpredu"
return get_skill("turn_left_cont_20")
when (ballInRange? @@right and (ballInRange? @@front1 or ballInRange? @@front2)) :
puts "vpravo vpredu"
return get_skill("turn_right_cont_20")
when (ballInRange? @@left and ballInRange? @@back) :
puts "vlavo vzadu"
return get_skill("turn_left_90")
when (ballInRange? @@right and ballInRange? @@back) :
puts "vpravo vzadu"
return get_skill("turn_right_90")
end
return get_skill("turn_right_90")
end