First 2 lines: for each player,
playerHealth,
playerMana,
playerDeck and
playerDraw:
-
Integer playerHealth: the remaining HP of the player.
-
Integer playerMana: the current maximum mana of the player.
-
Integer playerDeck: the number of cards in the player's deck.
-
---- NO RUNES ---
-
Integer playerDraw:
the additional number of drawn cards - this turn draw for the player, next turn draw (without reward for damage received) for the opponent.
The player's input comes first, the opponent's input comes second.
During the Constructed phase,
playerMana is always
0.
Next line:
-
Integer opponentHand, the total number of cards in the opponent's hand. These cards are hidden until they're played.
-
Integer opponentActions, the number of actions performed by the opponent during his last turn.
Next opponentActions lines: for each opponent's action, string
cardNumberAndAction containing the
cardNumber of the played card, followed by a space, followed by the action associated with this card (see
Possible Actions section).
Next line: Integer
cardCount: during the Battle phase, the total number of cards on the board and in the player's hand. During the Constructed phase, always
120.
Next cardCount lines: for each card,
cardNumber,
instanceId,
location,
cardType,
cost,
attack,
defense,
abilities,
myHealthChange,
opponentHealthChange,
cardDraw,
area and
lane:
-
Integer cardNumber: the identifier of a card.
-
Integer instanceId: the identifier representing the instance of the card (there can be multiple instances of the same card in a game).
-
Integer location, during the Battle phase:
-
0: in the player's hand
-
1: on the player's side of the board
-
-1: on the opponent's side of the board
Always 0 during the Constructed phase.
-
Integer cardType:
-
0: Creature
-
1: Green item
-
2: Red item
-
3: Blue item
-
Integer cost: the mana cost of the card,
-
Integer attack:
-
Creature: its attack points
-
Item: its attack modifier
-
Integer defense:
-
Creature: its defense points
-
Item: its defense modifier. Negative values mean this causes damage.
-
String abilities of size 6: the abilities of a card. Each letter representing an ability (B for Breakthrough, C for Charge and G for Guard, D for Drain, L for Lethal and W for Ward).
-
Integer myHealthChange:
the health change for the player.
-
Integer opponentHealthChange:
the health change for the opponent.
-
Integer cardDraw:
the additional number of cards drawn next turn for the player.
-
Integer area:
-
0: Target
-
1: Lane1
-
2: Lane2
-
Integer lane:
-
Creature on board: 0 - left, 1 - right
-
Other: -1