private void RemoveBlock(int row, int col, Block block) { for (int i = 0; i < Block.ROW_SIZE; i++) { for (int j = 0; j < Block.COL_SIZE; j++) { if (!(block.IsEmpty(i,j))) { board[row + i, col + j] = new BlankCell(); } } } }
private void PutBlock(int row, int col, Block block, Cell[,] board) { for (int i = 0; i < Block.ROW_SIZE; i++) { for (int j = 0; j < Block.COL_SIZE; j++) { if (!(block.IsEmpty(i,j))) { board[row + i, col + j] = block[i, j]; } } } }