示例#1
0
 private void CopyBoard(Board copyFrom)
 {
     foreach (var cell in copyFrom.Cells)
     {
         if (cell.IsOccupied())
         {
             Board.AddPiece(
                 PieceFactory.FromCode(cell.Occupant.Code, cell.Occupant.Color),
                 cell.Name);
         }
     }
 }