| Re: auto-generate a fixture list -
06-04-2007, 08:57 AM
"Laphan" <EMAIL REMOVED> wrote in message
news:3fdcbfc8_3@127.0.0.1...
> Hi All
>
> This is a strange request, ... [snip]
> I have 10 team names like so:
>
> Team A
> Team B
> Team C
> etc ..
>
> I want to create a sort of fixture list that makes sure that each team
> 'plays' each other just once at home (ie, on the left side) and once away
> (ie, on the right side), eg:
>
> Team A v Team B
> Team C v Team D
> etc..
>
> for what will be 9 weeks (??)
>
That would be 18 Weeks in total:
Team A plays B - J 1 Time at home then Team A plays B- J 1 Time away.
> I then want to put this into an Access DB, which is easy enough, but the
> former problem is a lot harder.
>
> My initial idea was to enter all the permutations and then use a random
> number generator to pick 10 matches for each week's fixture, but this was
a
> crap idea because I can get the same team's matches listed 4 or 5 times in
> the same week.
>
> Any ideas?
>
> Rgds
>
> Laphan
A good way to approach this is to view two columns, Home and Away
First Column A - E, Second Column F - J
Now Each incrementing week rotate the letters one position clockwise, while
leaving A in the same postion each week for the first 9 weeks. This will
give the first 9 Weeks, invert the results for the last 9 Weeks. Ie A Week
1 at home become A Week 10 away.
Mike |