- All opponent's soldiers died.
200turns, you have more Bucks than your opponent.
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
This is a league based challenge.For this challenge, multiple leagues for the same game are available. Once you have proven your skills against the first Boss, you will access a higher league and extra rules will be available.
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 - Ignore for this league.
direction - The Direction soldier is facing 0 = UP, 1 = LEFT , 2 = DOWN, 3 = RIGHT.
Note - the level of soldier remains
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
SOLDIER MOVABLE SITES
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
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.
You can use this command to do nothing. The action looks like - '
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 - '
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
- You fail to provide a valid command in time.
- You provide a unrecognized command.
- If your opponent satisfies any of victory conditions.
- int MyID - Your unique player Id which could be
- int MapSize - The size of board, Map = MapSize*MapSize.
- int MyBucks - Your present money or bucks.
- int OppBucks - Opponent's present money or bucks.
- Next MapSize * MapSize lines each BLOCK in the board represented by 3 integers:-
int BlockOwner - The owner's player id of this block.
int x - This block's position x.
int y - This block's position y.
- int activeSoldierCount - Total no. of active soldier in the game.
- Next activeSoldierCount lines each SOLDIER reprensented by 6 integers:-
int ownerId - The owner's player id of this soldier.
int x - This soldier's position x.
int y - This soldier's position y.
int soldierId - The unique identifier of soldier.
int level - Level of the soldier ignore for first league.
int direction - The side where the soldier is facing.
A single line from one of the following commands:-
WAIT optional_message MOVE soldierID Direction optional_message ATTACK soldierID soldierId to attack on optional_message
A higher resolution is required to access the IDE