I play badminton and have a Perl/Tk application that we use to generate random doubles teams for club nights. The application tracks the people present, the number of times each has played and the games that have been drawn already. A draw is generated for each 15 minute round. After a draw is generated players can be moved between games or swapped with an undrawn player to even teams up or provide teacher/student pairings etc.
The drawing process doesn't take player rankings into account or any other player attributes. It simply tries to give everyone about the same amount of court time. To that end it works very well and the club is well pleased with it despite a few rough edges.
True laziness is hard work
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|