initEmptyMovements function

List<List<bool>> initEmptyMovements()

Function that starts the movement matrix empty(set as false).

Implementation

List<List<bool>> initEmptyMovements() {
  List<List<bool>> movements = [];
  for (int i = 0; i < 64; i++) {
    if (i % 8 == 0) movements.add([]);
    movements[i ~/ 8].add(false);
  }
  return movements;
}