Foursome
Single Roster

Copying Fsome

Introduction

fsome is a program that creates random foursomes from a single roster. Each player plays with the same partner and opponent only once in the same event.

The fsome program can be used to set up events in doubles tennis, beach volleyball, golf, cycling, bridge, or any other sport played with foursomes.

Cycling uses the same program as golf, because both sports make use of their entire course. Cycling events can be organized in heats of 4 or as races with teams of 4.

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 Fsome

Use the following shell scripts depending on the sport.

Sport Shell Script Perl Script
Tennis fsome.sh fsome.pl
Volleyball fsome.sh fsome.pl
Golf fsgolf.sh fsgolf.pl
Cycling fsgolf.sh fsgolf.pl
Bridge fsbridge.sh fsbridge.pl

Syntax

For doubles tennis or beach volleyball, use the following syntax:

      fsome.sh 40

In this example,


For golf or cycling, use the following syntax:

      fsgolf.sh 40

In this example,


For bridge, use the following syntax:

      fsbridge.sh 40

In this example,


Processing

The fsome 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

Tennis or Volleyball

Golf or Cycling

Bridge