The Goal

The aim of this game is to win by destroying all of the other tanks. Currently 2-3 players, and 150 turns.

Each turn you must control your tank in the room.

  Rules

Your program receives the position, heading and energy of every tank.

The center of your tank is unable to exit the playing field, if you are on the edge you can still turn but you cannot move out. There are no tank collisions.

Each turn you must:
  • Output a speed, relative heading, turret heading, and whether or not to fire.
  • Ex. "30 .3 1.2 FIRE" or "20 -.4 1.8 HOLD"
You lose if:
  • Your tank's energy hits 0
  • Your turn takes too long
  • You do not supply a valid sequence of actions.
Your score is based on the following:
  • 20 points for every bullet hit
  • 75 points for each enemy last-hit by you
  • 1 point per energy left at the end of the game

  Game Input

The program must first read the initialization data from standard input. Then, provide to the standard output one line per turn.

Input:

Line 1: one space separated string: the number of players, your ID, your X position, your Y position

Game Loop: one space separated string per player: the player ID, energy, X position, Y position, heading
Your tank is always first

Output:
A single space separated string containing: your speed, relative heading, turret heading, FIRE or HOLD

Constraints:
Speed will be clamped between 0 and 40
Relative heading will be clamped to between -0.3 and 0.3
Energy starts at 150
Each bullet costs 2 energy and will deal 20 energy worth of damage Bullet speed is 60, and will hit if within 65 of a tank's center Everyone starts at height/2 facing north
Width/Height = 1920/1080
Headings are measured clockwise from North in radians
Tank heading output is relative, turret heading is absolute
Allotted response time to output is 50 milli-seconds.

Tanks!