team is a program that creates random foursomes from two rosters. Two players from one roster compete against two players from the opposing roster. Each team of two plays together only once in the same event. Each player plays the same opponent only once in the same event.
The team program can be used to set up events in team doubles tennis, beach volleyball, team golf, cycling with two to a team, bridge, or any other 2 on 2 sport.
Cycling uses the same program as golf, because both sports make use of their entire course.
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.
Use the following shell scripts depending on the sport.
Sport | Shell Script | Perl Script |
---|---|---|
Team Tennis | team.sh | team.pl |
Beach Volleyball | team.sh | team.pl |
Team Golf | tmgolf.sh | tmgolf.pl |
Team Cycling | tmgolf.sh | tmgolf.pl |
Team Bridge | tmbridge.sh | tmbridge.pl |
For team doubles tennis or beach volleyball, use the following syntax:
team.sh 20
In this example,
For team golf or cycling, use the following syntax:
tmgolf.sh 40
In this example,
For team bridge, use the following syntax:
tmbridge.sh 40
In this example,
The team 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
Team Tennis or Volleyball
Team Golf or Cycling
Team Bridge