Gyözö emailed me to wake me up, so here I amgyboth wrote:as for the definition, it's a pity mark isn't around lately, he's quite a good definition-maker. but maybe i'll have time for it a bit later (if i manage to set up gentoo, that is ).
I've started on the definition but I'm afraid there is a problem with the layer 3 promotion system. When the program relegates teams from Segunda División to the third layer, it just puts one team in each of the four divisions. It has no way of knowing how many teams got promoted from each division so it ends up in a hopeless mess!
For now, just to get us started, I'm going to change the system so that each Liguilla contains the top four teams from a single division, to ensure that one team from each division gets promoted. I'll also simplify the Copa del Rey until we get the team choosing sorted out. Gyözö thinks it should be fairly easy, but his relationship with the code is much more intimate than mine.
There might be a fairly simple solution to the prom/rel problem. I'm thinking of getting the program to keep a count of how many teams are removed from each division for promotion/relegation, then using this information to decide (randomly) where to put teams with more than one possible destination.
This problem can exist even with fairly simple promotion systems. For example, a country with two parallel leagues might promote three teams: the winner of each, together with the winner of a playoff between the second place teams. The program has to relegate three teams but doesn't know which league to put two teams into. Indeed, something similar happens with the two English divisions below the Conference, but the playoffs are much more drawn out. We do seem to love our playoffs here in England
Mark