mirrorVerticalRightLeft method

bool mirrorVerticalRightLeft()

It takes the last three columns of the cross and mirrors them to the first three columns

Returns: A boolean value.

Implementation

bool mirrorVerticalRightLeft() {
  for (final int i in 3.rangeTo(5)) {
    for (final int j in 0.rangeTo(5)) {
      if (_shape.grid[j][i] != 0 && _shape.grid[j][5 - i] == 0) {
        _shape.grid[j][5 - i] = _shape.grid[j][i];
      }
    }
  }

  return true;
}