I'm messing around with the little crab world from the book scenarios and i got the crab to move in random directions and now I added worms to the world. I'm trying to write code that makes the crab move towards the worm and eventually eat it if it "canSee" it and if it can't see a worm in it's path, then just keep moving.
Whats the code to get the crab to move towards the worm?