The first rule of Fight Club is - you do not talk about Fight Club.
The second rule of Fight Club is - you DO NOT talk about Fight Club.
Third rule of Fight Club, someone yells Stop!, goes limp, taps out, the fight is over.
Fourth rule, only two guys to a fight.
Fifth rule, one fight at a time, fellas.
Sixth rule, no shirt, no shoes.
Seventh rule, fights will go on as long as they have to.
And the eighth and final rule, if this is your first night at Fight Club, you have to fight.
By including Robot you get all this methods to controll your bot:
battlefield_height #the height of the battlefieldThese methods are intentionally of very basic nature, you are free to unleash the whole power of ruby to create higher level functions (e.g. move_to, fire_at and so on). You are not allowed however to read, write or use in any way information not resolved from the above methods (like using ObjectSpace and so on).
Some words of explanation: The gun is mounted on the body, if you turn the body the gun will follow. In a simmilar way the radar is mounted on the gun. The radar scans everything it sweeps over in a single tick (100
degrees if you turn your body, gun and radar in the same direction) but will report only the distance of scanned robots, not the angle. If you want more precission you have to turn your radar slower.