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).

Example:
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!

  • Carl

    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.

    Thanks

    Carl

  • http://www.rubyfleebie.com Frank

    I sent you a reply by email Carl. Hope it will help you out.

  • Carl

    Thanks again Frank. I will give it a go and keep you posted.

    Carlos

  • http://yuiloikijui.net Sharice Nebesnik

    People will buy anything that is ‘one to your customer.’
    The gambling known as business looks with austere disfavor upon the business enterprise generally known as gambling.

  • Shahbaz

    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.

  • http://www.rubyfleebie.com Frank

    Hi Shahbaz, I’m glad the gem did help you out. Thanks for the kind words!

  • http://trishakei.datingish.com/772939225/short-term-auto-insurance/ compare auto¬†insurance¬†quote

    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?

  • http://www.nexopia.com/users/SangBenedi/blog/1-seolutions-one-of-the-upcoming-seo-companies Alonzo

    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!

  • http://scrappinscrawcrow.blogspot.com/2010/08/dorney-famiuly-reunion.html the best seo companies

    Hey! Would you mind if I share your blog with my
    facebook group? There’s a lot of folks that I think would really enjoy your content. Please let me know. Thank you