CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2021
    Posts
    1

    Tournament Round robin to bracket

    An example tournament has two stages, groups play + bracket play. When the groups stage ends, the x top of each group go to bracket stage. In the brackets stage there are two basics rules:

    • a winner of a group should not be matched against a winner of another group (only against 2nd or 3rd place)
    • no two teams that played in the same group should be matched against each other.



    For example, if we have 6 groups and top 2 each group advance to bracket:

    If i put the teams i get the matches, but i dont know how get the correct order for put then in the bracket.


    1A 1B 1C 1D 1E 1F 2A 2B 2C 2D 2E 2F BYE BYE BYE BYE



    1A vs BYE

    1B vs BYE

    1C vs BYE

    1D vs BYE

    1E vs 2F

    1F vs 2E

    2A vs 2D

    2B vs 2C

    Name:  cuadro_6G2.jpg
Views: 88
Size:  10.5 KB

    Another example with 4 groups of 8 teams and all teams advance to bracket:


    I apply the snake pattern:



    1A 1B 1C 1D 2D 2C 2B 2A 3A 3B 3C 3D 4D 4C 4B 4A 5D 5C 5B 5A 6A 6B 6C 6D 7D 7C 7B 7A 8A 8B 8C 8D



    Matches:



    1A vs 8D

    1B vs 8C

    1C vs 8B
    ...


    Name:  cuadro_4G8.jpg
Views: 37
Size:  19.8 KB


    Any ideas how put matches in correct orden in the bracket?

    Thanks.

  2. #2
    Join Date
    Feb 2017
    Posts
    639

    Re: Tournament Round robin to bracket

    Quote Originally Posted by aprens View Post
    Any ideas how put matches in correct orden in the bracket?
    Could you please explain what is wrong with the order of the matches in the examples you have presented?

    I cannot see anything strange in particular. Or is it maybe, that those who play their first game in the 2nd round may meet a winner from the 1st round that they should not meet according to the two basic rules? Or is it that your "snake pattern" strategy sometimes fails to generate even the 1st round matches correctly?
    Last edited by wolle; December 10th, 2021 at 11:07 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured