home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!zephyr.ens.tek.com!master!saab!billr
- From: billr@saab.CNA.TEK.COM (Bill Randle)
- Newsgroups: comp.sources.games
- Subject: v14i092: okbridge2 - computer-mediated bridge game, Part14/14
- Message-ID: <3531@master.CNA.TEK.COM>
- Date: 7 Sep 92 21:43:27 GMT
- Sender: news@master.CNA.TEK.COM
- Lines: 696
- Approved: billr@saab.CNA.TEK.COM
-
- Submitted-by: mclegg@cs.UCSD.EDU (Matthew Clegg)
- Posting-number: Volume 14, Issue 92
- Archive-name: okbridge2/Part14
- Supersedes: okbridge: Volume 13, Issue 16-22
- Environment: BSD-derived Unix, NeXT, curses, sockets
-
-
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of archive 14 (of 14)."
- # Contents: COPYRIGHT Revisions cipher.h conversation.h cs.h fds.h
- # log.h nonstd.c okshuffle.man
- # Wrapped by billr@saab on Mon Sep 7 14:33:39 1992
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'COPYRIGHT' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'COPYRIGHT'\"
- else
- echo shar: Extracting \"'COPYRIGHT'\" \(831 characters\)
- sed "s/^X//" >'COPYRIGHT' <<'END_OF_FILE'
- X Copyright Notice
- X --------- ------
- X
- X Copyright (C) 1990-1992 by Matthew Clegg
- X All Rights Reserved
- X
- XOKbridge is made available as a free service to the Internet.
- XAccordingly, the following restrictions are placed on its use:
- X
- X1. OKbridge may not be modified in any way without the explicit
- X permission of Matthew Clegg.
- X
- X2. OKbridge may not be used in any way for commercial advantage.
- X It may not be placed on for-profit networks or on for-profit
- X computer systems. It may not be bundled as part of a package
- X or service provided by a for-profit organization.
- X
- XIf you have questions about restrictions on the use of OKbridge,
- Xwrite to mclegg@cs.ucsd.edu.
- X
- XDISCLAIMER: The user of OKbridge accepts full responsibility for any
- Xdamage which may be caused by OKbridge.
- X
- END_OF_FILE
- if test 831 -ne `wc -c <'COPYRIGHT'`; then
- echo shar: \"'COPYRIGHT'\" unpacked with wrong size!
- fi
- # end of 'COPYRIGHT'
- fi
- if test -f 'Revisions' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'Revisions'\"
- else
- echo shar: Extracting \"'Revisions'\" \(2555 characters\)
- sed "s/^X//" >'Revisions' <<'END_OF_FILE'
- XThis file notes the changes that have been made for each revision
- Xof okbridge.
- X
- X1.7-beta.1. NeXT version completed August 4, 1992.
- X1.7-beta.2. Corrected inconsistencies between system header files for Sun.
- X First release to the next, August 5.
- X
- X ...
- X
- X1.7A Released Friday, August 14, 1992.
- X
- X1.7B Released Wednesday, August 19, 1992.
- X - The install option now uses 'strip' to reduce the size of the executable.
- X - The name of the install program is now a make variable.
- X - Entering practice mode when no one has a seat does not cause a crash.
- X - All players are removed from the spectator list when the last play is made.
- X - The convention card is not repeated twice when using /setcc.
- X - /opp messages are not repeated twice.
- X - OKtally can now compute total score by player.
- X - The fullname field is not re-initialized when entering server mode.
- X - The /results display now highlights the record of the local player.
- X - Added a /scoreboard command for displaying the OKbridge scoreboard.
- X - The players who are credited for the play of a hand are those who were
- X sitting at the table when the bidding ended.
- X - Compiles without errors on the NeXT, 4.3 BSD Reno and some others.
- X - Altered the IMP scoring so that for each board it averages the IMPs.
- X - Displays the opening lead incorrectly in the log.
- X - Displays the names of the players in the play correctly in the log.
- X - "CLAIM OFFER DECLINED MESSAGE" is now displayed to declarer.
- X - Using the /DUP command when the GPS is not available will not cause
- X a core dump.
- X - Removed extraneous semicolons which generated compiler warnings.
- X
- X1.7C
- X - The GPS is now always informed when a player leaves duplicate mode.
- X - Eliminated a bug which could allow a player to play the same card twice.
- X - Eliminated a bug in the GPS which caused a core dump if the player tries
- X to upload results of play at the wrong time.
- X - Corrected a bug in the supplied version of bcopy.
- X - Modified terminal.c to compile on systems which do not have TIOCGWINSZ.
- X - If a spectator redraws the screen during bidding, the player's cards are
- X displayed correctly.
- X - Does not allow doubles when a contract bid has not yet been made.
- X - Name changes are now recorded in the GPS.
- X - Now requests the server to press <ESC> before dealing the first hand.
- X - When the esc key is set to <CR>, extranoues PASS bids are no longer
- X generated at the end of the bidding.
- X - Observers may not use the /skip command now.
- X - New players always join as observers.
- END_OF_FILE
- if test 2555 -ne `wc -c <'Revisions'`; then
- echo shar: \"'Revisions'\" unpacked with wrong size!
- fi
- # end of 'Revisions'
- fi
- if test -f 'cipher.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'cipher.h'\"
- else
- echo shar: Extracting \"'cipher.h'\" \(2613 characters\)
- sed "s/^X//" >'cipher.h' <<'END_OF_FILE'
- X/* cipher.h
- X *
- X ! Copyright (C) 1990-1992 by Matthew Clegg. All Rights Reserved
- X !
- X ! OKbridge is made available as a free service to the Internet.
- X ! Accordingly, the following restrictions are placed on its use:
- X !
- X ! 1. OKbridge may not be modified in any way without the explicit
- X ! permission of Matthew Clegg.
- X !
- X ! 2. OKbridge may not be used in any way for commercial advantage.
- X ! It may not be placed on for-profit networks or on for-profit
- X ! computer systems. It may not be bundled as part of a package
- X ! or service provided by a for-profit organization.
- X !
- X ! If you have questions about restrictions on the use of OKbridge,
- X ! write to mclegg@cs.ucsd.edu.
- X !
- X ! DISCLAIMER: The user of OKbridge accepts full responsibility for any
- X ! damage which may be caused by OKbridge.
- X *
- X * This file provides definitions for a module which implements a
- X * very simple cipher that is used to encode crucial parts of the
- X * email duplicate files. The purpose of the cipher is to allow
- X * email duplicate files to be manipulated easily without revealing
- X * their contents. For details about how the cipher is implemented,
- X * see the file code.c.
- X *
- X*/
- X
- X#define CIPHER_INCLUDED
- X
- X#define CIPHER_SIZE 64
- X#define CIPHER_SIZE1 65
- X
- Xtypedef struct Cipher_struct {
- X /* For more information about the meanings of these fields, see the
- X header of file code.c */
- X int encoding [CIPHER_SIZE1]; /* The permutation p */
- X int decoding [CIPHER_SIZE1];
- X} Cipher, *Cipher_ptr;
- X
- X
- Xint Read_Cipher_Descriptor ();
- X/* Reads a cipher descriptor from the file f. Returns 0 if successful
- X or 1 if an error occurred. */
- X
- Xvoid Write_Cipher_Descriptor ();
- X/* Writes the cipher descriptor c to the file f. */
- X
- Xvoid Create_Cipher_Descriptor ();
- X/* Fills the structure c with a randomly generated cipher descriptor. */
- X
- Xvoid Encode_String ();
- X/* Encodes the string in source, placing the result in dest.
- X If c == NULL, then simply copies source to dest. */
- X
- Xvoid Decode_String ();
- X/* Decodes the string in source, placing the result in dest.
- X If c == NULL, then simply copies source to dest. */
- X
- Xvoid Write_Ciphered_Line ();
- X/* Encodes buf using the cipher c and writes it to the file f.
- X The first character written to the file is an exclamation point '!' */
- X
- Xint Read_Ciphered_Line ();
- X/* Reads a line of up to buflen characters from the file f and decodes
- X the line using the cipher c. If the first character of the line
- X is not an exclamation point '!', then the line is assumed to be
- X in plain text. Returns the number of characters read or -1 if
- X end of file is reached.
- X*/
- END_OF_FILE
- if test 2613 -ne `wc -c <'cipher.h'`; then
- echo shar: \"'cipher.h'\" unpacked with wrong size!
- fi
- # end of 'cipher.h'
- fi
- if test -f 'conversation.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'conversation.h'\"
- else
- echo shar: Extracting \"'conversation.h'\" \(2564 characters\)
- sed "s/^X//" >'conversation.h' <<'END_OF_FILE'
- X/* conversation.h -- process messages at conversation level.
- X *
- X ! Copyright (C) 1990-1992 by Matthew Clegg. All Rights Reserved
- X !
- X ! OKbridge is made available as a free service to the Internet.
- X ! Accordingly, the following restrictions are placed on its use:
- X !
- X ! 1. OKbridge may not be modified in any way without the explicit
- X ! permission of Matthew Clegg.
- X !
- X ! 2. OKbridge may not be used in any way for commercial advantage.
- X ! It may not be placed on for-profit networks or on for-profit
- X ! computer systems. It may not be bundled as part of a package
- X ! or service provided by a for-profit organization.
- X !
- X ! If you have questions about restrictions on the use of OKbridge,
- X ! write to mclegg@cs.ucsd.edu.
- X !
- X ! DISCLAIMER: The user of OKbridge accepts full responsibility for any
- X ! damage which may be caused by OKbridge.
- X *
- X */
- X
- Xtypedef int (* event_signal) ();
- X /* The wait for event routines below take as a parameter a pointer to
- X a function which returns true when the event in question has occurred.
- X */
- X
- Xvoid Handle_Conversation_Message ();
- X/* Processes the message m. If the message is a conversation message, then
- X * takes appropriate action based on the message. Appends the message
- X * to the appropriate conversation queue if further action is warranted.
- X */
- X
- Xvoid Wait_for_event_at_conversation_level ();
- X/* Receives incoming messages at all tables. Handles keyboard characters
- X * and messages which arrive on the protocol queues. Each time a keyboard
- X * character is received or a new message is processed, the event_signal
- X * routine is called. If it returns true, then the procedure exits.
- X */
- X
- Xvoid Wait_for_event_at_game_level ();
- X/* Receives incoming messages at all tables. Handles keyboard characters
- X * and messages which arrive on the protocol and conversation queues. Each
- X * time a keyboard character is received or a new message is processed, the
- X * event_signal e routine is called. If it returns true, then the procedure
- X * exits.
- X */
- X
- XTable Wait_for_conversation_message ();
- X/* Receives incoming message at all tables. Handles keyboard characters
- X * and messages which arrive on the protocol queues. When a message is
- X * placed onto the conversation queue of a table, returns a pointer to
- X * the table. */
- X
- XTable Wait_for_game_message ();
- X/* Receives incoming messages at all tables. Handles keyboard characters
- X * and messages which arrive on the protocol and game queues. When a message
- X * is placed onto the game queue of a table, returns a pointer to the table.
- X */
- X
- END_OF_FILE
- if test 2564 -ne `wc -c <'conversation.h'`; then
- echo shar: \"'conversation.h'\" unpacked with wrong size!
- fi
- # end of 'conversation.h'
- fi
- if test -f 'cs.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'cs.h'\"
- else
- echo shar: Extracting \"'cs.h'\" \(1665 characters\)
- sed "s/^X//" >'cs.h' <<'END_OF_FILE'
- X/* cs.h -- client/server routines
- X *
- X ! Copyright (C) 1990-1992 by Matthew Clegg. All Rights Reserved
- X !
- X ! OKbridge is made available as a free service to the Internet.
- X ! Accordingly, the following restrictions are placed on its use:
- X !
- X ! 1. OKbridge may not be modified in any way without the explicit
- X ! permission of Matthew Clegg.
- X !
- X ! 2. OKbridge may not be used in any way for commercial advantage.
- X ! It may not be placed on for-profit networks or on for-profit
- X ! computer systems. It may not be bundled as part of a package
- X ! or service provided by a for-profit organization.
- X !
- X ! If you have questions about restrictions on the use of OKbridge,
- X ! write to mclegg@cs.ucsd.edu.
- X !
- X ! DISCLAIMER: The user of OKbridge accepts full responsibility for any
- X ! damage which may be caused by OKbridge.
- X *
- X */
- X
- Xextern void Handle_Protocol_Message_for_Server ();
- X/* void Handle_Protocol_Message_for_Server (message m); */
- X/* Processes the message m. If the message is a protocol message, then
- X takes appropriate action based on the message. Appends the message
- X to the appropriate conversation queue if further action is warranted.
- X*/
- X
- Xextern void Handle_Protocol_Message_for_Client ();
- X/* void Handle_Protocol_Message_for_Client (message m); */
- X/* Performs the corresponding action as Handle_Protocol_Message_for_Server */
- X
- Xextern void Clear_Spectators ();
- X/* void Clear_Spectators (Table t); */
- X/* Clears the spectator mode flag for each of the players at the table t. */
- X
- Xextern void Assign_seat ();
- X/* void Assign_seat (Table t, Connection c, int seat); */
- X/* Assigns the given seat to the player with connection c. */
- END_OF_FILE
- if test 1665 -ne `wc -c <'cs.h'`; then
- echo shar: \"'cs.h'\" unpacked with wrong size!
- fi
- # end of 'cs.h'
- fi
- if test -f 'fds.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'fds.h'\"
- else
- echo shar: Extracting \"'fds.h'\" \(1352 characters\)
- sed "s/^X//" >'fds.h' <<'END_OF_FILE'
- X/* fds.h
- X *
- X ! Copyright (C) 1990-1992 by Matthew Clegg. All Rights Reserved
- X !
- X ! OKbridge is made available as a free service to the Internet.
- X ! Accordingly, the following restrictions are placed on its use:
- X !
- X ! 1. OKbridge may not be modified in any way without the explicit
- X ! permission of Matthew Clegg.
- X !
- X ! 2. OKbridge may not be used in any way for commercial advantage.
- X ! It may not be placed on for-profit networks or on for-profit
- X ! computer systems. It may not be bundled as part of a package
- X ! or service provided by a for-profit organization.
- X !
- X ! If you have questions about restrictions on the use of OKbridge,
- X ! write to mclegg@cs.ucsd.edu.
- X !
- X ! DISCLAIMER: The user of OKbridge accepts full responsibility for any
- X ! damage which may be caused by OKbridge.
- X *
- X * This code was contributed by aaron@cie.uoregon.edu (Aaron Putnam).
- X *
- X * It provides definitions for the FD_ macros for those systems which
- X * do not define them.
- X */
- X
- X
- X#ifndef FD_SETSIZE
- X# define FD_SETSIZE 64
- X#endif
- X
- X#ifndef FD_ZERO
- X# define FD_ZERO(x) ((x)->fds_bits[0] = 0)
- X#endif
- X
- X#ifndef FD_SET
- X# define FD_SET(y,x) ((*(x)).fds_bits[0] |= (1 << (y)))
- X#endif
- X
- X#ifndef FD_CLR
- X# define FD_CLR(y,x) ((*(x)).fds_bits[0] & (1 << (y)))
- X#endif
- X
- X#ifndef FD_ISSET
- X# define FD_ISSET(y,x) ((*(x)).fds_bits[0] & (1 << (y)))
- X#endif
- X
- END_OF_FILE
- if test 1352 -ne `wc -c <'fds.h'`; then
- echo shar: \"'fds.h'\" unpacked with wrong size!
- fi
- # end of 'fds.h'
- fi
- if test -f 'log.h' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'log.h'\"
- else
- echo shar: Extracting \"'log.h'\" \(1817 characters\)
- sed "s/^X//" >'log.h' <<'END_OF_FILE'
- X/* log.h -- routines for writing log files.
- X *
- X ! Copyright (C) 1990-1992 by Matthew Clegg. All Rights Reserved
- X !
- X ! OKbridge is made available as a free service to the Internet.
- X ! Accordingly, the following restrictions are placed on its use:
- X !
- X ! 1. OKbridge may not be modified in any way without the explicit
- X ! permission of Matthew Clegg.
- X !
- X ! 2. OKbridge may not be used in any way for commercial advantage.
- X ! It may not be placed on for-profit networks or on for-profit
- X ! computer systems. It may not be bundled as part of a package
- X ! or service provided by a for-profit organization.
- X !
- X ! If you have questions about restrictions on the use of OKbridge,
- X ! write to mclegg@cs.ucsd.edu.
- X !
- X ! DISCLAIMER: The user of OKbridge accepts full responsibility for any
- X ! damage which may be caused by OKbridge.
- X *
- X */
- X
- Xvoid Write_hand ();
- X/* Writes the board b with play record p to the file f in an expanded
- X * format which is similar to that found in bridge books.
- X */
- X
- Xvoid Write_hand_compactly
- X ();
- X/* Writes the board b with play record p to the file f in a brief format
- X * which was introduced by S. Zhang.
- X */
- X
- Xvoid sprint_summary_header ();
- X/* Writes to the buffer buf the header which is used in the scoring
- X * summaries.
- X */
- X
- Xvoid sprint_summary_record ();
- X/* Writes to the buffers buf1 and buf2 the scoring summary for the board b
- X * and play record p.
- X */
- X
- Xvoid Write_summary_of_play ();
- X/* For each play record associated to the board b, writes a single line
- X * summary describing the result of play.
- X */
- X
- Xvoid Sort_play_records_by_matchpoints ();
- X/* Sorts the set of play records for the board b according to the match
- X * point scores.
- X */
- X
- Xvoid Sort_play_records_by_imps ();
- X/* Sorts the set of play records for the board b according to the
- X * imp scores.
- X */
- END_OF_FILE
- if test 1817 -ne `wc -c <'log.h'`; then
- echo shar: \"'log.h'\" unpacked with wrong size!
- fi
- # end of 'log.h'
- fi
- if test -f 'nonstd.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'nonstd.c'\"
- else
- echo shar: Extracting \"'nonstd.c'\" \(2554 characters\)
- sed "s/^X//" >'nonstd.c' <<'END_OF_FILE'
- X/* nonstd.c -- nonstandard routines.
- X *
- X ! Copyright (C) 1990-1992 by Matthew Clegg. All Rights Reserved
- X !
- X ! OKbridge is made available as a free service to the Internet.
- X ! Accordingly, the following restrictions are placed on its use:
- X !
- X ! 1. OKbridge may not be modified in any way without the explicit
- X ! permission of Matthew Clegg.
- X !
- X ! 2. OKbridge may not be used in any way for commercial advantage.
- X ! It may not be placed on for-profit networks or on for-profit
- X ! computer systems. It may not be bundled as part of a package
- X ! or service provided by a for-profit organization.
- X !
- X ! If you have questions about restrictions on the use of OKbridge,
- X ! write to mclegg@cs.ucsd.edu.
- X !
- X ! DISCLAIMER: The user of OKbridge accepts full responsibility for any
- X ! damage which may be caused by OKbridge.
- X *
- X * This file contains routines which are not available on all systems.
- X */
- X
- X#include <stdio.h>
- X#include <ctype.h>
- X#include <string.h>
- X
- X#ifdef HPUX
- X#define NO_BCOPY
- X#define NO_INDEX
- X#endif
- X
- Xextern char *malloc ();
- X
- Xchar *strdup (s)
- X char *s;
- X{
- X char *p, *q;
- X
- X if (s == NULL)
- X return (NULL);
- X
- X q = p = (char *) malloc (strlen(s) + 1);
- X while (*s != '\0')
- X *(q++) = *(s++);
- X *q = '\0';
- X return (p);
- X}
- X
- X#ifdef NO_ISSPACE
- Xint isspace (ch)
- X char ch;
- X{
- X return ((ch == ' ') || (ch == '\t') || (ch == '\n'));
- X}
- X#endif
- X
- X#ifdef NO_BCOPY
- Xvoid bcopy (from, to, len)
- X char *from, *to; int len;
- X{
- X while (--len >= 0)
- X *(to++) = *(from++);
- X}
- X#endif
- X
- X#ifdef NO_INDEX
- Xchar *index (s, c)
- X char *s, c;
- X{
- X return (strchr(s,c));
- X}
- X#endif
- X
- X#ifdef NO_STRCASECMP
- Xint strcasecmp (s1, s2)
- X char *s1, *s2;
- X{
- X char c1, c2;
- X
- X c1 = *(s1++); c2 = *(s2++);
- X while (c1 && c2) {
- X if (('a' <= c1) && (c1 <= 'z')) c1 = c1 - 'a' + 'A';
- X if (('a' <= c2) && (c2 <= 'z')) c2 = c2 - 'a' + 'A';
- X if (c1 < c2)
- X return (-1);
- X else if (c2 < c1)
- X return (1);
- X c1 = *(s1++); c2 = *(s2++);
- X }
- X if ((c1 == 0) && (c2 == 0))
- X return (0);
- X else if (c1 == 0)
- X return (-1);
- X else
- X return (1);
- X
- X}
- X
- Xint strncasecmp (s1, s2, count)
- X char *s1, *s2; int count;
- X{
- X int i, c1, c2;
- X
- X for (i = 0; i < count; i++) {
- X c1 = *(s1++); c2 = *(s2++);
- X if ((c1 == 0) && (c2 == 0))
- X return (0);
- X else if (c1 == 0)
- X return (-1);
- X else if (c2 == 0)
- X return (1);
- X if (('a' <= c1) && (c1 <= 'z')) c1 = c1 - 'a' + 'A';
- X if (('a' <= c2) && (c2 <= 'z')) c2 = c2 - 'a' + 'A';
- X if (c1 < c2)
- X return (-1);
- X else if (c2 < c1)
- X return (1);
- X }
- X return (0);
- X}
- X#endif
- END_OF_FILE
- if test 2554 -ne `wc -c <'nonstd.c'`; then
- echo shar: \"'nonstd.c'\" unpacked with wrong size!
- fi
- # end of 'nonstd.c'
- fi
- if test -f 'okshuffle.man' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'okshuffle.man'\"
- else
- echo shar: Extracting \"'okshuffle.man'\" \(2509 characters\)
- sed "s/^X//" >'okshuffle.man' <<'END_OF_FILE'
- X.\"
- X.\" Adapted from README.Playing -- how to operate the okbridge program
- X.\" Matthew Clegg. September 1990. Updated May 1991, May 1992.
- X.\"
- X.TH "OKSHUFFLE" 6 "4 Aug 1992"
- X.SH NAME
- Xokshuffle \- create unplayed shuffled boards for okbridge
- X.br
- Xoktally \- merge played boards for okbridge
- X.SH SYNPOSIS
- X.in +10n
- X.ti -10n
- Xokshuffle
- X.I nboards
- X[\fB\-dimr\fP]
- X[\fB\-n\fP \fIname\fP]
- X.in -10n
- X.in +8n
- X.ti -8n
- Xoktally
- X[\fB\-c\fP]
- X[\fB\-i\fP]
- X[\fB\-l\fP]
- X[\fB\-m\fP]
- X[\fB\-p\fP \fIplayername\fP]
- X[\fB\-sn\fP]
- X[\fB\-t[b]\fP]
- X[\fB\-z\fP] files
- X.in -8n
- X.SH DESCRIPTION
- X.I Okshuffle
- Xcreates a set of unplayed shuffled boards for use with
- X.IR okbridge (6).
- XThe
- X.I nboards
- Xparameter is the number of boards to shuffle. If this is omitted,
- Xthen 4 is assumed. Output is to stdout.
- X.PP
- X.I Oktally
- Xmerges a number of boards that have already been played.
- XIt reads each of the given files; if one of the file names is
- X"-", then standard input is read instead. It then merges the boards
- Xfrom these files and totals the match points for each pair. It writes
- Xthe merged set of boards to standard output. By default, the output
- Xformat displays only the results of play for each board.
- X.SH "OKSHUFFLE OPTIONS"
- X.IP "\fB-dimr\fP"
- XSpecifies a scoring mode respectively of duplicate, IMP, match point
- Xor rubber scoring.
- X.IP "\fB-n\fP \fIname\fP"
- XSpecifies a brief (10 character) name which will be used for identifying
- Xthe set of boards.
- X.SH "OKTALLY OPTIONS"
- X.IP "\fB-c\fP
- XIf given, writes an encoded email duplicate file as output.
- X.IP "\fB-i\fP
- XSorts the output play records by IMPs. The default is to sort by match
- Xpoints.
- X.IP "\fB-l\fP
- XWrites each board in a long format which is similar to that found in
- Xbridge literature.
- X.IP "\fB-m\fP
- XDoes a selective merge. Boards appearing in the second and succeeding
- Xfiles which do not appear in the first file are ignored.
- X.IP "\fB\-p\fP \fIplayername\fP"
- XOnly considers boards which have been played by \fIplayername\fP.
- X.IP "\fB-s\fP\fIn\fP"
- XIf given, then \fIn\fP is read as a positive integer which specifies
- Xthe number of boards to skip in the input files.
- X.IP "\fB\-t[b]\fP"
- XOutput the total scores by player, sorted in decreasing order.
- XIf the \fBb\fP option is given, then both match point and IMP scores
- Xare printed.
- X.IP "\fB-z\fP"
- XWrites each board out in a compact format which was first introduced by
- XShangyou Zhang.
- X
- X.SH "SEE ALSO"
- Xokbridge(6)
- X.SH AUTHOR
- X.PP
- XMatthew Clegg, mclegg@cs.ucsd.edu.
- X.PP
- XMan pages adapted by George Ferguson,
- X.br
- Xferguson@cs.rochester.edu.
- END_OF_FILE
- if test 2509 -ne `wc -c <'okshuffle.man'`; then
- echo shar: \"'okshuffle.man'\" unpacked with wrong size!
- fi
- # end of 'okshuffle.man'
- fi
- echo shar: End of archive 14 \(of 14\).
- cp /dev/null ark14isdone
- MISSING=""
- for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have unpacked all 14 archives.
- rm -f ark[1-9]isdone ark[1-9][0-9]isdone
- else
- echo You still need to unpack the following archives:
- echo " " ${MISSING}
- fi
- ## End of shell archive.
- exit 0
-