getCellToUseChipOnCell

getCellToUseChipOnCell(number chip, number cell, [array<integer> ignoredCells]) → integer cell

Finds a cell from which your entity can use the chip chip on the cell cell. It is the closest one your entity can reach by moving, with no movement point limit: it may be several turns away. If no cell is reachable (for example if your entity is surrounded), the function returns -1, even when getCellsToUseChipOnCell finds some.

Parameters
Return