public void DeleteFullRows() { int countFullRows = 0; for (int i = 0; i < _height; i++) { if (isRowFull(i)) { ++countFullRows; if (countFullRows >= 2) { for (int j = 0; j < _height; j++) { if (isRowFull(j)) { _graphic.DeleteRow(j, _arrayOfGridCells); lowerRows(j); _userParameter.AddScorePoint(1); --j; } } countFullRows = 0; break; } } } }
public void DeleteFullRows() { for (int i = 0; i < _height; i++) { if (isRowFull(i)) { _userParameter.AddScorePoint(1); _graphic.DeleteRow(i, _arrayOfGridCells); lowerRows(i); --i; } } }