Each player has
A card gives a set of
The card placed in the center will be rotated by 180 degrees. This gives each move a direction such as "forward", which translates to "up" or "down" depending on the player.
To move a unit, a player selects one of his cards. He then chooses a move pattern defined by the card and applies it to any of his own figures.
The destination field must either be free or occupied by an opponent. The opponent on that cell will then be eliminated from the game.
If there is no valid move, a player can
Line 1 - 5: the current board. A line consists of
.: empty cell
W: the master of player 0
B: the master of player 1
w: a student of player 0
b: a student of player 1
Line 6 - 10: the cards in use. A card is defined by:
0or 1for the player, -1for the card in the center
cardId: the id of the card
dx1: the x movement of the first action
dy1: the y movement of the first action
dx2: the x movement of the second action
dy2: the y movement of the second action
dx3: the x movement of the third action
dy3: the y movement of the third action
dx4: the x movement of the fourth action
dy4: the y movement of the fourth action
The current rotation of the card is addressed in the input: the dx and dy values of the next player using the card are given. When the card is played, both values will be multiplied by
Line 11: actionCountthe number of possible actions
Next actionCount lines: cardId move denoting a valid move
MOVE can be either a movement, giving source and destination cell (e.g.
A higher resolution is required to access the IDE