The amount of crystal harvested per turn is equal to the weakest link in the chain. In other words, it is the smallest amount of ants from the cells that make up the chain.


Here, the blue player will harvest 4 crystal per turn.

In games with multiple bases per player, the game will choose the best chain to either one of your bases.

The harvesting chains work the same way for the egg resource.

Harvesting an egg cell will spawn as many ants as resources havested. The ants will spawn on the player’s base on the start of next turn. In games with multiple bases per player, the extra ants will spawn on each base, regardless of the base present in the harvest chain.

Harvesting is calculated separately for each resource, and for each one the game will automatically choose the best chain from its cell to your base.

Attack Chains
A player’s harvest chains may be broken by their opponent’s attack chains.

When computing harvest chains, some cells may have ants from both players. For each of these cells, the attack chain of both players is computed, and if one of the player has a lower value, this cell cannot be counted in the harvest chain.

The attack chain value for a given cell is the weakest link in a chain from that cell to one of the player’s bases.
Example

The attack chains for the contested cell are: 5 for the red player and 3 for the blue player.
The harvest chain is unbroken.

The attack chains for the contested cell are: 5 for the red player and 8 for the blue player.
The harvest chain is broken.
Actions
On each turn players can do any amount of valid actions, which include:

BEACON index strength: place a beacon of strength strength on cell index.
LINE index1 index2 strength: place beacons all along a path from index1 to index2, all of strength strength. A shortest path is chosen automatically.
WAIT: do nothing.
MESSAGE text. Displays text on your side of the HUD.
Action order for one turn
LINE actions are computed.
BEACON actions are computed.
Ants move.
Eggs are harvested and new ants spawn.
Crystal is harvested and points are scored.

Note: when two players harvest from the same resource, they will both receive the full expected amount regardless of whether there is enough resource to support it.
Victory Conditions
You have harvested at least half of the total crystal on the map before your opponent.
You have more crystal than your opponent after 100 turns, or more ants if tied.
Defeat Conditions
Your program does not provide a command in the allotted time or it provides an unrecognized command.

🐞 Debu Give two different versions of responses. Please separate the responses with 6 asterisk symbols: ******.
user