Code works fine except...
gallium.arsenide at gmail.com
Tue May 5 09:32:03 CEST 2009
On May 5, 1:12 am, John Yeung <gallium.arsen... at gmail.com> wrote:
> [...] the problem may require bigger guns (either much better
> math or much more sophisticated programming).
Yes, I'm responding to myself.
Well, I went ahead with the approach I mentioned earlier, generating
all possible matches and then selecting among them as needed to fill
up the courts, trying to keep the number of matches played by each
player as fair as possible. (I should mention that this, or something
similar, was suggested earlier by someone else in a different thread,
in response to the same question by the same OP.)
I did use "bigger guns" (mainly a class for player objects, with
custom __cmp__ method), but still didn't do anything with doubles.
I haven't tested it much, but I'll post it if anyone's interested.
(That way people can pick on me instead of the OP. ;)
More information about the Python-list