コード例 #1
0
 public CheckerPieces(CheckerPieces other)
 {
     PieceLocation = new CheckerPiece[Rows, Cols];
     for (var row = 0; row < Rows; row++)
     {
         for (var col = 0; col < Cols; col++)
         {
             PieceLocation[row, col] = other.PieceLocation[row, col];
         }
     }
 }
コード例 #2
0
 public CheckerPieces(CheckerPieces other)
 {
     PieceLocation = new CheckerPiece[Rows, Cols];
     for(var row = 0; row < Rows; row++)
     {
         for(var col = 0; col< Cols; col++)
         {
             PieceLocation[row, col] = other.PieceLocation[row, col];
         }
     }
 }