README

Name: Polaris
Version: 1.2
Type: nanobot
Full name: tvv.nano.Polaris 1.2
Codesize: 247 bytes
Color: 0xFFF3EA (Polaris star color)

================================================================================
Requirements
================================================================================

JDK: 1.6+
Robocode: 1.7.4.0+
Maximal battlefield: 1200x1200

================================================================================
Functionality
================================================================================

Radar:
- the radar is not adjusted for gun and for robot
- the radar rotates infinitely
- if enemy scanned the radar rotates in the opposite direction

Gun:
- the gun is adjusted for robot
- if enemy robot scanned the gun is induced on it
    - with using head-on targeting
    - plus predictable enemy's position
    - plus randomly +-N radians (if enemy robot is not disabled)
    - multiplied by a distance factor

Fire:
- fire only if:
    - distance less than N
    - gun is not heat
    - the robot has enough energy
    - the gun is not turning

Energy management:
- the bullet is distance-dependent: near - maximal, far - minimal, etc.
- the bullet is not more than enemy's energy

Movement:
- if enemy scanned the robot sideways to the target
- if enemy scanned and the robot doesn't move in this moment the robot changes
  direction and moves N px

Other:
- clear all events in the end of first onScannedRobot()
