Author Topic: I need some help with a league schedule  (Read 825 times)

0 Members and 2 Guests are viewing this topic.

Offline aldo_14

  • Gunnery Control
  • 213
I need some help with a league schedule
Its for a project...i need to work out an 18 team (home and away) schedule.  I either need to hard code it, or work out an autogen algorithm.  Any advice is welcome*

*(well, obviously :))

 

Offline aldo_14

  • Gunnery Control
  • 213
I need some help with a league schedule
help?

Should say, if anyone can just give me a method, i can get started.  i have ideas, but the last time i did this (for a 5-a-sides league at uni), it was a bit of a disaster :)

 
I need some help with a league schedule
if i get this right all you need is a table, with the names of the teams on both axes, and just put dates in the right places. you could probably make something that checks in each cell if on some date either of the affected teams is already playing, and then put in the first possible date. just let that program run and see if it comes up with something usefull.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

  

Offline aldo_14

  • Gunnery Control
  • 213
I need some help with a league schedule
Quote
Originally posted by kasperl
if i get this right all you need is a table, with the names of the teams on both axes, and just put dates in the right places. you could probably make something that checks in each cell if on some date either of the affected teams is already playing, and then put in the first possible date. just let that program run and see if it comes up with something usefull.


That's kind of what i am doing... the problem is trying to avoid the linear ( O(n) ) methods for working out what matches are to played, because it would lead to bit of a long running time.... I've been trying to develop a design that will maximise array index references, rather than linear array searches, but it's a pain in the arse.

Although....., thinking about it, that may be a bit more efficient than what i'm doing.....

I think i have a better idea now for what i'm doing, cheers :)

 

Offline comic

  • 25
I need some help with a league schedule
has anyone got the GVF Reshef, could you post a link where i can get it. thanks
"Every Light Carries A Shadow" - Carved on an obelisc on Z'Ha'Dum

"The Earth is degenerating today. Bribery and corruption abound. Children no longer obey their parents, every man wants to write a book, and it is evident that the end of the world is fast approaching."
Assyrian tablet, c. 2800 BC

 

Offline aldo_14

  • Gunnery Control
  • 213
I need some help with a league schedule
Quote
Originally posted by comic
has anyone got the GVF Reshef, could you post a link where i can get it. thanks


(wow.... now that's OT :D)

http://www.3dap.com/hlp/hosted/reciprocity/mods_standalone.html