copyCells method
It takes a list of origin cells and a list of destination cells,
the color of the origin cells is copied to the destination cells.
Args:
origin (List
Implementation
void copyCells(List<String> origin, List<String> destination) {
final StringBuffer buffer = StringBuffer();
final Pair<List<String>, List<String>> newDestinationsAndColors =
_copyCells(origin, destination);
final List<String> newDestinations = newDestinationsAndColors.first;
final List<String> colors = newDestinationsAndColors.second;
for (int i = 0; i < newDestinations.length; i++) {
buffer
..write(" go(${newDestinations[i]}) ")
..write(" paint(${colors[i]}) ");
}
_parse(buffer.toString(), false);
_commandCaller.board.move.copyMode = false;
}