In this game you have to control your army
1-
3 soldiers depending upon the league. To understand game mechanics you need to understand few things given below.
SOLDIER
A
Soldier is movable unit which is defined by 6 integers :-
ownerId - The ID of player who owns this soldier.
x - The position X of this soldier.
y - The position Y of this soldier.
soldierId - The unique ID of soldier.
level - The level of the soldier.
direction - The Direction soldier is facing 0 = UP, 1 = LEFT , 2 = DOWN, 3 = RIGHT.
A
Soldier can perform
MOVE or
ATTACK tasks.
Note - the level of soldier remains
0 when game starts and can upgrade upto level
10
BLOCK
A Block is a single cell in the map defined by 3 integers :-
blockOwner - The ID of player who owns this block.
x - The position X of this block.
y - The position Y of this block.
It gives you 2 Bucks for eack Block you owned every turn.
SOLDIER MOVABLE SITES
Soldier movable sites are blocks where a soldier can move which based on direction where is soldier facing, for example: If soldier is facing
UP then soldier
can't move DOWN and
can move UP, RIGHT and LEFT.

Suppose in this picture the soldier is facing
UP side, Then it can move on
GREEN coloured tiles and can't move on
RED coloured tiles.
So, basically the soldier just can't move in the opposite direction of where it is facing.
SOLDIER ATTACKING SITES
Soldier attacking sites are blocks on which a soldier can attack which is again based on the direction soldier is facing. A soldier can attack on the blocks which are in range of distance 2 from soldier and are not in back side of direction.

Suppose in this picture the soldier is facing
UP, then
GREEN coloured tiles are soldier attacking sites.

And suppose in this picture the soldier is facing
DOWN, then
GREEN coloured tiles are soldier attacking sites.
ACTIONS:-
WAIT
You can use this command to do nothing. The action looks like - '
WAIT' your income won't be affected by this.
MOVE
You can use this command to move your soldiers but remember a soldier can only move at
SOLDIER MOVABLE SITES(Explained above).The command for the action looks like - '
MOVE ID DIRECTION' In which ID is the unique identifier of soldier and DIRECTION can be any of
UP DOWN LEFT RIGHT.
ATTACK
You can use this command to attack on any opponent soldier which is in range of 2 tiles which kills the soldier and it should be one of the
SOLDIER ATTACKING SITES(Explained above) and the level of opponent's soldier should be less than or equal to your soldier's level. It costs you
35 Bucks to attack. The command for the action looks like - '
ATTACK ID OPPONENT_SOLDIER_ID' In which ID is the unique identifier of soldier and OPPONENT_SOLDIER_ID is the id of the opponent soldier that you want to attack.
UPGRADE
You can use this command to upgrade your soldiers level which costs you
25 bucks.See the statement update in Attack statement for the effects of level.The command for the action looks like - '
UPGRADE SOLDIER_ID' In which SOLDIER_ID is the unique id of your soldier.