bluebones.net

Icon

Adventures in Computer Programming

League Fixtures Generator

I’ve made my fixture generating code available via a web page for those who don’t want to delve into programming in order to generate a fixture list.

Fixtures Generator (now in PHP as I didn’t want to have to install Tomcat again). Source code.

Original Java code

Category: Uncategorized

Tagged:

217 Responses

  1. Fixtureman says:

    Chris,
    your problem is too complicated for me. The fixture plan below is the closest I got to solving it:

    ROUND 01 TEAM 1 TEAM 13
    ROUND 01 TEAM 2 TEAM 4
    ROUND 01 TEAM 3 TEAM 6
    ROUND 01 TEAM 5 TEAM 8
    ROUND 01 TEAM 7 TEAM 10
    ROUND 01 TEAM 9 TEAM 12
    ROUND 01 TEAM 11 TEAM 14

    ROUND 02 TEAM 4 TEAM 1
    ROUND 02 TEAM 6 TEAM 2
    ROUND 02 TEAM 8 TEAM 3
    ROUND 02 TEAM 10 TEAM 5
    ROUND 02 TEAM 12 TEAM 7
    ROUND 02 TEAM 13 TEAM 11
    ROUND 02 TEAM 14 TEAM 9

    ROUND 03 TEAM 1 TEAM 11
    ROUND 03 TEAM 2 TEAM 8
    ROUND 03 TEAM 3 TEAM 10
    ROUND 03 TEAM 4 TEAM 6
    ROUND 03 TEAM 5 TEAM 12
    ROUND 03 TEAM 7 TEAM 14
    ROUND 03 TEAM 9 TEAM 13

    ROUND 04 TEAM 6 TEAM 1
    ROUND 04 TEAM 8 TEAM 4
    ROUND 04 TEAM 10 TEAM 2
    ROUND 04 TEAM 11 TEAM 9
    ROUND 04 TEAM 12 TEAM 3
    ROUND 04 TEAM 13 TEAM 7
    ROUND 04 TEAM 14 TEAM 5

    ROUND 05 TEAM 1 TEAM 9
    ROUND 05 TEAM 2 TEAM 12
    ROUND 05 TEAM 3 TEAM 14
    ROUND 05 TEAM 4 TEAM 10
    ROUND 05 TEAM 5 TEAM 13
    ROUND 05 TEAM 6 TEAM 8
    ROUND 05 TEAM 7 TEAM 11

    ROUND 06 TEAM 8 TEAM 1
    ROUND 06 TEAM 9 TEAM 7
    ROUND 06 TEAM 10 TEAM 6
    ROUND 06 TEAM 11 TEAM 5
    ROUND 06 TEAM 12 TEAM 4
    ROUND 06 TEAM 13 TEAM 3
    ROUND 06 TEAM 14 TEAM 2

    ROUND 07 TEAM 1 TEAM 7
    ROUND 07 TEAM 2 TEAM 13
    ROUND 07 TEAM 3 TEAM 11
    ROUND 07 TEAM 4 TEAM 14
    ROUND 07 TEAM 5 TEAM 9
    ROUND 07 TEAM 6 TEAM 12
    ROUND 07 TEAM 8 TEAM 10

    ROUND 08 TEAM 7 TEAM 5
    ROUND 08 TEAM 9 TEAM 3
    ROUND 08 TEAM 10 TEAM 1
    ROUND 08 TEAM 11 TEAM 2
    ROUND 08 TEAM 12 TEAM 8
    ROUND 08 TEAM 13 TEAM 4
    ROUND 08 TEAM 14 TEAM 6

    ROUND 09 TEAM 1 TEAM 5
    ROUND 09 TEAM 2 TEAM 9
    ROUND 09 TEAM 3 TEAM 7
    ROUND 09 TEAM 4 TEAM 11
    ROUND 09 TEAM 6 TEAM 13
    ROUND 09 TEAM 8 TEAM 14
    ROUND 09 TEAM 10 TEAM 12

    ROUND 10 TEAM 5 TEAM 3
    ROUND 10 TEAM 7 TEAM 2
    ROUND 10 TEAM 9 TEAM 4
    ROUND 10 TEAM 11 TEAM 6
    ROUND 10 TEAM 12 TEAM 1
    ROUND 10 TEAM 13 TEAM 8
    ROUND 10 TEAM 14 TEAM 10

    ROUND 11 TEAM 1 TEAM 3
    ROUND 11 TEAM 2 TEAM 5
    ROUND 11 TEAM 4 TEAM 7
    ROUND 11 TEAM 6 TEAM 9
    ROUND 11 TEAM 8 TEAM 11
    ROUND 11 TEAM 10 TEAM 13
    ROUND 11 TEAM 12 TEAM 14

    ROUND 12 TEAM 3 TEAM 2
    ROUND 12 TEAM 5 TEAM 4
    ROUND 12 TEAM 7 TEAM 6
    ROUND 12 TEAM 9 TEAM 8
    ROUND 12 TEAM 11 TEAM 10
    ROUND 12 TEAM 13 TEAM 12
    ROUND 12 TEAM 14 TEAM 1

    ROUND 13 TEAM 2 TEAM 1
    ROUND 13 TEAM 4 TEAM 3
    ROUND 13 TEAM 6 TEAM 5
    ROUND 13 TEAM 8 TEAM 7
    ROUND 13 TEAM 10 TEAM 9
    ROUND 13 TEAM 12 TEAM 11
    ROUND 13 TEAM 14 TEAM 13

  2. Chris Higginbottom says:

    I’ve had a look back and seen a request for it, but I can’t see a response from anyone regarding the ‘two-conference’ problem. I’ve got a solution that works for a just a simple setup of two 8-team conferences, with just simple sharing constraints (two teams per venue). It also works if you have a ‘mirror’ competition below e.g. you have a first team and second team competition with the same 16 clubs in each. The only place that it fails is when the second team competition doesn’t exactly mirror the first team i.e. you have a different mix of the 16 teams in each conference for 1st and 2nd team comps. Even then there are only two sets of fixtures that cause any problems and these can be re-arranged or split up. If anyone is interested, mail me

  3. Chris Higginbottom says:

    Sorry – email address is chigginbottom (at) btinternet.com

  4. michael mwanja says:

    Hello can i get a similar one for 10 teams ,11 teams and 12 teams ?

  5. me says:

    i would like a 7 round one for 12 teams too…thanks

  6. Dean says:

    I have a tricky one for you

    Could you please create a 10 teams and 2 teams have a BYE each week.

    Thanks

  7. Chris Higginbottom says:

    Dean, isn’t that just a standard 12-team fixture pattern, but with two nominated empty slots? That would then leave just two weeks out of the 22 where the empty slots are scheduled against each other

  8. Phil Burke says:

    Golf-two teams of six playing in twos- four founds – each player to play with four different players of own team – and with all players of opposite team at least once.

    can anyone help.

  9. Alan Halford says:

    Phil……something like this

    1 & 2
    3 & 4
    5 & 6
    ……..
    1 & 4
    2 & 5
    3 & 6
    ……..
    1 & 5
    3 & 2
    4 & 6
    ………
    1 & 6
    2 & 4
    3 & 5
    ……..

    Just apply that equation to both teams. Hope that works for you

  10. John Egan says:

    Hi, can anyone provide me with the basic fixture format for a division of 12 teams/clubs? I have the relevant formats for 8/10 teams but from 2011 we will be operating a division with 12 teams in it.

    Many thanks in advance

    John Greater Manchester Amateur Cricket League Fixture Secretary.

  11. @John – use the fixtures generator linked in the original post … http://bluebones.net/fixtures.php

  12. Fixtureman says:

    John,

    I have all kinds of fixture plans in my online storage bin, which you’ll find by clicking on my name.

  13. Wes says:

    Just wondered whether or not you have something for odd teams in a league not cup/round setup? So the odd team plays one of the teams already played that night (for a 5-a-side league)? I know this will mean one team will play twice but it can’t be helped really. As long as each team only plays each other once/twice or a set pre-determined amount?

    Wes

  14. Chris Higginbottom says:

    Wes

    You will always end up with a week with one game left over. For example, a 5-team league with teams playing each other once requires 10 games. With three games per night (two involving four of the five, plus another with the ‘sit-out’ and one of the teams that has already played), that would be three full weeks, plus an odd fixture left over. A 7-team is 21 games in blocks of 4 leaves 1 over, and a 9-team is 36 in blocks of 5 – again 1 over. It carries on ad infinitum – there is no doubt a mathematical proof why the sum of 1 to (n-1) divided by (n-2) is always equal to 1.

  15. Chris Higginbottom says:

    Sorry – I missed out ‘the remainder from’ after ‘why’!

  16. N.1.A.K. says:

    16 teams. 4 divisions of 4. 13 weeks of matchups. what’s the best way to get this done?

    heres another.

    20 teams. 4 divisions of 5. 13 weeks of matchups. what’s the best way to get this done?

  17. Chris Higginbottom says:

    You need to be a bit clearer, N.1.A.K. – are these conferences, rather than divisions, where teams play those in other ‘groups’ (for want of a better generic term)? Or are they just going to play the three/four teams in their own division ad nauseam (and because of the 13 week schedule not the same number of times for each team)?

Leave a Reply