Mixed Doubles

Copying Mixed

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

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,


For mixed couples golf, use the following syntax:

      mxgolf.sh 40

In this example,


For a bridge mixer, use the following syntax:

      mxbridge.sh 40

In this example,


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:


Sample Reports

Mixed Doubles Tennis or Volleyball

Mixed Golf

Bridge Mixer