Generate round-robin sport schedules with RRSchedule

One of our projects, called Mon Curling, is a web application that helps recreational curling leagues with their schedules, results and standings. One thing that the app was NOT doing was to generate the schedule automatically. Instead, the league manager had to generate his schedule beforehand and enter all the matches manually in our interface.
This will now change with the new gem I am working on called RRSchedule (code is also on github).
I realized that most sport leagues were using a round-robin format for their seasons and this is how I had the idea to make a gem out of it.
The gem takes into consideration the number of available “playing surfaces” and multiple game times. Say for example that you want to generate a round-robin schedule for your 19-teams volleyball league where games are played every wednesday. If there are 3 volleyball fields available and that games are played at 7:00 PM and 9:00 PM. This means that 6 games can be played every gameday (3 volleyball fields * 2 game times).
Gameday #1
A vs B on Volleyball field “A” will play at 7:00 PM
C vs D on Volleyball field “B” will play at 7:00 PM
E vs F on Volleyball field “C” will play at 7:00 PM
G vs H on Volleyball field “A” will play at 9:00 PM
I vs J on Volleyball field “B” will play at 9:00 PM
K vs L on Volleyball field “C” will play at 9:00 PM
Since the round-robin round can not be completed on a single day, the remaining games in the round will be put on the next gameday and a new round will start right after.
I hope this gem will be useful to some people!

9 thoughts on “Generate round-robin sport schedules with RRSchedule

  1. Hi there. I’m trying to do a round robin schedule for a 7s Rugby Tournament. We have 10 teams to playing each other once over Saturday and Sunday. Games start at 8am and finish at 5pm. Each game is allowed 30 mins long (ie. including half time and changeovers). How do I sue your program to generate a schedule.

  2. Frank,
    Thanks for this gem ūüôā I’d implemented a rudimentary round-robin tournament schedule when I ran into a conflict with multiple playing fields. Decided to look around on Google on the off chance that someone had already solved this problem and I found you.
    You are now officially the man.

  3. Write more, thats all I have to say. Literally, it seems as though you relied
    on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting
    videos to your site when you could be giving us something enlightening to read?

  4. Do you mind if I quote a couple of your posts as long as I provide credit and sources back to
    your website? My website is in the very same area of interest as yours and my users would genuinely benefit from some of the information you provide here.
    Please let me know if this ok with you. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *