Example #1
0
 public char StatusAt(int row, int col)
 {
     if (fallingBlock != null && fallingBlock.isAt(row, col))
     {
         return(fallingBlock.CellAt(row, col));
     }
     else
     {
         return(board[row, col]);
     }
 }
Example #2
0
 void CoptyToBoard(MovableGrid block)
 {
     for (int row = 0; row < Rows; row++)
     {
         for (int col = 0; col < Cols; col++)
         {
             if (block.isAt(row, col))
             {
                 board[row, col] = block.CellAt(row, col);
             }
         }
     }
 }