I have been away from Vb for a while but now i am making a golf program and i am wondering how to approach the calculations for the finish of a round of golf. If there is a draw they do a calculation called countback(explained below).

I have this structure
Code:
 Private Structure Scores
        Dim Gross() As Integer
        Dim Player As String
 End Structure

Private GrossScores As New List(Of Scores)
When i add a player i do this
Code:
Dim GS As New Scores
       
        GS.Player = "Player" & (GrossScores.Count + 1).ToString
        Array.Resize(GS.Gross, 18)

        GrossScores.Add(GS)
Through the game i put the gross scores for each hole into the elements of the array but when i have filled all 18 holes i need to add the scores to another list in order of who is winning.

For example if player1 has a complete gross(all 18 holes) of say 90 and player2 has 87, player2 wins because its a lower score. if they both had 90 then this is where the countback comes in.

If after 18 holes they are the same then you check who had the lowest last 9 holes, if they are the same then you check who has the lowest 6 holes, if they are the same then you check the lowest 3 holes, if they are the same then you check from hole 18 one by one backwards until you find the lowest of the two. the lowest wins therefore needs to added to the list higher.

Have i explained that good enough ?

thank you.