Example #1
0
    public void ClearBlockerAt(int x, int y)
    {
        if (board == null)
        {
            return;
        }

        Blocker blockerToClear = board.allBlockers[x, y];

        if (blockerToClear != null)
        {
            board.allBlockers[x, y] = null;
            blockerToClear.SelfDestruct();
        }
    }
Example #2
0
    public void ClearBlockerAt(int x, int y)
    {
        if (board == null)
        {
            return;
        }

        Blocker blockerToClear = board.allBlockers[x, y];

        if (blockerToClear != null)
        {
            board.allBlockers[x, y] = null;
            blockerToClear.SelfDestruct();

            // keep track of which columns have been unblocked
            unblockedColumns.Add(x);
        }
    }