Beispiel #1
0
 public void MoveValues(int indexOfLine)
 {
     Blockk temp;
     while (CheckFullLine(indexOfLine - 1) != false)
     {
         for (int j = 0; j < board.GetLength(1); j++)
         {
             temp = board[indexOfLine, j];
             board[indexOfLine, j] = board[indexOfLine - 1, j];
         }
         indexOfLine--;
     }
     for (int j = 0; j < board.GetLength(1); j++)
     {
         board[indexOfLine, j] = new Blockk();
     }
     CheckFullLines();
 }
Beispiel #2
0
 public void Clear()
 {
     for(int i=0;i<board.GetLength(0);i++)
     {
         for(int j=0;j<board.GetLength(1);j++)
         {
             board[i, j] = new Blockk();
         }
     }
 }