The melee turtle is next to useless without some kind of detection. I suggest adding a function that tries to detect a monster x amount of spaces in front of the turtle and returns x.
OpenCCSensors adds the ability to sense things like entities. Even without this, turtles can tell if there's an entity there, if they can't move forward and don't detect a block in the way. Locked.