Does team A play team B both at home and away at some point in the season? (i.e., do you need both A-home-B-away and B-home-A-away in the schedule?)
On Sat, Apr 16, 2011 at 3:13 PM, Jim Mixon <[email protected]> wrote: > I am trying to write a scheduling program for a client. It will create > pool(billiards) matches on a weekly basis . . > > I need to to be able to collect input from client and create the schedule > based on that input. > > 1. Number of weeks of session > 2. Number of teams in league > 3. This is based on a one day per week schedule > 4. Different matches created from week to week, without repeating combination > until they are possible combinations are used. Then repeat the pattern . . . > 5. One week home, next week away and back again . . > > I have tried numerous approaches, but I just never end up with all the > elements correct. Tried looping thru one list, looping thru two lists, etc . > . . > boy I could use some help on this one . . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343787 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

