Eduardo Yáñez Parareda wrote: >> Hmmm ... sounds like a Ruby Quiz to me. :) > > Yes, it's a good candidate to Ruby Quiz. You have to make pairs of > teams, but a team might not > play two weeks at home one after the other. > > You could make it more harder if you assign weights to teams, and > doesn't mix teams with > similar weights at first weeks. > > I think there are implementations in Perl (Best Pairs or something like > that...) but I don't like Perl :). > > > You can make the requirements general enough for this sort of thing that you end up with a combinatorial optimization problem that could be NP-complete. :) I recall about 20 years ago, a lot of research went into airline crew scheduling, for example. Then again, if you make it too simple, it isn't much fun. :) I haven't yet submitted either a problem or a solution to a Ruby Quiz, but I'd sure take a shot at this one. :)