Game Area
The game takes place on a rectangular area with coordinates x=0 y=0 being bottom left, and x=1920 y=750 top right corner of the map.
Gargoyles
Each player controls a team consisting of 3 gargoyles.
Gargoyles can move in any direction (FLY instruction), but the maximum distance they can travel in one turn is 150 .
Presents
Presents are dropped by Santas from above, from an area inaccessible to gargoyles (they are so massive that they cannot rise above y=750 ). Presents that reach the ground are picked up by humans and have the effect of speeding up the end of the game.
Presents have various value: 1 , 2 , or 3 .
Presents of value 1 fall downward with uniform velocity equal to 60 . Every additional point of value increases the speed by 40 .
A gargoyle destroys the present if, at the end of the turn, he and the present are within distance 30 .
Destroying a present gives the team 5 ×value points.
If several gargoyles from the same team destroys the same present the points will be calculated only once. If gargoyles from both teams destroy the same present, points are awarded to both teams.
Fireballs
Gargoyles can cast fireballs to destroy presents from a distance (FIREBALL instruction).
Maximal range of the spell is 300 . After casting fireball gargoyle cannot create another for the following 5 turns. Required cooldown time is given in the input.
The team that destroys a present using a fireball receives a number of points equal to the presents' value. If several gargoyles from the same team hit the same present the points will be calculated only once. If gargoyles from both teams destroy the same present, points are awarded to both teams.
Presents are hit by the fireballs at the beginning of the turn, before any gargoyle can destroy them with claws.