Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

?
Lv 6
? asked in Science & MathematicsMathematics · 7 years ago

Round robin generator?

Hello, I want to create a round robin tournament which will have 20 teams participating, and where the teams that play home on the first week play away on the second week. So say "team 1" played home in the first game, they would then have to play away in the second. I want this to stay consistent throughout the tournament so that after each team has played an even number of games they will have played half home and half away. I hope that makes sense, and thanks in advance.

Update:

Sorry, just to add that it is a double round robin.

Update 2:

Also, it doesn't matter if a team plays 2 games away consecutively so long as once they played an even amount of games half are at home and half away. Sorry for the confusion.

4 Answers

Relevance
  • 7 years ago
    Favorite Answer

    Your requirement of strict home/away/home/away... is unusual. If followed, it would mean you have two groups of teams: those that are home on even weeks, and those that are home on odd weeks. It also means that teams only play members of the other group, not those in their group. You could only play half of the teams in the league.

    Further, with 20 teams if you want a balanced schedule then each team would play 19 games. So you can't play exactly half home and exactly half away. Either that has to go away or you have to play an unbalanced schedule.

    There are some ideas at the wikipedia page:

    http://en.wikipedia.org/wiki/Round-robin_tournamen...

    It shows how to do some generation.

    Here's some python code to generate a schedule:

    http://stackoverflow.com/questions/11245746/league...

    EDIT:

    Double round-robin isn't too hard. You can just just generate half the season, then redo it with home/away locations flipped. Week 1 A@B... Week (n/2)+1 B@A...

  • ?
    Lv 4
    5 years ago

    Round Robin Generator

  • 6 years ago

    This Site Might Help You.

    RE:

    Round robin generator?

    Hello, I want to create a round robin tournament which will have 20 teams participating, and where the teams that play home on the first week play away on the second week. So say "team 1" played home in the first game, they would then have to play away in the second. I want this to stay...

    Source(s): robin generator: https://tinyurl.im/JBSej
  • KevinM
    Lv 7
    7 years ago

    The first thing I would note is that if EVERY team always alternates between home and away games, then the first week's home teams will never play each other (and same for the first week's visiting teams).

    How many games do you plan to have for the season? A full round-robin would require 19 games per team, for a total of 190 games. You could try this site:

    http://www.printyourbrackets.com/round-robin-gener...

Still have questions? Get your answers by asking now.