home *** CD-ROM | disk | FTP | other *** search
- This is a program to carry out some analysis of the scores obtained in
- a game of Duplicate Bridge.
-
- Name : !Analysis
- Version : 2.02
- Date : 26th February 1994
- Author : Matthew Wilcox
-
- To run this program, simply double click on its icon to load it. Set
- the number of boards played in the Options dialogue box (available
- from the icon bar menu). Then drop a CSV file containing the Bridge
- game data in the correct format (described below) on the icon bar
- icon. The program will then pop up a window displaying the scores
- obtained by each pair. If a value of 5 or -5 is seen, this indicates
- that the contract was redoubled. The proper values will be filled in
- eventually. The raw file information may be saved from the menu and
- this produces an exact copy of the contents of this window. The
- analysis save option saves a file in Impression DDF format and it is
- designed to be dropped into the !Template document provided with this
- program. There is an Impression Style/Publisher version of this
- document supplied in this directory and an Impression II version in
- the 'Backup' directory. The analysis provides the following
- information for each contract and each pair : Where they were sitting;
- what the contract was; who by; number of over or undertricks (€ means
- the contract was made with no overtricks); The deviation from the
- average and The IMPs calculated from this value.
-
- The internal information
-
- The program calculates the deviation of the score from the average of
- the two central values on each hand and these scores are then turned
- into IMPs on a scale. This is the prescribed method for calculating
- IMPs (International Match Points) from scores.
-
- The CSV file format
-
- The files that I used were originally produced in Pipedream 4, so
- apologies for any strange blank slots appearing - these were to make
- the forms easy to fill in.
-
- Line 1 : ,,,"<string>"
-
- This <string> must contain the word "home" or "away" followed by
- (anywhere after them in the string) "against " followed immediately by
- the name of the team that is being played against.
-
- Line 2 : ,,,"<string>"
-
- This <string> must contain the word "on ", followed immediately by the
- date on which the match was played.
-
- Line 3 : ,,,"<names>",,,"<names>",,,"<names>",,,"<names>"
-
- Each string <names> should contain the names of one of the four pairs.
- It does not matter which order the pairs are listed in.
-
- Line 4 : Is completely ignored. It is for your purposes; ie to use
- for headings.
-
- Lines 5 onwards :
- "<Vul>","<Num>","<Pos>","<Cont>","<By>","<Pos>","<Cont>","<By>","<Pos>","<Cont>","<By>","<Pos>","<Cont>","<By>"
-
- <Vul> is the vulnerability. This should be one of :
- XX - No Vulnerability
- NS - North/South Vulnerable
- EW - East/West Vulnerable
- AL - All Vulnerable
-
- <Num> is the contract number. This is ignored by the program, so
- don’t enter the contracts in a funny order.
-
- <Pos> is where the pair are sitting. This should be either N(orth) or
- E(ast)
-
- <Cont> is the contract that was bid. This should be of the form
- 1NT+4*, so number of tricks bid, suit bid, overtricks, double(*) or
- redouble(**). If everyone passes, this may be indicated in whichever
- way you prefer. The crucial part is putting a dash in the next
- column.
-
- <By> is who made the contract. This may be N/S/E/W/- where - means
- all pass.
-
- The last three columns are repeated four times as there are four pairs
- in a team.
-
- The Impression output file
-
- This program is currently designed to produce output suitable for
- reading into Impression II/Junior. There is a !Template document that
- was created in Impression II version 2.16 which contains a suitable
- set of styles and a grid that will tabulate the analysis data. Please
- note that the analysis file contains the sum of the IMPs and not the
- IMPs of the sum.
-
- The internal Data files
-
- There are several files inside the Data directory. The following
- information concerns each file
-
- File : Header
-
- Description
-
- This text file is put at the top of the Analysis file.
- Substitution is performed on any string placed inside % marks. If you
- wish to put a % inside the output file, use %%. If you want to have
- other strings than those at present substituted, add to the CASE
- structure in DEFPROCheadvar
-
- File : Bonuses
-
- Description
-
- This file must be a CSV file. It is a table of the scores
- which a pair would score if they successfully made a contract. The
- headings are rather cryptic, but this is a very large table. The
- first two letters are CD, HS or NT. These translate as Minor suit,
- Major suit or No Trumps. The third letter is either N(ot vulnerable)
- or V(ulnerable). The fourth letter is N(ot doubled), D(oubled) or
- R(edoubled). Please note that the program does not actually look at
- these headings, so don’t get clever and reorganise the columns! The
- row headings are the number of tricks made followed by any overtricks.
- Again, don’t swap any of the rows over.
-
- NOTE : This file is not complete as the values for redoubled
- contracts have not yet been filled in.
-
- File : Penalties
-
- Description
-
- This file is similar to the Bonuses file but much smaller. Do
- not reorganise these either.
-