Yet another bug algorithm. Pretty much same as others I posted earlier this week ( bug 0,1 and 2 ) but this one has a ranged sensor so it can detect obstacles from a distance and act properly.
I think the presentation is fine though, if I can make this work properly ( I hope to keep working on it when I have time ( read never )), it’ll be a nice and probably useful to many people.
You can find my report on this homework and implementation details on the page as well, there is also a bugs-eye chart there as well, which I believe is neat.
Anyway it’s all here;