Exemple #1
0
    public static void DeleteFullRows()
    {
        for (int y = 0; y < h; ++y)
        {
            if (IsRowFull(y))
            {
                DeleteRow(y);
                DecreaseRowsAbove(y + 1);
                --y;
                rowsCleared++;
            }
        }

        if (rowsCleared != 0)
        {
            Scoring.CalculateScore(rowsCleared);
        }
    }