Bullet Detect
From Talk:Cotillion
Jump to navigation
Jump to search
Revision as of 16 June 2013 at 23:28.
This is the thread's initial revision.
This is the thread's initial revision.
I am working on a new version of my microbot and noticed that Cotillion and several other top bots use different bullet detect logic. I am currently using 0 < energyDrop <= 3. Cotillion uses energyDrop > 0, but also corrects enemy energy in onHitByBullet and onBulletHit.
Having thought about the robo-physics of it that looks to be superior as it will not miss a shot that is coincident with taking damage. Is that correct?
Also assuming that enemy energy is adjusted properly then energyDrop > 0 is sufficient and the <=3 is no longer necessary to avoid false detections?
With that the only issues would be ramming and wall hits, but that is a little hard to account for in a micro.