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(); } }
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); } }