资 源 简 介
CounterBot is a Robocode robot designed with a defensive oriented strategy.
The following techniques are used by CounterBot. The strategies were designed to optimize results in 1 on 1 competition in 800x1200 size battlefields while only extending the Robocode Robot class.
Tactical Positioning: If a defensive event is not triggered by the opposing robot, CounterBot moves to a tactical position on the far left or far right vertical center of the battlefield.
Bullet Avoidance: When a certain decrease in energy is detected, CounterBot will enter evasive maneuvering to avoid incoming fire.
Robot Avoidance: In order to avoid repeated hits by robot contact, CounterBot will rotate right and attempt to move.
Wall Avoidance: If a wall is hit, CounterBot will attempt to move away from the wall.
Targeting: