home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume14 / okbrdge2 / part01 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  55.8 KB

  1. Path: uunet!zephyr.ens.tek.com!master!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v14i079:  okbridge2 - computer-mediated bridge game, Part01/14
  5. Message-ID: <3518@master.CNA.TEK.COM>
  6. Date: 7 Sep 92 21:40:06 GMT
  7. Sender: news@master.CNA.TEK.COM
  8. Lines: 1555
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: mclegg@cs.UCSD.EDU (Matthew Clegg)
  12. Posting-number: Volume 14, Issue 79
  13. Archive-name: okbridge2/Part01
  14. Supersedes: okbridge: Volume 13, Issue 16-22
  15. Environment: BSD-derived Unix, NeXT, curses, sockets
  16.  
  17. [From the author:
  18. The okbridge program is an interactive computer-mediated bridge game.
  19. It allows four players at (not necessarily) different locations on the
  20. internet to participate in a game of rubber or Chicago (duplicate)
  21. bridge.  The program handles the dealing, scoring and communication of
  22. bids and plays.  It is screen oriented, although the screen display is
  23. rather simplistic.]
  24.  
  25. #! /bin/sh
  26. # This is a shell archive.  Remove anything before this line, then unpack
  27. # it by saving it into a file and typing "sh file".  To overwrite existing
  28. # files, type "sh file -c".  You can also feed this as standard input via
  29. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  30. # will see the following message at the end:
  31. #        "End of archive 1 (of 14)."
  32. # Contents:  README.Install README.Playing oktally.man
  33. # Wrapped by billr@saab on Mon Sep  7 14:33:35 1992
  34. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  35. if test -f 'README.Install' -a "${1}" != "-c" ; then 
  36.   echo shar: Will not clobber existing file \"'README.Install'\"
  37. else
  38. echo shar: Extracting \"'README.Install'\" \(1008 characters\)
  39. sed "s/^X//" >'README.Install' <<'END_OF_FILE'
  40. X
  41. Xsetup -- how to compile the okbridge program
  42. XMatthew Clegg.  August 1990.
  43. X
  44. X
  45. XMaking the okbridge program
  46. X------ --- -------- -------
  47. X
  48. XThe okbridge program is distributed in a compressed tar file called
  49. Xokbridge.tar.Z.  The following two commands can be used to uncompress
  50. Xand untar the okbridge program:
  51. X
  52. X     uncompress okbridge.tar.Z
  53. X     tar -xf okbridge.tar
  54. X
  55. XBefore compiling the program, you may want to edit the file Makefile.
  56. XYou will have to decide where you would like the okbridge executable
  57. Xto reside and you will also have to decide where you would like the
  58. Xokbridge help file to reside.  The location of the executable is
  59. Xspecified with the variable OKBRIDGE_DIR.  The location where the
  60. Xhelp file will be stored is specified with the variable OKBRIDGE_HELPFILE.
  61. X
  62. XTo compile okbridge, you would then simply type 'make'.  To then
  63. Xinstall the program, you should type 'make install'.  If you do not
  64. Xplan to install the program in a public directory, then there is no
  65. Xneed to type 'make install'.
  66. X
  67. END_OF_FILE
  68. if test 1008 -ne `wc -c <'README.Install'`; then
  69.     echo shar: \"'README.Install'\" unpacked with wrong size!
  70. fi
  71. # end of 'README.Install'
  72. fi
  73. if test -f 'README.Playing' -a "${1}" != "-c" ; then 
  74.   echo shar: Will not clobber existing file \"'README.Playing'\"
  75. else
  76. echo shar: Extracting \"'README.Playing'\" \(51515 characters\)
  77. sed "s/^X//" >'README.Playing' <<'END_OF_FILE'
  78. X
  79. X
  80. X
  81. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  82. X
  83. X
  84. X
  85. XNAME
  86. X     okbridge - multi-player networked bridge game
  87. X
  88. XSYNPOSIS
  89. X     okbridge position name server [-dimR] [-p portno] [-G]
  90. X              [-r replay-file] [-b boards-file] [-L logfile]
  91. X              [-pn, -pe, -ps, -pw] [-n player-name] [-s server-
  92. X              name]
  93. X
  94. XOPTIONS
  95. X     position
  96. X          A position-dependent parameter which specifies the seat
  97. X          (north,  south,  east  or  west) which the local player
  98. X          wishes to occupy.  The position should be specified  as
  99. X          the  first  letter  of the name of the seat (n, s, e or
  100. X          w).
  101. X
  102. X     name A position-dependent parameter which specifies the name
  103. X          by  which  the local player would like to be identified
  104. X          to other bridge players.  This name may be up to  eight
  105. X          characters long.  If it is omitted, then the login name
  106. X          is used.
  107. X
  108. X     server
  109. X          A  position-dependent  parameter  which  specifies  the
  110. X          Internet  name  or number where the server will be run-
  111. X          ning.  If the local player wishes  to  be  the  server,
  112. X          then the word "me" may be used as the server name.
  113. X
  114. X     -d, -i, -m, -R
  115. X          Indicate  that  the  playing  and  scoring  conventions
  116. X          respectively  for Duplicate, IMP, Match point or Rubber
  117. X          bridge  should  be  used.  These  parameters  are  only
  118. X          relevant  for  the  player who is the server.  In other
  119. X          words, the server makes the decision for everyone about
  120. X          the  scoring  convention  that  will  be used.  If this
  121. X          parameter is omitted, then the playing and scoring con-
  122. X          ventions  will  default to those of rubber bridge.  The
  123. X          -R parameter is suppplied for the  sake  of  overriding
  124. X          any default which may appear in the .okbridgerc file.
  125. X
  126. X     -p portno
  127. X          Specifies the port number which will be used for estab-
  128. X          lishing the network connections.  It is only in unusual
  129. X          circumstances that this parameter need be specified.
  130. X
  131. X     -G   Specifies that the Global Player Service  (GPS)  should
  132. X          not  be  contacted.  See below for a description of the
  133. X          Global Player Service.
  134. X
  135. X     -b boards-file
  136. X          Specifies that the file boards-file contains a sequence
  137. X
  138. X
  139. X
  140. XSun Release 4.1      Last change: 4 Aug 1992                    1
  141. X
  142. X
  143. X
  144. X
  145. X
  146. X
  147. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  148. X
  149. X
  150. X
  151. X          of  duplicate  deals  which  should be played.  This is
  152. X          equivalent to the LOAD command in the .okbridgerc file.
  153. X          See the description of email duplicate bridge below.
  154. X
  155. X     -L logfile
  156. X          Specifies the name of the file to which the results  of
  157. X          play  will  be  written.  This is equivalent to the LOG
  158. X          command in the .okbridgerc file.
  159. X
  160. X     -z# [zhang-logfile]
  161. X          Specifes an alternate log file which will  be  recorded
  162. X          in the format developed by Shangyou Zhang.  The charac-
  163. X          ter '#' should be replaced by a table number.   If  the
  164. X          name  of the file is omitted, then the name "okb_#_rec"
  165. X          will be used.
  166. X
  167. X     -pn, -pe, -ps, -pw
  168. X          A position-independent  parameter  for  specifying  the
  169. X          player's position.
  170. X
  171. X     -n player-name
  172. X          A position-independent  parameter  for  specifying  the
  173. X          player's name.
  174. X
  175. X     -s server-name
  176. X          A position-independent  parameter  for  specifying  the
  177. X          location of the server.  If the server-name is given as
  178. X          "me", then the local player will be the server.
  179. X
  180. XPLAYING
  181. XThe Okbridge Milieu
  182. X     Okbridge allows people to play  bridge  together  using  the
  183. X     Internet.   It  is  a  distributed program, which means that
  184. X     each player runs a separate instance  of  the  program,  and
  185. X     these  instances  communicate  with  each  other through the
  186. X     Internet to cooperatively provide the illusion of  a  bridge
  187. X     game.
  188. X
  189. X     At any  given  moment,  there  may  be  many  bridge  tables
  190. X     currently  open, with players at these tables playing bridge
  191. X     together.  Each table allows  four  people  to  play  bridge
  192. X     together.   There  may be a number of additional people at a
  193. X     table who are observing the play.  Each table  has  a  host,
  194. X     who  is  called the server.  While the server is hosting the
  195. X     table, the table is said to be  open.   The  server  can  be
  196. X     either  observing  or playing.  A player who is not a server
  197. X     is said to be a client.
  198. X
  199. X     A list of currently open bridge tables is  maintained  in  a
  200. X     worldwide  database  called the Global Player Service (GPS).
  201. X     When a new player starts the okbridge program,  the  GPS  is
  202. X     contacted  and  the  list of currently open bridge tables is
  203. X
  204. X
  205. X
  206. XSun Release 4.1      Last change: 4 Aug 1992                    2
  207. X
  208. X
  209. X
  210. X
  211. X
  212. X
  213. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  214. X
  215. X
  216. X
  217. X     displayed.  The player then has a choice of  either  joining
  218. X     one of the currently open tables or hosting a new table.
  219. X
  220. X     When four players have joined  a  table,  they  must  choose
  221. X     seats  before  they  can  begin play.  The seats are labeled
  222. X     north, south, east and west, and a player chooses a seat  by
  223. X     using  one  of  the commands: /NORTH, /SOUTH, /EAST or /WEST
  224. X     (see the list of commands  below).   Also,  the  server  may
  225. X     choose  one  of several scoring modes (see below).  Play can
  226. X     begin once the seats are all occupied.
  227. X
  228. X     In addition to playing bridge together,  the  players  at  a
  229. X     table may talk with each other and find out a limited amount
  230. X     of information about each other (see  the  /WHO  and  /WHOIS
  231. X     commands below).  There are a number of options for control-
  232. X     ling the format of the display  and  input,  see  e.g.,  the
  233. X     /BELL,  /DEFAULT,  /FORMAL,  /PROMPT,  and  /SPEC  commands.
  234. X     Okbridge provides for very elementary convention cards  (see
  235. X     the  /CC  and  /CCDEF  commands below), and it provides some
  236. X     support for duplicate play (also discussed below).
  237. X
  238. X
  239. XInvoking the okbridge Program
  240. X     Usually, it is sufficient to start okbridge simply by typing
  241. X     one of the following two commands:
  242. X
  243. X     okbridge
  244. X
  245. X     okbridge -n your-name
  246. X
  247. X     This will contact the Global Player Service for  a  list  of
  248. X     the  currently playing tables.  The /JOIN (or /CONNECT) com-
  249. X     mand can the be used to join an open table,  or  the  /SERVE
  250. X     command can be used to begin serving a new table.
  251. X
  252. X     However, if a game has been arranged in advance, then it  is
  253. X     possible  to  specify  explicitly the name of the server and
  254. X     the seat arrangement.  Suppose that the names of the players
  255. X     are  Alex,  Bob,  Cathy and Dot.  Alex and Cathy will be one
  256. X     team, while Bob and Dot will be the other.  They decide that
  257. X     Alex  will  be  north,  and Bob will be east.  Further, they
  258. X     decide that Bob will be the server.  Here is a list  of  the
  259. X     commands  that each might use to invoke the okbridge program
  260. X     on their respective (hypothetical) machines:
  261. X
  262. X      Name    Position  Machine         Command to invoke okbridge
  263. X      ----    --------  -------         --------------------------
  264. X      Alex    north     a.alaska.edu    okbridge n Alex b.berkeley.edu
  265. X      Bob     east      b.berkeley.edu  okbridge e Bob me
  266. X      Cathy   south     c.florida.edu   okbridge s Cathy b.berkeley.edu
  267. X      Dot     west      d.maine.edu     okbridge w Dot b.berkeley.edu
  268. X
  269. X
  270. X
  271. X
  272. XSun Release 4.1      Last change: 4 Aug 1992                    3
  273. X
  274. X
  275. X
  276. X
  277. X
  278. X
  279. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  280. X
  281. X
  282. X
  283. X     The server (in this case, Bob) should initiate his  copy  of
  284. X     the  program  first.   When  a client starts her copy of the
  285. X     program, an initial display will be presented and  the  pro-
  286. X     gram  will  attempt to establish a connection to the server.
  287. X     During this time, the keyboard will be unresponsive.  If the
  288. X     client  is  unable  to establish the connection within 15-30
  289. X     seconds, then it will give up and display an error  message.
  290. X     After  the connection is established, the program will enter
  291. X     a talk mode where messages can be exchanged with  the  other
  292. X     players.
  293. X
  294. X     When the server deals the first hand, each  player's  screen
  295. X     will  be  redrawn,  showing  his  or her cards.  The program
  296. X     prompts each player for bids and broadcasts the bids to  the
  297. X     other  players.  After the bidding is complete, playing mode
  298. X     is entered.  The screen is redrawn in preparation for  play.
  299. X     Again,  the program prompts each player for plays and broad-
  300. X     casts the plays to the others.  After the  playing  is  com-
  301. X     plete,  a  review  of  the  hand  is presented to all of the
  302. X     players and the scores are updated.  During this  time,  the
  303. X     players  may freely discuss the hand.  Pressing RETURN twice
  304. X     in succession proceeds to the next hand.  The  program  con-
  305. X     tinues  in  this cycle indefinitely until a player leaves or
  306. X     until the server gives instructions which alter the behavior
  307. X     of the program.
  308. X
  309. X     Other clients may join the table at any time.  A client  who
  310. X     joins  while  a  hand is in progress will be able to observe
  311. X     the play and so the client is said to be an  observer.   The
  312. X     observer  may  choose  to  see  the  cards of the players by
  313. X     becoming a spectator (see the /SPEC command below).  Specta-
  314. X     tors are not allowed to talk to the players, though.  If one
  315. X     of the players vacates his or her position, then an observer
  316. X     may take the position.
  317. X
  318. X
  319. XThe Display and Entering Input
  320. X     Here we give an example of the screen  display  during  bid-
  321. X     ding.  The numbers in the left column do not actually appear
  322. X     on the screen -- they are given for reference purposes only.
  323. X
  324. X        =======================================================================
  325. X      1 OKBRIDGE 1.6A WEST                                         THEY      WE
  326. X      2 HAND 1    (0:42)                                          -----   -----
  327. X      3 (S) Cathy's BID                                   TRICKS      0       0
  328. X      4                                                   VUL        NO      NO
  329. X      5      Alex     Bob      Cathy    Dot    |Cathy     ABOVE       0       0
  330. X      6      ----     ---      -----    ---    |-----     BELOW       0       0
  331. X      7   1  1S       --                       |S A652
  332. X      8                                        |H K754
  333. X      9                                        |D JT8
  334. X     10                                        |C J3
  335. X
  336. X
  337. X
  338. XSun Release 4.1      Last change: 4 Aug 1992                    4
  339. X
  340. X
  341. X
  342. X
  343. X
  344. X
  345. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  346. X
  347. X
  348. X
  349. X     11
  350. X     12
  351. X     13
  352. X     14
  353. X     15
  354. X     16 BID    2s
  355. X     17 TALK
  356. X     18
  357. X     19 -----------------------------------------------------------------------
  358. X     20 |MODERATOR: TYPE /HELP FOR INSTRUCTIONS ABOUT THIS PROGRAM            |
  359. X     21 |NETWORK- YOU ARE NOW SITTING AS WEST.                                |
  360. X     22 |NETWORK- Alex HAS JOINED THE GAME AS NORTH                           |
  361. X     23 |NETWORK- Cathy HAS JOINED THE GAME AS SOUTH                          |
  362. X     24 |NETWORK- Bob HAS JOINED THE GAME AS EAST                             |
  363. X        =======================================================================
  364. X
  365. X     In the upper right corner of the  screen  (lines  1-6),  the
  366. X     scores  are  displayed.   The number of tricks taken by each
  367. X     side is displayed on line 3.  The points above and below the
  368. X     line  for  each side are displayed on lines 5 and 6, respec-
  369. X     tively.  And an indication of which sides are vulnerable  is
  370. X     displayed  on  line  4.   It has been pointed out to me that
  371. X     during ordinary bridge play, the scores are  only  available
  372. X     to  the players between hands and not during the bidding and
  373. X     playing.  I apologize  that  the  okbridge  program  is  not
  374. X     faithful to the real game in this respect.
  375. X
  376. X     At the beginning of line 2, we can  see  that  this  is  the
  377. X     first  hand  being  played  at  that  so far 42 seconds have
  378. X     elapsed in the play of the hand.  On line 3, we can see that
  379. X     it is now Cathy's turn to bid.  On lines 5-9, we can see the
  380. X     bids that have been made up  to  this  point.   The  display
  381. X     shows  that  Alex  has  bid  1  spade, while Bob has passed.
  382. X     Cathy's cards are displayed to the right of  this  table  of
  383. X     bids.
  384. X
  385. X     Line 16 is the place where the local player's input  to  the
  386. X     program  is  entered.  The word `BID' at the lefthand margin
  387. X     is printed by the program and indicates that the program  is
  388. X     expecting  Cathy  to type her bid.  The characters `2s' were
  389. X     entered by Cathy, and they indicate that she intends to  bid
  390. X     2  Spades.   At  the time this screen was copied, the cursor
  391. X     was located just to the right of the letter `s' in `2s'.  If
  392. X     Cathy now presses the return key, then the bid 2 Spades will
  393. X     be transmitted to the other players.
  394. X
  395. X     Line 17 is the line where the local player may type messages
  396. X     which  will  be  transmitted to the other players.  When the
  397. X     cursor is on line 17, any input that the user types will  be
  398. X     transmitted  to  the  other players as a conversational mes-
  399. X     sage.  The user may switch between playing  and  talking  by
  400. X     pressing the tab key.
  401. X
  402. X
  403. X
  404. XSun Release 4.1      Last change: 4 Aug 1992                    5
  405. X
  406. X
  407. X
  408. X
  409. X
  410. X
  411. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  412. X
  413. X
  414. X
  415. X     Lines 20 through 24 display messages from  the  program  and
  416. X     from  other  players.   Each message is of the form `source:
  417. X     text', where `source' is either MODERATOR or the name of one
  418. X     of  the  players.  Messages from the MODERATOR give informa-
  419. X     tion about the internal state of the program.
  420. X
  421. X     When entering input, the  backspace  and  delete  keys  will
  422. X     erase  the  last character typed.  The escape key erases the
  423. X     entire input line.  And pressing control-R causes the entire
  424. X     screen  to  be redrawn from scratch.  Always press return to
  425. X     have your input transmitted to the other players.
  426. X
  427. X     There is a `default' input option embedded in the input pro-
  428. X     cessor.   When  the  input  line  is  empty, pressing return
  429. X     results in the display of a `default' input.  When  in  bid-
  430. X     ding  mode,  the  default  input  is always `pass'.  When in
  431. X     playing mode, the default input is the  lowest  ranked  card
  432. X     which  follows  suit.   If  there are two or more suits from
  433. X     which a card may be played, then no default is  made  avail-
  434. X     able.   Pressing  return  a  second  time  (i.e.,  after the
  435. X     default input has been displayed) causes the  default  input
  436. X     to  be transmitted to the other players.  Sometimes in play-
  437. X     ing mode there is only one legal input.  In this case,  this
  438. X     input  is  displayed  automatically  --  you need only press
  439. X     return to transmit it to the other players.
  440. X
  441. X     In addition, there are a number of control keys  which  have
  442. X     been programmed to provide abbreviations for commands:
  443. X
  444. X      ^A   Alerts partner's last bid.
  445. X      ^B   When used during the play of a hand, the bidding is displayed
  446. X           for review.
  447. X      ^C   Quits the program.  (Confirmation is first requested.)
  448. X      ^D   Toggles the default input mode.  See the /DEFAULT command.
  449. X      ^G   Toggles the bell.  See the /BELL command.
  450. X      ^P   Toggles the prompt.  See the /PROMPT command.
  451. X      ^R   Refreshes the screen.
  452. X      ^T   Switches between talking and playing.
  453. X      ^U   Erases the current input.
  454. X      ^W   Sends a wakeup signal to your partner.
  455. X      ^X   Exits the program immediately (only if compiled in debug mode).
  456. X
  457. X      TAB  Switches between talking and playing (same as ^T).
  458. X
  459. X
  460. XBidding
  461. X     A contract bid is specified by  giving  the  level  and  the
  462. X     trump  suit.   The level is given as an integer in the range
  463. X     1-7, while the trump suits are of  course  clubs,  diamonds,
  464. X     hearts,  spades and no trump. However, the name of the trump
  465. X     suit is abbreviated to its initial letter.  Thus,  here  are
  466. X     some examples of legal contract bids:
  467. X
  468. X
  469. X
  470. XSun Release 4.1      Last change: 4 Aug 1992                    6
  471. X
  472. X
  473. X
  474. X
  475. X
  476. X
  477. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  478. X
  479. X
  480. X
  481. X     1c, 1d, 1h, 1s, 1n, 2c, 2d, 2h, 2s, 2n, 3c, 3d, 3h, 3s, 3n, ...
  482. X
  483. X     A passing bid is given by entering `pass' or just `p'.
  484. X
  485. X     A doubling bid is given by entering `double' or `X'.
  486. X
  487. X     A redoubling bid is given by entering `redouble' or `XX'.
  488. X
  489. X     A bidder may alert his or her bid by typing  an  exclamation
  490. X     point after the bid (e.g., 1c!).  This alert is broadcast to
  491. X     the opponents but not to the partner of the alerting bidder.
  492. X     Alternatively,  the  partner of the bidder may alert the bid
  493. X     by using the /ALERT command or the control-A key.   See  the
  494. X     /ALERT command below.
  495. X
  496. X
  497. XPlaying
  498. X     The name of a card is specified by giving its suit and  then
  499. X     its  rank.   The  honor cards `ten', `jack', `queen', `king'
  500. X     and `ace' are abbreviated respectively to T, J, Q, K and  A.
  501. X     Thus, the cards in the deck are enumerated as
  502. X
  503. X         C2, C3, C4, C5, C6, C7, C8, C9, CT, CJ, CQ, CK, CA
  504. X         D2, D3, D4, D5, D6, D7, D8, D9, DT, DJ, DQ, DK, DA
  505. X         H2, H3, H4, H5, H6, H7, H8, H9, HT, HJ, HQ, HK, HA
  506. X         S2, S3, S4, S5, S6, S7, S8, S9, ST, SJ, SQ, SK, SA
  507. X
  508. X     It is allowable to write the rank first and then  the  suit,
  509. X     e.g., TC instead of CT.
  510. X
  511. X
  512. XCommands
  513. X     There are a number of special commands that are available in
  514. X     the okbridge program.  These special commands are invoked by
  515. X     entering at the beginning of a line a slash `/', the name of
  516. X     the  command,  and perhaps some parameters.  Here is a brief
  517. X     list of the available commands:
  518. X
  519. X
  520. X     /ALERT
  521. X          Alerts your partner's last bid.  If you are playing  in
  522. X          FORMAL  mode,  the alert is displayed to your opponents
  523. X          only.  Otherwise, the alert will be displayed to every-
  524. X          one.  Same as ^A.
  525. X
  526. X
  527. X     /AUTOPASS [ON|OFF]
  528. X          During Practice mode, this command controls whether  or
  529. X          not PASS bids are automatically supplied by the modera-
  530. X          tor for absent players.  See the description  of  Prac-
  531. X          tice mode below.
  532. X
  533. X
  534. X
  535. X
  536. XSun Release 4.1      Last change: 4 Aug 1992                    7
  537. X
  538. X
  539. X
  540. X
  541. X
  542. X
  543. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  544. X
  545. X
  546. X
  547. X     /BELL [ON|OFF]
  548. X          By default, the okbridge program rings  the  terminal's
  549. X          bell  whenever  it  requests  input from you.  However,
  550. X          this can be disabled by typing /BELL OFF.  The state of
  551. X          the bell can be toggled with ^G.
  552. X
  553. X
  554. X     /CC [NS|EW|MY|BOTH]
  555. X          Displays the convention card of the specified  team(s).
  556. X          By   default,  displays  the  convention  card  of  the
  557. X          opponents.
  558. X
  559. X
  560. X     /CCDEF [<Convention Card Name>] [<Convention-Card>]
  561. X          Stores or displays  a  named  convention  card  in  the
  562. X          internal  database.   If  both  parameters are omitted,
  563. X          then displays all of the named  convention  cards.   If
  564. X          only the name of the convention card is specified, then
  565. X          displays that convention card.  Otherwise, enters a new
  566. X          definition for a named convention card.
  567. X
  568. X
  569. X     /CLAIM [n]
  570. X          This  command  claims  n  additional  tricks  for   the
  571. X          declarer.   If  n is omitted, then all remaining tricks
  572. X          are claimed.  If n  is  negative,  then  this  many  -n
  573. X          tricks  are  conceded.   All  hands are revealed to the
  574. X          defenders, and they are asked whether or not they agree
  575. X          to  the  declarer's  request.   If both agree, then the
  576. X          hand is ended early.  This command can be used only  by
  577. X          the declarer.
  578. X
  579. X
  580. X     /CLS Clears all of the messages from the talk  area  of  the
  581. X          display.
  582. X
  583. X
  584. X     /DEFAULT [ON | OFF]
  585. X          This command controls whether or not defaults  will  be
  586. X          provided  for bids, plays and questions.  This mode can
  587. X          be toggled with ^D.
  588. X
  589. X
  590. X     /EMAIL <your-email-address>
  591. X          Specifies your email address.  Other players will  then
  592. X          be  able  to  find  out your email address by using the
  593. X          /WHOIS command.
  594. X
  595. X
  596. X     /FULLNAME <your-full-name>
  597. X          Specifies your full name.  Other players will  then  be
  598. X          able to find out your name by using the /WHOIS command.
  599. X
  600. X
  601. X
  602. XSun Release 4.1      Last change: 4 Aug 1992                    8
  603. X
  604. X
  605. X
  606. X
  607. X
  608. X
  609. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  610. X
  611. X
  612. X
  613. X          This name is also displayed by the GPS.
  614. X
  615. X
  616. X     /HELP [topic]
  617. X          Provides help about how to use  Okbridge.   Type  /HELP
  618. X          alone to obtain general help.
  619. X
  620. X
  621. X     /LHB <message>
  622. X          Sends a message to the person who appears to  the  left
  623. X          of  you  in the bidding display.  Same as the /RHO com-
  624. X          mand.
  625. X
  626. X
  627. X     /LHO <message>
  628. X          Sends a message to the person  who  will  play  or  bid
  629. X          immediately after you.  Same as the /RHB command.
  630. X
  631. X
  632. X     /LOG [filename]
  633. X          Typing /LOG filename causes this  hand  and  subsequent
  634. X          hands  to  be  written  to the file with name filename.
  635. X          Omitting filename causes the current  log  file  to  be
  636. X          closed.   Adding  a  plus  sign '+' to the beginning of
  637. X          filename causes the playing record to  be  appended  to
  638. X          the end of the file.
  639. X
  640. X
  641. X     /NAME <new-name>
  642. X          Changes your name to <new-name>.
  643. X
  644. X
  645. X     /OPP <message>
  646. X          Sends  a  message  which  will  be  seen  only  by  the
  647. X          opponents.
  648. X
  649. X
  650. X     /PAUSE
  651. X          During bidding or play, this restores the entire screen
  652. X          to  a talk display.  This is useful for seeing messages
  653. X          which have scrolled out of the small conversation  area
  654. X          which appears during bidding and play.
  655. X
  656. X
  657. X     /PING
  658. X          Sends  an  invisible  message  to  each  of  the  other
  659. X          players,  which  is  automatically echoed.  Reports the
  660. X          round-trip communication time.
  661. X
  662. X
  663. X     /PRACTICE [ON|OFF]
  664. X          Turns on or off the Practice mode of play.   This  mode
  665. X
  666. X
  667. X
  668. XSun Release 4.1      Last change: 4 Aug 1992                    9
  669. X
  670. X
  671. X
  672. X
  673. X
  674. X
  675. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  676. X
  677. X
  678. X
  679. X          allows  a partnership to practice bidding and the plan-
  680. X          ning of play.  See the  description  of  Practice  mode
  681. X          below.
  682. X
  683. X
  684. X     /PROMPT [ON|OFF]
  685. X          By default, the dummy is asked to  press  RETURN  after
  686. X          the  end  of  each trick.  This allows the dummy to see
  687. X          each trick as it is played.  This prompting can be dis-
  688. X          abled  by  typing  /PROMPT OFF.  The prompt mode can be
  689. X          toggled with ^P.
  690. X
  691. X
  692. X     /QUIT
  693. X          Terminates the program.
  694. X
  695. X
  696. X     /REVEAL [<player-name> | NORTH | EAST | SOUTH | WEST
  697. X          | NE | NS | NW | SE | SW | EW]
  698. X
  699. X          This command can only be used by  an  observer  or  the
  700. X          dummy.   In this case, the player enters spectator mode
  701. X          and the named hands are revealed.  In  spectator  mode,
  702. X          the  observer  can  have complete information about the
  703. X          game.  Spectators may talk to each other, but they  may
  704. X          not  talk  to the players or to other observers who are
  705. X          not spectators.  Spectator mode  is  not  available  in
  706. X          formal  play.   If  the  name of the player is omitted,
  707. X          then all hands are revealed.  (This command is actually
  708. X          the same as the /SPEC command.)
  709. X
  710. X
  711. X     /REVIEW
  712. X          Displays the bidding for review.  This is  intended  to
  713. X          be  used  during the playing mode.  This command can be
  714. X          abbreviated with ^B.
  715. X
  716. X
  717. X     /RHB <message>
  718. X          Sends a message to the person who appears to the  right
  719. X          of  you  in the bidding display.  Same as the /LHO com-
  720. X          mand.
  721. X
  722. X
  723. X     /RHO <message>
  724. X          Sends a message to the person who bids or plays immedi-
  725. X          ately before you.  Same as the /LHB command.
  726. X
  727. X
  728. X     /SEAT NORTH|EAST|SOUTH|WEST|OBS
  729. X
  730. X     /EAST, /NORTH, /OBS, /OBSERVER, /SOUTH, /WEST
  731. X
  732. X
  733. X
  734. XSun Release 4.1      Last change: 4 Aug 1992                   10
  735. X
  736. X
  737. X
  738. X
  739. X
  740. X
  741. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  742. X
  743. X
  744. X
  745. X          Selects a seat.  Can only be used before the first hand
  746. X          or between hands.  Only one person may sit in the seats
  747. X          north,  east,  south,  west,  but  there  may  be  many
  748. X          observers.
  749. X
  750. X
  751. X     /SETCC [<your-convention-card>]
  752. X          Enters one line of text as your convention card.   This
  753. X          card  will  then  be  announced to your partner and the
  754. X          opponents as the convention card for your team.   Omit-
  755. X          ting  convention card from this command will cause your
  756. X          current convention card to be announced to your partner
  757. X          and opponents.  If the convention card is just a single
  758. X          word, then the list of convention  cards  specified  in
  759. X          the .okbridgerc file with the CCDEF command is searched
  760. X          for a matching entry.  If a matching  entry  is  found,
  761. X          then the corresponding convention card is used.
  762. X
  763. X
  764. X     /SPEC [<player-name> | NORTH | EAST | SOUTH | WEST
  765. X          | NE | NS | NW | SE | SW | EW]
  766. X
  767. X          This command can only be used by  an  observer  or  the
  768. X          dummy.   In this case, the player enters spectator mode
  769. X          and the named hands are revealed.  In  spectator  mode,
  770. X          the  observer  can  have complete information about the
  771. X          game.  Spectators may talk to each other, but they  may
  772. X          not  talk  to the players or to other observers who are
  773. X          not spectators.  Spectator mode  is  not  available  in
  774. X          formal  play.   If  the  name of the player is omitted,
  775. X          then all hands are revealed.  (This command is actually
  776. X          the same as the /REVEAL command.)
  777. X
  778. X
  779. X     /WAKEUP [<player-name> | ALL]
  780. X          Sends a wakeup signal to the named player,  or  to  all
  781. X          players  if  ALL is specified.  The wakeup signal rings
  782. X          the terminal bell and prints the words "WAKE UP" in the
  783. X          conversation  area.  If the name of the player is omit-
  784. X          ted, then the signal is sent to your partner.  Pressing
  785. X          ^W is the same as typing /WAKEUP.
  786. X
  787. X
  788. X     /WHO Gives a short list  of  the  other  players  and  their
  789. X          respective seats.
  790. X
  791. X
  792. X     /WHOIS [<player-name>]
  793. X          Inquires about a specific player.  If  the  player  has
  794. X          listed  his/her  full  name  and  email  address in the
  795. X          .okbridgerc file, then this information is  given.   If
  796. X          <player-name>  is  omitted, then inquires about both of
  797. X
  798. X
  799. X
  800. XSun Release 4.1      Last change: 4 Aug 1992                   11
  801. X
  802. X
  803. X
  804. X
  805. X
  806. X
  807. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  808. X
  809. X
  810. X
  811. X          the opponents.
  812. X
  813. X
  814. X     /ZLOG [filename]
  815. X          This command is similar to the /LOG command in that  it
  816. X          also  opens  a log file, but the format of the log file
  817. X          is more compact.
  818. X
  819. X
  820. X
  821. XServer Commands
  822. X     In addition, there are a number of  commands  which  can  be
  823. X     used only by the server.
  824. X
  825. X
  826. X     /ASSIGN <player-name> NORTH|EAST|SOUTH|WEST|OBS
  827. X          Assigns a player to a given seat.   Can  only  be  used
  828. X          before the first hand has been dealt or between hands.
  829. X
  830. X
  831. X     /DISCONNECT <player-name>
  832. X          Closes the connection to  the  named  player.  <player-
  833. X          name>  can  either be the name of a player (e.g., Worf)
  834. X          or the name of a position (e.g., SOUTH).
  835. X
  836. X
  837. X     /FORMAL [OFF|ON]
  838. X          Specifies whether formal playing rules will be used  or
  839. X          queries which playing rules are currently use.  In for-
  840. X          mal play, talk  messages  are  displayed  only  to  the
  841. X          opponents,  alerts  are not displayed to the partner of
  842. X          the alerter, and the dummy is not  revealed  to  anyone
  843. X          until the opening lead has been made.
  844. X
  845. X
  846. X     /RESET
  847. X          Resets the program to its initial state.
  848. X
  849. X
  850. X     /SCORE RUBBER|DUPLICATE|MP|IMP|CLEAR
  851. X          Selects a scoring mode.  If the selected  scoring  mode
  852. X          is  different from the current scoring mode, then skips
  853. X          the current hand.  Using '/SCORE CLEAR' will clear  the
  854. X          scoreboard.
  855. X
  856. X
  857. X     /SKIP [n]
  858. X          Ends the current hand immediately, without recording  a
  859. X          score for it.  If we are the server, then the parameter
  860. X          n specifies the number of hands to skip (including  the
  861. X          current  one).  This command is useful in case the con-
  862. X          nection to one of the players is lost.
  863. X
  864. X
  865. X
  866. XSun Release 4.1      Last change: 4 Aug 1992                   12
  867. X
  868. X
  869. X
  870. X
  871. X
  872. X
  873. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  874. X
  875. X
  876. X
  877. XThe Global Player Service
  878. X     The  Global  Player  Service  is  a  worldwide  database  of
  879. X     currently  playing bridge tables.  Using the GPS, it is pos-
  880. X     sible to quickly locate other people wishing to play bridge.
  881. X     The following commands are for accessing the GPS:
  882. X
  883. X
  884. X     /TABLES
  885. X          Lists the currently playing tables.
  886. X
  887. X
  888. X     /JOIN [<name>]
  889. X          Joins the table being served by <name>.  If  <name>  is
  890. X          omitted,  then  the first table in the list provided by
  891. X          the /TABLES command is joined.
  892. X
  893. X
  894. X     /SERVE [<port-number>]
  895. X          Begins serving a table.  The table will  be  advertised
  896. X          to  the  GPS  automatically,  so that other players may
  897. X          join.  If <port-number> is omitted, then 1729  will  be
  898. X          chosen by default.
  899. X
  900. X
  901. X     The Global Player Service also supports a form of  duplicate
  902. X     play.   It  maintains  a  database of boards which have been
  903. X     played by other foursomes.  These boards can  be  downloaded
  904. X     and  played  again, and match point scores will then be com-
  905. X     puted.  The following commands are relevant  to  GPS  dupli-
  906. X     cate:
  907. X
  908. X
  909. X     /DUP [MP|IMP|END]
  910. X          Used by the server to initiate (or end)  GPS  duplicate
  911. X          play.   The  MP  parameter  is  specified to play match
  912. X          point boards, while the IMP parameter is given to  play
  913. X          IMP boards.  The default is IMP play.  After each board
  914. X          is downloaded and played, you will be able to  see  the
  915. X          results of play by other foursomes.
  916. X
  917. X
  918. X     /RESULTS [<results-file>]
  919. X          Downloads all of the GPS duplicate  boards  which  have
  920. X          been  played  by the local player.  The results of play
  921. X          for each board are then displayed.   If  <results-file>
  922. X          is  specified,  then the results are saved to the given
  923. X          file in email duplicate format.  A more verbose  record
  924. X          of  the play can then be produced with the oktally com-
  925. X          mand.  WARNING:  If you play  often,  then  you  should
  926. X          specify   the   <results-file>  and  examine  it  using
  927. X          oktally.
  928. X
  929. X
  930. X
  931. X
  932. XSun Release 4.1      Last change: 4 Aug 1992                   13
  933. X
  934. X
  935. X
  936. X
  937. X
  938. X
  939. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  940. X
  941. X
  942. X
  943. X     /SCOREBOARD
  944. X          Displays the GPS duplicate  scoreboard.   The  top  ten
  945. X          players in match point play and in IMP play are listed.
  946. X
  947. X
  948. X     In addition, there are the following GPS-related commands:
  949. X
  950. X
  951. X     /PLAYERS [<name>]
  952. X          Lists the names of all of the players currently at  the
  953. X          table  served  by  <name>.   If <name> is omitted, then
  954. X          lists all of the players at all tables.
  955. X
  956. X
  957. X     /CONNECT <host_name> [<port_number>]
  958. X          Connects to the table being served at <host_name>  with
  959. X          port  <port_number>.  If <port_number> is omitted, then
  960. X          1729 is assumed.
  961. X
  962. X
  963. X     /PERISH
  964. X          Disconnects from the GPS.  If we are serving  a  table,
  965. X          this table is deleted from the GPS database.
  966. X
  967. X
  968. X     /PUBLISH
  969. X          Reconnects to the GPS.  If we are serving a table, this
  970. X          table is re-advertised to the GPS.
  971. X
  972. X
  973. XPartnership Practice Mode
  974. X     The Practice mode is based on a suggestion of Alan Truscott.
  975. X     In  this mode, two (or more) players may practice their bid-
  976. X     ding.  The  moderator  (OKbridge)  supplies  PASS  bids  for
  977. X     players  which  are absent.  After the hand has been bid, it
  978. X     is revealed to all of the players.   The  players  may  then
  979. X     discuss and play it.
  980. X
  981. X     To enter Practice mode, the server uses the command  '/PRAC-
  982. X     TICE  ON'.   This will deal a new hand and allow the players
  983. X     to bid it.  During the bidding, OKbridge will supply  "PASS"
  984. X     bids for absent players.  Thus, if North-South is practicing
  985. X     and East-West are absent, then a "PASS" will be supplied  by
  986. X     OKbridge  automatically  each time it is East or West's turn
  987. X     to bid.
  988. X
  989. X     This  is  usually  the  preferred  behavior.   However,  for
  990. X     three-player  practice,  it  may  be preferable to allow the
  991. X     third player to bid both hands for one side, say  East-West.
  992. X     In this case, the server should use the '/AUTOPASS OFF' com-
  993. X     mand.  This command will disable PASS bids from  being  sup-
  994. X     plied  by  the moderator.  The third player can then bid for
  995. X
  996. X
  997. X
  998. XSun Release 4.1      Last change: 4 Aug 1992                   14
  999. X
  1000. X
  1001. X
  1002. X
  1003. X
  1004. X
  1005. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1006. X
  1007. X
  1008. X
  1009. X     both East and West by switching seats  with  the  /EAST  and
  1010. X     /WEST commands.
  1011. X
  1012. X     After a contract has been reached, all four  hands  will  be
  1013. X     revealed  to  each of the players.  The players will be able
  1014. X     to discuss the bidding together.  They can also play out the
  1015. X     hand.   Each  player  is allowed to play from anyone's hand.
  1016. X     That is to say, if it is West's turn  to  play,  anyone  may
  1017. X     select which one of West's cards to play.
  1018. X
  1019. X     The /CLAIM (or /SKIP) command can be used to  end  the  hand
  1020. X     early.   During Practice mode, any player may use the /CLAIM
  1021. X     command to specify the number of tricks to  be  claimed  for
  1022. X     the  declarer.  No confirmation is requested for claims made
  1023. X     during Practice mode.  After the hand  ends,  the  score  is
  1024. X     computed and displayed.
  1025. X
  1026. X
  1027. X
  1028. XScoring
  1029. X     The following tables give a basic outline  of  how  okbridge
  1030. X     computes the scores.  It is partially derived from the docu-
  1031. X     mentation supplied with the bridge program written  by  Yuan
  1032. X     and Chu.
  1033. X
  1034. X     Trick Score (below the line)
  1035. X          If the contracting team succeeds in making  their  con-
  1036. X          tract,  then  the  base  score for the hand is computed
  1037. X          according to the following chart.
  1038. X
  1039. X            Spades or Hearts     30 per trick | If doubled:
  1040. X            Diamonds or Clubs    20 per trick |    multiply by 2
  1041. X            Notrump        40 for first trick | If redoubled:
  1042. X                 30 for each additional trick |    multiply by 4
  1043. X
  1044. X
  1045. X          For rubber bridge, the score is computed  according  to
  1046. X          the  number  of tricks bid.  For other scoring methods,
  1047. X          the score is computed according to how many tricks were
  1048. X          actually made.
  1049. X
  1050. X
  1051. X          In a doubled contract in rubber bridge, overtricks  are
  1052. X          scored  at  100  points  each if not vulnerable and 200
  1053. X          points each if vulnerable.  In a redoubled contract  in
  1054. X          rubber  bridge,  overtricks  are  scored at 200 and 400
  1055. X          respectively.
  1056. X
  1057. X
  1058. X          In rubber bridge, a game is scored  if  100  points  or
  1059. X          more  are accumulated below the line.  The scoring side
  1060. X          then becomes vulnerable and wins the rubber if they win
  1061. X
  1062. X
  1063. X
  1064. XSun Release 4.1      Last change: 4 Aug 1992                   15
  1065. X
  1066. X
  1067. X
  1068. X
  1069. X
  1070. X
  1071. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1072. X
  1073. X
  1074. X
  1075. X          a  second game.  In other forms of bridge, the vulnera-
  1076. X          bility proceeds according to a  rotation  which  cycles
  1077. X          every 16 hands.
  1078. X
  1079. X
  1080. X     Bonuses
  1081. X          For rubber bridge, there is a  bonus  for  winning  the
  1082. X          rubber, which is scored as follows:
  1083. X
  1084. X            Rubber bonus:   500 if you win two games out of three
  1085. X                            700 if you win the only two games
  1086. X
  1087. X          For all forms of bridge, there is a bonus for making  a
  1088. X          slam:
  1089. X
  1090. X                                  Not Vulnerable   Vulnerable
  1091. X            Slam Bonus:  Small Slam      500           750
  1092. X                         Grand Slam     1000          1500
  1093. X
  1094. X          In rubber, there is a bonus if the contracting side has
  1095. X          enough honor cards in the trump suit:
  1096. X
  1097. X            Honors:  4 trump honors in one hand          100
  1098. X                     5 trump honors in one hand          150
  1099. X                     4 aces in one hand at notrump       150
  1100. X
  1101. X          In non-rubber bridge, there is a 300  point  bonus  for
  1102. X          bidding  and  making  a  game when not vulnerable.  The
  1103. X          bonus is 500 points if vulnerable.
  1104. X
  1105. X          Making Doubled (or redoubled) Contract:  50 points
  1106. X
  1107. X          Penalties (above the line):
  1108. X
  1109. X                          Undoubled              Doubled
  1110. X                       Not Vul.   Vul.      Not Vul.   Vul.
  1111. X            Down 1        50      100         100      200
  1112. X            Down 2       100      200         300      500
  1113. X            Down 3       150      300         500      800
  1114. X            Down 4       200      400         700     1100
  1115. X            Down 5       250      500         900     1400
  1116. X            Down 6       300      600        1100     1700
  1117. X            Down 7       350      700        1300     2100
  1118. X            Down 8       400      800        1500     2500
  1119. X             ...         ...      ...         ...      ...
  1120. X
  1121. X          Note that for non-rubber bridge, the  penalty  sequence
  1122. X          for doubled not vulnerable is 100, 300, 500, 800, 1100,
  1123. X          etc.  If redoubled: multiply  the  doubled  penalty  by
  1124. X          two.
  1125. X
  1126. X
  1127. X
  1128. X
  1129. X
  1130. XSun Release 4.1      Last change: 4 Aug 1992                   16
  1131. X
  1132. X
  1133. X
  1134. X
  1135. X
  1136. X
  1137. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1138. X
  1139. X
  1140. X
  1141. X     IMP scoring
  1142. X          The IMP (International Match Point) scoring  system  is
  1143. X          based  on comparing the results of play for exactly two
  1144. X          tables.  In this system,  the  difference  between  the
  1145. X          score  of  your  team and the other team who played the
  1146. X          same cards as you is computed and then converted  to  a
  1147. X          number of IMPs according to a table.
  1148. X
  1149. X            Duplicate score  IMP pts     Duplicate score  IMP pts
  1150. X            ---------------  -------     ---------------  -------
  1151. X              <  20             0             750            12
  1152. X                 50             1             900            13
  1153. X                 90             2            1100            14
  1154. X                130             3            1300            15
  1155. X                170             4            1500            16
  1156. X                220             5            1750            17
  1157. X                270             6            2000            18
  1158. X                320             7            2250            19
  1159. X                370             8            2500            20
  1160. X                430             9            3000            21
  1161. X                500             10           3500            22
  1162. X                600             11           4000            23
  1163. X                                             above           24
  1164. X          If more than two tables have played a board,  then  the
  1165. X          IMP score assigned to a team for the play of a board is
  1166. X          the average of all of the pairwise IMP scores.  If only
  1167. X          one  table  has  played  a  board,  then  the IMP score
  1168. X          assigned for the play of the board is determined  using
  1169. X          the  Mono  IMP  system  described by Gary Greene in the
  1170. X          May/June 1990 issue of Bridge Today.  Greene  describes
  1171. X          the Mono IMP system as follows:
  1172. X
  1173. X          "Mono-IMP scoring is based on an average expected score
  1174. X          for  each  side's  high-card-point  holding.  The table
  1175. X          below shows the average score that a  given  number  of
  1176. X          high-card  points will produce in the long run.  I have
  1177. X          compiled statistics from over 10000 hands from a lunch-
  1178. X          time  game  played  over  the last five years, and they
  1179. X          indicate that these values are  a  realistic  long-term
  1180. X          average."
  1181. X
  1182. X               HCP   Vul   NV          HCP   Vul   NV
  1183. X               ---   ---   ---         ---   ---   ---
  1184. X               20    0     0      |    29    750   550
  1185. X               21    50    50     |    30    800   600
  1186. X               22    100   100    |    31    950   700
  1187. X               23    150   150    |    32    1100  800
  1188. X               24    300   200    |    33    1400  950
  1189. X               25    450   300    |    34    1500  1050
  1190. X               26    600   400    |    35    1650  1150
  1191. X               27    650   450    |    36    1850  1300
  1192. X               28    700   500    |    37+   2100  1500
  1193. X
  1194. X
  1195. X
  1196. XSun Release 4.1      Last change: 4 Aug 1992                   17
  1197. X
  1198. X
  1199. X
  1200. X
  1201. X
  1202. X
  1203. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1204. X
  1205. X
  1206. X
  1207. X          The number of Mono-IMPs awarded is determined by taking
  1208. X          the  difference between the score actually made and the
  1209. X          predicted score as given in the above  table.   If  the
  1210. X          difference is less than 600 (in either direction), then
  1211. X          the number of Mono-IMPs awarded is equal to the differ-
  1212. X          ence  divided  by  50  and  rounded to the nearest half
  1213. X          point.  If the difference is greater than 600, then the
  1214. X          number of Mono_IMPs awarded is equal to 12 plus 1 point
  1215. X          for each 100 beyond 600, again rounded to  the  nearest
  1216. X          half point.
  1217. X
  1218. X
  1219. X     Match Point Scoring
  1220. X          The Match Point scoring system compares the results  of
  1221. X          many  tables of play.  A partnership receives one match
  1222. X          point for each pair who played the same hands  and  did
  1223. X          worse  than  them  and  a  half point for each pair who
  1224. X          scored exactly the  same.   In  OKbridge,  match  point
  1225. X          scores  are  normalized  to  lie  between 0 and 1.  The
  1226. X          number of match points which a team receives is divided
  1227. X          by  the  total  number of match points which could have
  1228. X          been won.  Thus, normalized match  points  represent  a
  1229. X          per  cent  ranking among the other teams who played the
  1230. X          board.  If a board has been played by only  one  table,
  1231. X          then  a  simulated  match point score is assigned.  The
  1232. X          simulated match point score is 1 if the Mono-IMP  score
  1233. X          is 1 or greater, 0 if the Mono-IMP score is -1 or less,
  1234. X          and 0.5 otherwise.
  1235. X
  1236. X
  1237. XPlaying Duplicate Bridge
  1238. X     In addition to  the  GPS  duplicate  mode  described  above,
  1239. X     okbridge allows boards to be read from and written to files.
  1240. X     These files can be  mailed  to  other  foursomes  for  play,
  1241. X     allowing for 'email duplicate' matches.
  1242. X
  1243. X     To begin email duplicate play, the server at the first table
  1244. X     uses  the  /SAVE  command to save a set of boards after they
  1245. X     have been played.  The /SAVE command creates a record of the
  1246. X     boards along with a complete record of how they were played.
  1247. X     This file can then be mailed to others for play.
  1248. X
  1249. X     To replay a set of boards which have been saved, the  server
  1250. X     uses  the  /LOAD command to load the boards.  This loads the
  1251. X     boards from the file  into  memory  and  immediately  begins
  1252. X     playing them.  After the boards have been played, the server
  1253. X     can /SAVE the boards back to a file.   This  will  save  the
  1254. X     previous results of play along with the new results.
  1255. X
  1256. X     Alternatively, a sequence of boards can be replayed by using
  1257. X     the  /REPLAY  command.   This  first causes the boards to be
  1258. X     read into the  program  for  play.   After  they  have  been
  1259. X
  1260. X
  1261. X
  1262. XSun Release 4.1      Last change: 4 Aug 1992                   18
  1263. X
  1264. X
  1265. X
  1266. X
  1267. X
  1268. X
  1269. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1270. X
  1271. X
  1272. X
  1273. X     played,  they  are  then  automatically saved along with the
  1274. X     results back to the file from which they were read.
  1275. X
  1276. X     To create a unplayed set of shuffled boards, use the okshuf-
  1277. X     fle(6) program.  Also, to merge a number of boards that have
  1278. X     already been played, you can use the oktally(6) program. See
  1279. X     their man pages for more details.
  1280. X
  1281. X
  1282. XThe .okbridgerc initialization file
  1283. X     It is possible to store a number of default settings into  a
  1284. X     file which will be read at initialization.  When the program
  1285. X     starts, the current working directory is first searched  for
  1286. X     a  file  named ".okbridgerc".  If no file is found, then the
  1287. X     home directory is searched for the same file.  For an  exam-
  1288. X     ple  of  an .okbridgerc file, see the file in this distribu-
  1289. X     tion named "okbridgerc".  (Note that it is incorrectly named
  1290. X     --  to  be  read by the okbridge program, it should be named
  1291. X     ".okbridgerc").
  1292. X
  1293. X     After the ".okbridgerc"  file  is  read,  the  program  then
  1294. X     searches  for  a  file named ".okdefaults".  This file is of
  1295. X     the same format as the ".okbridgerc", and any settings  file
  1296. X     override  those  found  in  the  ".okbridgerc"  file.   When
  1297. X     okbridge terminates, it may rewrite the ".okdefaults"  file,
  1298. X     saving  any  settings which may have been changed during the
  1299. X     play of the program.
  1300. X
  1301. X
  1302. X     Each line in the ".okbridgerc" file is either a comment line
  1303. X     or  a  (field,  value)  pair.   Comment lines begin with the
  1304. X     pound sign '#' character.  Field, value  pairs  are  of  the
  1305. X     format:
  1306. X
  1307. X               <Field-name>  <value>
  1308. X
  1309. X     The fields which are currently recognized are as follows:
  1310. X
  1311. X
  1312. X     AUTOSAVE
  1313. X          This field specifies that the ".okdefaults" file should
  1314. X          be  rewritten  when okbridge terminates.  If this field
  1315. X          is not present, then the ".okdefaults" file will not be
  1316. X          changed.
  1317. X
  1318. X
  1319. X     BELL ON | OFF
  1320. X          When requesting input (a bid or a play), the terminal's
  1321. X          bell is rung by default.  However, this can be disabled
  1322. X          by specifying 'BELL OFF'.  This has the same effect  as
  1323. X          the '/BELL OFF' command.
  1324. X
  1325. X
  1326. X
  1327. X
  1328. XSun Release 4.1      Last change: 4 Aug 1992                   19
  1329. X
  1330. X
  1331. X
  1332. X
  1333. X
  1334. X
  1335. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1336. X
  1337. X
  1338. X
  1339. X     CC convention-card
  1340. X          This is a one line description of the conventions which
  1341. X          you like to use.
  1342. X
  1343. X
  1344. X     CCDEF Convention-Card-Name Convention-Card
  1345. X          Stores a named convention card in  the  internal  data-
  1346. X          base.   This convention card can then be called up dur-
  1347. X          ing the play of  the  program  with  the  command  '/CC
  1348. X          <card-name>'.
  1349. X
  1350. X
  1351. X     DEFAULT ON | OFF
  1352. X          This controls whether or not  default  inputs  will  be
  1353. X          provided for bids, plays and questions.
  1354. X
  1355. X
  1356. X     EMAIL email-address
  1357. X          This should be your email  address.   It  is  currently
  1358. X          used only for identification purposes.
  1359. X
  1360. X
  1361. X     FULLNAME your-full-name
  1362. X          This field is used only  for  identification  purposes,
  1363. X          and  should contain your full name as you would wish it
  1364. X          to be displayed to others.
  1365. X
  1366. X
  1367. X     GPS  ON | OFF
  1368. X          Controls whether or not  we  will  contact  the  Global
  1369. X          Player  Service  automatically  when the program starts
  1370. X          up.
  1371. X
  1372. X
  1373. X     GPS_IP ip-name-or-number-of-GPS [GPS-port]
  1374. X          Specifies the Internet number and port of the GPS.
  1375. X
  1376. X
  1377. X     HELPFILE directory-name
  1378. X          This field specifies the location of the okbridge  help
  1379. X          file.
  1380. X
  1381. X
  1382. X     LOAD email-duplicate-filename
  1383. X          This field is only valid if the position is  north  and
  1384. X          the  scoring  mode  is  email duplicate.  In this case,
  1385. X          okbridge will automatically read a set of email  dupli-
  1386. X          cate boards from the named file.
  1387. X
  1388. X
  1389. X     LOG filename
  1390. X          If this statement is present in the startup file,  then
  1391. X
  1392. X
  1393. X
  1394. XSun Release 4.1      Last change: 4 Aug 1992                   20
  1395. X
  1396. X
  1397. X
  1398. X
  1399. X
  1400. X
  1401. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1402. X
  1403. X
  1404. X
  1405. X          the  hands  will  automatically  be logged to the given
  1406. X          filename.  If the first character of filename is a plus
  1407. X          sign '+', then the log is appended to filename.  Other-
  1408. X          wise, filename is overwritten.
  1409. X
  1410. X
  1411. X     MY_IP  local-IP-number
  1412. X          This field specifies the IP number of the local player.
  1413. X          Usually,   okbridge   can   determine   the  IP  number
  1414. X          correctly, but on some  systems,  this  field  must  be
  1415. X          used.
  1416. X
  1417. X
  1418. X     NAME local-player-name
  1419. X          This field specifies the name  that  will  be  used  to
  1420. X          identify  the  local  player  to the other players.  If
  1421. X          both the NAME field and the POSITION field are  present
  1422. X          in the .okbridgerc startup file, then the corresponding
  1423. X          parameters can be omitted  from  the  okbridge  command
  1424. X          line.   In  this  case, the SERVER field should also be
  1425. X          specified in the .okbridgerc file.
  1426. X
  1427. X
  1428. X     PORT positive-integer
  1429. X          This field specifies the internet port number that will
  1430. X          be used for communications with the server.  It is usu-
  1431. X          ally not necessary to specify a port number.
  1432. X
  1433. X
  1434. X     PROMPT NO | YES
  1435. X          The value of this field is only relevant in hands where
  1436. X          the local player is the dummy.  In this case, the dummy
  1437. X          is ordinarily prompted to press RETURN at  the  end  of
  1438. X          each  trick.   This  allows  the dummy to see the cards
  1439. X          that are  played  as  they  are  played.   However,  if
  1440. X          'PROMPT  NO'  is  specified, then the dummy will not be
  1441. X          prompted.
  1442. X
  1443. X
  1444. X     SCORING RUBBER | CHICAGO | DUPLICATE | EMAIL | IMP
  1445. X          This field is only relevant  if  the  local  player  is
  1446. X          north.   In this case, the SCORING field determines the
  1447. X          type of scoring that will be used  by  default  in  the
  1448. X          game.
  1449. X
  1450. X
  1451. X     SEAT NORTH | EAST | SOUTH | WEST
  1452. X          This field specifies the local player's  position.   If
  1453. X          both  the NAME field and the POSITION field are present
  1454. X          in the .okbridgerc startup file, then the corresponding
  1455. X          parameters  can  be  omitted  from the okbridge command
  1456. X          line.  In this case, the SERVER field  should  also  be
  1457. X
  1458. X
  1459. X
  1460. XSun Release 4.1      Last change: 4 Aug 1992                   21
  1461. X
  1462. X
  1463. X
  1464. X
  1465. X
  1466. X
  1467. XOKBRIDGE(6)              GAMES AND DEMOS              OKBRIDGE(6)
  1468. X
  1469. X
  1470. X
  1471. X          specified in the .okbridgerc file.
  1472. X
  1473. X
  1474. X     SERVER ME | internet-name-or-number
  1475. X          If the value of this field  is  'ME',  then  the  local
  1476. X          player will assume the role of server.  If the value of
  1477. X          this field is anything else, then it is interpreted  as
  1478. X          an  internet  name  or  number of the machine where the
  1479. X          server is running.
  1480. X
  1481. X
  1482. X     ZLOG filename
  1483. X          This command is similar to the LOG command, in that  it
  1484. X          opens  a file for recording play, but the format of the
  1485. X          file is more concise.
  1486. X
  1487. X
  1488. XFILES
  1489. X     ".okbridgerc"  - user defaults file
  1490. X
  1491. XSEE ALSO
  1492. X     okshuffle(6), oktally(6)
  1493. X
  1494. XAUTHOR
  1495. X     Matthew Clegg, mclegg@cs.ucsd.edu.
  1496. X
  1497. X     Man pages adapted by George Ferguson,
  1498. X     ferguson@cs.rochester.edu.
  1499. X
  1500. X
  1501. X
  1502. X
  1503. X
  1504. X
  1505. X
  1506. X
  1507. X
  1508. X
  1509. X
  1510. X
  1511. X
  1512. X
  1513. X
  1514. X
  1515. X
  1516. X
  1517. X
  1518. X
  1519. X
  1520. X
  1521. X
  1522. X
  1523. X
  1524. X
  1525. X
  1526. XSun Release 4.1      Last change: 4 Aug 1992                   22
  1527. X
  1528. X
  1529. X
  1530. END_OF_FILE
  1531. if test 51515 -ne `wc -c <'README.Playing'`; then
  1532.     echo shar: \"'README.Playing'\" unpacked with wrong size!
  1533. fi
  1534. # end of 'README.Playing'
  1535. fi
  1536. if test -f 'oktally.man' -a "${1}" != "-c" ; then 
  1537.   echo shar: Will not clobber existing file \"'oktally.man'\"
  1538. else
  1539. echo shar: Extracting \"'oktally.man'\" \(37 characters\)
  1540. sed "s/^X//" >'oktally.man' <<'END_OF_FILE'
  1541. X.so man6/okshuffle.6
  1542. X.\" oktally.man
  1543. END_OF_FILE
  1544. if test 37 -ne `wc -c <'oktally.man'`; then
  1545.     echo shar: \"'oktally.man'\" unpacked with wrong size!
  1546. fi
  1547. # end of 'oktally.man'
  1548. fi
  1549. echo shar: End of archive 1 \(of 14\).
  1550. cp /dev/null ark1isdone
  1551. MISSING=""
  1552. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ; do
  1553.     if test ! -f ark${I}isdone ; then
  1554.     MISSING="${MISSING} ${I}"
  1555.     fi
  1556. done
  1557. if test "${MISSING}" = "" ; then
  1558.     echo You have unpacked all 14 archives.
  1559.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1560. else
  1561.     echo You still need to unpack the following archives:
  1562.     echo "        " ${MISSING}
  1563. fi
  1564. ##  End of shell archive.
  1565. exit 0
  1566.