by oaktown on Sun Nov 29, 2009 12:38 pm
maybe I'm not reading you right, but it sound like you want each players to have an equal number of territories from group A (Accused/accusers) and an equal number from group L (Landowners) - and for every A that a player has he also has a L. And you want them to be assigned at random. And i assume you want it to work for 2-8 players. That's a lot to ask from a very limited XML feature.
44's solution of coding pairs is close and will work for some game sizes. In a five player game (for example) each player will get one pair, but then I believe that the remaining six territories will be distributed randomly, each player receiving one extra territory. In a two or three player game each player would also get one odd, unpaired territory. And the A-L pairs would be pre-set, not random as you wish.
Another imperfect solution would be to code each A territory as a start, so you have eight starts of one territory each. Those eight would be distributed first, so everybody will get at least one A. The A's that are left over would be thrown into the mix with the L's, which would also be distributed at random. Unlike 44's idea the territories are distributed randomly, but there is a chance that somebody won't get an L territory. (Like 44's solution it will work perfectly for 4, 6, 7, and 8 player games, but everything else will be off.)
Evil DIMwit's idea of coding territories both neutral and as starting positions would eliminate this problem in that the left-over coded territories would go neutral, not back into the random mix, but I'm skeptical that the site will recognize both... I'd call in yeti before trying that out, but if it works it is the way to go.
