Ejemplo n.º 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();
        }
    }
Ejemplo n.º 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);
        }
    }