I have no idea how to do visual debugging. I decided to scrap the code, it was making robocode run really slow. I'll try making one with normal arrays and reweight the heading which has a weight of about 6 (0 to 2pi) and the velocity which has a weight of about 14 (-8 to 8). Perhaps set the velocity to absolute. --Ann Any pattern matcher is going to run really slowly. It's the nature of the beast. It may be a fun exercise (which is really what Robocode boils down to in the end) but be prepared for really slow performance while testing and in the Rumble. If you want some graphical debugging code, I posted some a while ago here and David Alves has posted some here. -- Martin
|