Exemple #1
0
 public BoardData(int size)
 {
     this.size = size;
     board     = new NumberChip[size][];
     for (int i = 0; i < size; i++)
     {
         board[i] = new NumberChip[size];
         for (int j = 0; j < size; j++)
         {
             board[i][j] = new NumberChip(0);
         }
     }
 }
Exemple #2
0
 public void setBoardPosition(int row, int column, NumberChip chip)
 {
     board[row][column] = chip;
 }