private float GetAverageScore()
        {
            float holes = 0;
            float score = 0;
            float avg   = 0;

            foreach (ScoredMatch sm in _profile.Scores)
            {
                if (sm.Holes == 9)
                {
                    ScoredMatch csm = ConvertTo18Holes(sm);
                    holes += csm.Holes;
                    score += csm.Score;
                }
                else
                {
                    holes += sm.Holes;
                    score += sm.Score;
                }
            }

            if (holes > 0)
            {
                avg = (score / holes) * 18;
            }

            return(avg);
        }
 private ScoredMatch ConvertTo18Holes(ScoredMatch score)
 {
     return(new ScoredMatch()
     {
         Score = score.Score * 2,
         Holes = score.Holes * 2
     });
 }
 public string MessageMatchScore(ScoredMatch sm)
 {
     return($"Score: {sm.Score}\tHoles: {sm.Holes}\tPar: {sm.Par}");
 }