Mixed Doubles
Introduction
mixed is a program that creates random mixed
doubles teams. The men are on one roster and the women are
on the second roster. Each male/female team play together
only once in the same event. Each player plays the
opposing male and female players only once in the same
event.
The mixed program can be used to set up events
in mixed doubles tennis, beach volleyball, golf, bridge
mixers, or any other coed 2 on 2 sport.
The performance of the program varies every time it is
run, because of the random selection of partners and
opponents. Sometimes the solution takes additional
steps to complete. Sometimes it takes two minutes or
longer to complete a solution.
Occasionally, the number of rounds varies, because
of the random selection process. The program
creates a minimum number of rounds, but sometimes
it creates bonus rounds, because the selections fall
into place.
Procedure
-
Assign a number from 1 to n
to each male player.
-
Assign a number from 1 to n
to each female player.
-
Run the mixed program to produce a
pairing list.
-
Dispatch the first foursome on the list
to the first available playing facility.
-
As each playing facility becomes available,
dispatch the next foursome on the list.
-
See the
sample reports below.
Running Mixed
Use the following shell scripts depending on the
sport.
Sport
|
Shell Script
|
Perl Script
|
Mixed Doubles Tennis
|
mixed.sh
|
mixed.pl
|
Beach Volleyball Mixer
|
mixed.sh
|
mixed.pl
|
Mixed Couples Golf
|
mxgolf.sh
|
mxgolf.pl
|
Bridge Mixer
|
mxbridge.sh
|
mxbridge.pl
|
Syntax
For mixed doubles tennis or beach volleyball,
use the following syntax:
mixed.sh 20
In this example,
-
20 is the number of men playing.
-
20 is also the number of women playing.
-
The number of couples is always an even number.
-
The maximum number of couples is 300.
For mixed couples golf, use the following syntax:
mxgolf.sh 40
In this example,
-
40 is the number of men playing.
-
40 is also the number of women playing.
-
The number of couples is always an even number.
-
The maximum number of couples is 300.
For a bridge mixer, use the following syntax:
mxbridge.sh 40
In this example,
-
40 is the number of men playing.
-
40 also is the number of women playing.
-
There are 20 tables playing bridge in this example.
-
The number of couples is always an even number.
-
The maximum number of couples is 300.
Processing
The mixed program passes data to a perl
script to produce a formatted report with appropriate
headings.
You may wish to route the output report to:
-
The less browser.
-
The printer.
-
A text file.
Sample Reports
-
He and She are the first couple.
-
Him and Her are the opposing couple.
-
In this report,
male player number 4 and female player number 18
play against male player number 8 and female player
number 17 on Court 1 of the first round of play.
-
He and She are the first couple.
-
Him and Her are the opposing couple.
-
In this report,
male player number 6 and female player number 25
play golf with male player number 21 and female player
number 12 as Foursome 1 of the first round of play.
-
North and South are the first couple.
-
For the sake of the report, North is male and
South is female.
-
North and South can trade seats once they are assigned
to a table.
-
East and West are the opposing couple.
-
For the sake of the report, East is male and
West is female.
-
East and West can trade seats once they are assigned
to a table.
-
In this report,
male player number 37 and female player number 14
play against male player number 36 and female player
number 16 at Table 1 in the first round of play.