home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 920110.10
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 7a 65 70 68 |Path: uu|net!zeph|
|00000010| 79 72 2e 65 6e 73 2e 74 | 65 6b 2e 63 6f 6d 21 6d |yr.ens.t|ek.com!m|
|00000020| 61 73 74 65 72 21 73 61 | 61 62 21 62 69 6c 6c 72 |aster!sa|ab!billr|
|00000030| 0a 46 72 6f 6d 3a 20 62 | 69 6c 6c 72 40 73 61 61 |.From: b|illr@saa|
|00000040| 62 2e 43 4e 41 2e 54 45 | 4b 2e 43 4f 4d 20 28 42 |b.CNA.TE|K.COM (B|
|00000050| 69 6c 6c 20 52 61 6e 64 | 6c 65 29 0a 4e 65 77 73 |ill Rand|le).News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000070| 72 63 65 73 2e 67 61 6d | 65 73 0a 53 75 62 6a 65 |rces.gam|es.Subje|
|00000080| 63 74 3a 20 76 31 33 69 | 30 32 32 3a 20 20 6f 6b |ct: v13i|022: ok|
|00000090| 62 72 69 64 67 65 20 2d | 20 63 6f 6d 70 75 74 65 |bridge -| compute|
|000000a0| 72 2d 6d 65 64 69 61 74 | 65 64 20 62 72 69 64 67 |r-mediat|ed bridg|
|000000b0| 65 20 67 61 6d 65 2c 20 | 50 61 72 74 30 37 2f 30 |e game, |Part07/0|
|000000c0| 37 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 32 |7.Messag|e-ID: <2|
|000000d0| 32 38 31 40 6d 61 73 74 | 65 72 43 4e 41 2e 54 45 |281@mast|erCNA.TE|
|000000e0| 4b 2e 43 4f 4d 3e 0a 44 | 61 74 65 3a 20 31 30 20 |K.COM>.D|ate: 10 |
|000000f0| 4a 61 6e 20 39 32 20 31 | 36 3a 34 35 3a 32 36 20 |Jan 92 1|6:45:26 |
|00000100| 47 4d 54 0a 53 65 6e 64 | 65 72 3a 20 6e 65 77 73 |GMT.Send|er: news|
|00000110| 40 6d 61 73 74 65 72 43 | 4e 41 2e 54 45 4b 2e 43 |@masterC|NA.TEK.C|
|00000120| 4f 4d 0a 4c 69 6e 65 73 | 3a 20 31 33 36 37 0a 41 |OM.Lines|: 1367.A|
|00000130| 70 70 72 6f 76 65 64 3a | 20 62 69 6c 6c 72 40 73 |pproved:| billr@s|
|00000140| 61 61 62 2e 43 4e 41 2e | 54 45 4b 2e 43 4f 4d 0a |aab.CNA.|TEK.COM.|
|00000150| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 6d |.Submitt|ed-by: m|
|00000160| 63 6c 65 67 67 40 63 73 | 2e 55 43 53 44 2e 45 44 |clegg@cs|.UCSD.ED|
|00000170| 55 20 28 4d 61 74 74 68 | 65 77 20 43 6c 65 67 67 |U (Matth|ew Clegg|
|00000180| 29 0a 50 6f 73 74 69 6e | 67 2d 6e 75 6d 62 65 72 |).Postin|g-number|
|00000190| 3a 20 56 6f 6c 75 6d 65 | 20 31 33 2c 20 49 73 73 |: Volume| 13, Iss|
|000001a0| 75 65 20 32 32 0a 41 72 | 63 68 69 76 65 2d 6e 61 |ue 22.Ar|chive-na|
|000001b0| 6d 65 3a 20 6f 6b 62 72 | 69 64 67 65 2f 50 61 72 |me: okbr|idge/Par|
|000001c0| 74 30 37 0a 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 3a |t07.Envi|ronment:|
|000001d0| 20 42 53 44 2d 64 65 72 | 69 76 65 64 20 55 6e 69 | BSD-der|ived Uni|
|000001e0| 78 2c 20 63 75 72 73 65 | 73 2c 20 73 6f 63 6b 65 |x, curse|s, socke|
|000001f0| 74 73 0a 0a 0a 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |ts....#!| /bin/sh|
|00000200| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000210| 6c 6c 20 61 72 63 68 69 | 76 65 2e 20 20 52 65 6d |ll archi|ve. Rem|
|00000220| 6f 76 65 20 61 6e 79 74 | 68 69 6e 67 20 62 65 66 |ove anyt|hing bef|
|00000230| 6f 72 65 20 74 68 69 73 | 20 6c 69 6e 65 2c 20 74 |ore this| line, t|
|00000240| 68 65 6e 20 75 6e 70 61 | 63 6b 0a 23 20 69 74 20 |hen unpa|ck.# it |
|00000250| 62 79 20 73 61 76 69 6e | 67 20 69 74 20 69 6e 74 |by savin|g it int|
|00000260| 6f 20 61 20 66 69 6c 65 | 20 61 6e 64 20 74 79 70 |o a file| and typ|
|00000270| 69 6e 67 20 22 73 68 20 | 66 69 6c 65 22 2e 20 20 |ing "sh |file". |
|00000280| 54 6f 20 6f 76 65 72 77 | 72 69 74 65 20 65 78 69 |To overw|rite exi|
|00000290| 73 74 69 6e 67 0a 23 20 | 66 69 6c 65 73 2c 20 74 |sting.# |files, t|
|000002a0| 79 70 65 20 22 73 68 20 | 66 69 6c 65 20 2d 63 22 |ype "sh |file -c"|
|000002b0| 2e 20 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |. You c|an also |
|000002c0| 66 65 65 64 20 74 68 69 | 73 20 61 73 20 73 74 61 |feed thi|s as sta|
|000002d0| 6e 64 61 72 64 20 69 6e | 70 75 74 20 76 69 61 0a |ndard in|put via.|
|000002e0| 23 20 75 6e 73 68 61 72 | 2c 20 6f 72 20 62 79 20 |# unshar|, or by |
|000002f0| 74 79 70 69 6e 67 20 22 | 73 68 20 3c 66 69 6c 65 |typing "|sh <file|
|00000300| 22 2c 20 65 2e 67 2e 2e | 20 20 49 66 20 74 68 69 |", e.g..| If thi|
|00000310| 73 20 61 72 63 68 69 76 | 65 20 69 73 20 63 6f 6d |s archiv|e is com|
|00000320| 70 6c 65 74 65 2c 20 79 | 6f 75 0a 23 20 77 69 6c |plete, y|ou.# wil|
|00000330| 6c 20 73 65 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |l see th|e follow|
|00000340| 69 6e 67 20 6d 65 73 73 | 61 67 65 20 61 74 20 74 |ing mess|age at t|
|00000350| 68 65 20 65 6e 64 3a 0a | 23 09 09 22 45 6e 64 20 |he end:.|#.."End |
|00000360| 6f 66 20 61 72 63 68 69 | 76 65 20 37 20 28 6f 66 |of archi|ve 7 (of|
|00000370| 20 37 29 2e 22 0a 23 20 | 43 6f 6e 74 65 6e 74 73 | 7).".# |Contents|
|00000380| 3a 20 20 4d 61 6b 65 66 | 69 6c 65 20 52 65 76 69 |: Makef|ile Revi|
|00000390| 73 69 6f 6e 73 20 63 6f | 64 65 2e 68 20 64 69 73 |sions co|de.h dis|
|000003a0| 70 6c 61 79 2e 68 20 68 | 65 6c 70 2e 68 20 6e 65 |play.h h|elp.h ne|
|000003b0| 74 77 6f 72 6b 2e 68 0a | 23 20 20 20 6f 6b 62 72 |twork.h.|# okbr|
|000003c0| 69 64 67 65 72 63 20 6f | 6b 73 68 75 66 66 6c 65 |idgerc o|kshuffle|
|000003d0| 2e 63 20 70 73 2e 68 20 | 73 63 6f 72 69 6e 67 2e |.c ps.h |scoring.|
|000003e0| 68 20 73 6f 63 6b 65 74 | 2e 63 20 74 65 72 6d 69 |h socket|.c termi|
|000003f0| 6e 61 6c 2e 68 0a 23 20 | 57 72 61 70 70 65 64 20 |nal.h.# |Wrapped |
|00000400| 62 79 20 62 69 6c 6c 72 | 40 73 61 61 62 20 6f 6e |by billr|@saab on|
|00000410| 20 46 72 69 20 4a 61 6e | 20 31 30 20 30 38 3a 33 | Fri Jan| 10 08:3|
|00000420| 31 3a 33 30 20 31 39 39 | 32 0a 50 41 54 48 3d 2f |1:30 199|2.PATH=/|
|00000430| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|00000440| 72 2f 75 63 62 20 3b 20 | 65 78 70 6f 72 74 20 50 |r/ucb ; |export P|
|00000450| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|00000460| 4d 61 6b 65 66 69 6c 65 | 27 20 2d 61 20 22 24 7b |Makefile|' -a "${|
|00000470| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000480| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000490| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|000004a0| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|000004b0| 5c 22 27 4d 61 6b 65 66 | 69 6c 65 27 5c 22 0a 65 |\"'Makef|ile'\".e|
|000004c0| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|000004d0| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 4d 61 6b |xtractin|g \"'Mak|
|000004e0| 65 66 69 6c 65 27 5c 22 | 20 5c 28 32 37 35 36 20 |efile'\"| \(2756 |
|000004f0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00000500| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 4d 61 6b 65 | "s/^X//|" >'Make|
|00000510| 66 69 6c 65 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |file' <<|'END_OF_|
|00000520| 46 49 4c 45 27 0a 58 23 | 20 6d 61 6b 65 66 69 6c |FILE'.X#| makefil|
|00000530| 65 20 66 6f 72 20 4f 6b | 62 72 69 64 67 65 20 31 |e for Ok|bridge 1|
|00000540| 2e 35 0a 58 23 0a 58 23 | 20 4d 61 74 74 68 65 77 |.5.X#.X#| Matthew|
|00000550| 20 43 6c 65 67 67 2e 0a | 58 23 0a 58 0a 58 23 20 | Clegg..|X#.X.X# |
|00000560| 49 6e 20 67 65 6e 65 72 | 61 6c 20 74 68 65 20 6f |In gener|al the o|
|00000570| 6b 62 72 69 64 67 65 20 | 70 72 6f 67 72 61 6d 20 |kbridge |program |
|00000580| 63 61 6e 20 62 65 20 63 | 6f 6d 70 69 6c 65 64 20 |can be c|ompiled |
|00000590| 73 69 6d 70 6c 79 20 62 | 79 0a 58 23 20 74 79 70 |simply b|y.X# typ|
|000005a0| 69 6e 67 20 27 6d 61 6b | 65 27 2e 20 20 49 66 20 |ing 'mak|e'. If |
|000005b0| 79 6f 75 20 61 72 65 20 | 70 6c 61 6e 6e 69 6e 67 |you are |planning|
|000005c0| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 20 6f 6b 62 72 | to inst|all okbr|
|000005d0| 69 64 67 65 20 69 6e 0a | 58 23 20 61 20 70 75 62 |idge in.|X# a pub|
|000005e0| 6c 69 63 20 64 69 72 65 | 63 74 6f 72 79 2c 20 74 |lic dire|ctory, t|
|000005f0| 68 65 6e 20 79 6f 75 20 | 6d 61 79 20 77 61 6e 74 |hen you |may want|
|00000600| 20 74 6f 20 66 69 72 73 | 74 20 63 68 61 6e 67 65 | to firs|t change|
|00000610| 20 74 68 65 0a 58 23 20 | 76 61 6c 75 65 73 20 6f | the.X# |values o|
|00000620| 66 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 73 20 |f the va|riables |
|00000630| 4f 4b 42 52 49 44 47 45 | 5f 44 49 52 20 61 6e 64 |OKBRIDGE|_DIR and|
|00000640| 20 4f 4b 42 52 49 44 47 | 45 5f 48 45 4c 50 46 49 | OKBRIDG|E_HELPFI|
|00000650| 4c 45 2e 0a 58 23 20 54 | 68 65 6e 2c 20 74 79 70 |LE..X# T|hen, typ|
|00000660| 65 20 27 6d 61 6b 65 20 | 69 6e 73 74 61 6c 6c 27 |e 'make |install'|
|00000670| 2e 0a 58 0a 58 4f 4b 42 | 52 49 44 47 45 5f 44 49 |..X.XOKB|RIDGE_DI|
|00000680| 52 20 3d 20 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 67 |R = /usr|/local/g|
|00000690| 61 6d 65 73 0a 58 4f 4b | 42 52 49 44 47 45 5f 48 |ames.XOK|BRIDGE_H|
|000006a0| 45 4c 50 46 49 4c 45 20 | 3d 20 2f 75 73 72 2f 6c |ELPFILE |= /usr/l|
|000006b0| 6f 63 61 6c 2f 67 61 6d | 65 73 2f 6f 6b 62 72 69 |ocal/gam|es/okbri|
|000006c0| 64 67 65 2e 68 65 6c 70 | 0a 58 0a 58 23 20 49 66 |dge.help|.X.X# If|
|000006d0| 20 79 6f 75 20 61 72 65 | 20 63 6f 6d 70 69 6c 69 | you are| compili|
|000006e0| 6e 67 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |ng this |program |
|000006f0| 6f 6e 20 61 20 6d 61 63 | 68 69 6e 65 20 77 68 69 |on a mac|hine whi|
|00000700| 63 68 20 69 73 0a 58 23 | 20 72 75 6e 6e 69 6e 67 |ch is.X#| running|
|00000710| 20 49 42 4d 27 73 20 41 | 49 58 20 6f 70 65 72 61 | IBM's A|IX opera|
|00000720| 74 69 6e 67 20 73 79 73 | 74 65 6d 2c 20 74 68 65 |ting sys|tem, the|
|00000730| 6e 20 75 6e 63 6f 6d 6d | 65 6e 74 20 74 68 65 0a |n uncomm|ent the.|
|00000740| 58 23 20 6e 65 78 74 20 | 6c 69 6e 65 3a 0a 58 23 |X# next |line:.X#|
|00000750| 4d 41 43 48 49 4e 45 5f | 46 4c 41 47 53 20 3d 20 |MACHINE_|FLAGS = |
|00000760| 2d 44 41 49 58 0a 58 23 | 0a 58 23 20 49 66 20 79 |-DAIX.X#|.X# If y|
|00000770| 6f 75 20 61 72 65 20 72 | 75 6e 6e 69 6e 67 20 6f |ou are r|unning o|
|00000780| 6e 20 61 6e 20 48 50 2f | 55 58 20 73 79 73 74 65 |n an HP/|UX syste|
|00000790| 6d 2c 20 79 6f 75 20 6d | 61 79 20 6e 65 65 64 20 |m, you m|ay need |
|000007a0| 74 6f 20 75 6e 63 6f 6d | 6d 65 6e 74 0a 58 23 20 |to uncom|ment.X# |
|000007b0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|000007c0| 6e 65 3a 0a 58 23 4d 41 | 43 48 49 4e 45 5f 46 4c |ne:.X#MA|CHINE_FL|
|000007d0| 41 47 53 20 3d 20 2d 44 | 48 50 55 58 0a 58 23 0a |AGS = -D|HPUX.X#.|
|000007e0| 58 23 20 49 66 20 79 6f | 75 20 61 72 65 20 63 6f |X# If yo|u are co|
|000007f0| 6d 70 69 6c 69 6e 67 20 | 74 68 69 73 20 70 72 6f |mpiling |this pro|
|00000800| 67 72 61 6d 20 6f 6e 20 | 61 20 6d 61 63 68 69 6e |gram on |a machin|
|00000810| 65 20 77 68 69 63 68 20 | 64 6f 65 73 20 6e 6f 74 |e which |does not|
|00000820| 0a 58 23 20 68 61 76 65 | 20 73 74 72 63 61 73 65 |.X# have| strcase|
|00000830| 63 6d 70 20 61 6e 64 20 | 73 74 72 6e 63 61 73 65 |cmp and |strncase|
|00000840| 63 6d 70 2c 20 74 68 65 | 6e 20 79 6f 75 20 77 69 |cmp, the|n you wi|
|00000850| 6c 6c 20 6e 65 65 64 20 | 74 6f 20 75 6e 63 6f 6d |ll need |to uncom|
|00000860| 6d 65 6e 74 0a 58 23 20 | 74 68 65 20 66 6f 6c 6c |ment.X# |the foll|
|00000870| 6f 77 69 6e 67 20 6c 69 | 6e 65 20 28 74 68 69 73 |owing li|ne (this|
|00000880| 20 69 73 20 6e 6f 74 20 | 6e 65 63 65 73 73 61 72 | is not |necessar|
|00000890| 79 20 69 66 20 79 6f 75 | 20 61 72 65 20 75 73 69 |y if you| are usi|
|000008a0| 6e 67 0a 58 23 20 53 75 | 6e 4f 53 20 6f 72 20 61 |ng.X# Su|nOS or a|
|000008b0| 20 72 65 63 65 6e 74 20 | 76 65 72 73 69 6f 6e 20 | recent |version |
|000008c0| 6f 66 20 55 6c 74 72 69 | 78 29 3a 0a 58 23 53 54 |of Ultri|x):.X#ST|
|000008d0| 52 43 41 53 45 43 4d 50 | 20 3d 20 2d 44 4e 4f 5f |RCASECMP| = -DNO_|
|000008e0| 53 54 52 43 41 53 45 43 | 4d 50 0a 58 23 0a 58 23 |STRCASEC|MP.X#.X#|
|000008f0| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 | The fol|lowing f|
|00000900| 6c 61 67 73 20 6d 61 79 | 20 62 65 20 75 73 65 66 |lags may| be usef|
|00000910| 75 6c 20 69 66 20 79 6f | 75 20 68 61 76 65 20 6d |ul if yo|u have m|
|00000920| 6f 64 69 66 69 65 64 20 | 74 68 65 20 6f 6b 62 72 |odified |the okbr|
|00000930| 69 64 67 65 0a 58 23 20 | 70 72 6f 67 72 61 6d 20 |idge.X# |program |
|00000940| 61 6e 64 20 79 6f 75 20 | 6e 65 65 64 20 61 73 73 |and you |need ass|
|00000950| 69 73 74 61 6e 63 65 20 | 64 65 62 75 67 67 69 6e |istance |debuggin|
|00000960| 67 20 69 74 3a 0a 58 23 | 0a 58 23 20 55 6e 63 6f |g it:.X#|.X# Unco|
|00000970| 6d 6d 65 6e 74 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |mment th|e follow|
|00000980| 69 6e 67 20 6c 69 6e 65 | 20 74 6f 20 74 65 73 74 |ing line| to test|
|00000990| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 69 6e 20 | the pro|gram in |
|000009a0| 4c 4f 4f 50 42 41 43 4b | 5f 4d 4f 44 45 2e 0a 58 |LOOPBACK|_MODE..X|
|000009b0| 23 20 43 46 4c 41 47 53 | 20 3d 20 2d 67 20 2d 44 |# CFLAGS| = -g -D|
|000009c0| 4c 4f 47 46 49 4c 45 20 | 2d 44 4c 4f 4f 50 42 41 |LOGFILE |-DLOOPBA|
|000009d0| 43 4b 5f 4d 4f 44 45 20 | 2d 44 44 45 42 55 47 20 |CK_MODE |-DDEBUG |
|000009e0| 24 28 53 54 52 43 41 53 | 45 43 4d 50 29 20 24 28 |$(STRCAS|ECMP) $(|
|000009f0| 4d 41 43 48 49 4e 45 5f | 46 4c 41 47 53 29 0a 58 |MACHINE_|FLAGS).X|
|00000a00| 23 20 43 46 4c 41 47 53 | 20 3d 20 2d 67 20 2d 44 |# CFLAGS| = -g -D|
|00000a10| 44 45 42 55 47 20 2d 44 | 4c 4f 47 46 49 4c 45 20 |DEBUG -D|LOGFILE |
|00000a20| 24 28 53 54 52 43 41 53 | 45 43 4d 50 29 20 24 28 |$(STRCAS|ECMP) $(|
|00000a30| 4d 41 43 48 49 4e 45 5f | 46 4c 41 47 53 29 0a 58 |MACHINE_|FLAGS).X|
|00000a40| 23 20 43 46 4c 41 47 53 | 20 3d 20 2d 67 20 2d 44 |# CFLAGS| = -g -D|
|00000a50| 44 45 42 55 47 20 24 28 | 53 54 52 43 41 53 45 43 |DEBUG $(|STRCASEC|
|00000a60| 4d 50 29 20 24 28 4d 41 | 43 48 49 4e 45 5f 46 4c |MP) $(MA|CHINE_FL|
|00000a70| 41 47 53 29 0a 58 43 46 | 4c 41 47 53 20 3d 20 2d |AGS).XCF|LAGS = -|
|00000a80| 67 20 24 28 53 54 52 43 | 41 53 45 43 4d 50 29 20 |g $(STRC|ASECMP) |
|00000a90| 24 28 4d 41 43 48 49 4e | 45 5f 46 4c 41 47 53 29 |$(MACHIN|E_FLAGS)|
|00000aa0| 0a 58 0a 58 4f 42 4a 20 | 3d 20 62 72 69 64 67 65 |.X.XOBJ |= bridge|
|00000ab0| 2e 6f 20 69 6e 70 75 74 | 2e 6f 20 64 69 73 70 6c |.o input|.o displ|
|00000ac0| 61 79 2e 6f 20 74 65 72 | 6d 69 6e 61 6c 2e 6f 20 |ay.o ter|minal.o |
|00000ad0| 6e 65 74 77 6f 72 6b 2e | 6f 20 68 65 6c 70 2e 6f |network.|o help.o|
|00000ae0| 20 70 73 2e 6f 20 73 6f | 63 6b 65 74 2e 6f 5c 0a | ps.o so|cket.o\.|
|00000af0| 58 20 20 20 20 20 20 73 | 63 6f 72 69 6e 67 2e 6f |X s|coring.o|
|00000b00| 20 65 6d 61 69 6c 2e 6f | 20 63 6f 64 65 2e 6f 20 | email.o| code.o |
|00000b10| 73 74 61 72 74 75 70 2e | 6f 0a 58 0a 58 53 48 55 |startup.|o.X.XSHU|
|00000b20| 46 46 4c 45 4f 42 4a 20 | 3d 20 6f 6b 73 68 75 66 |FFLEOBJ |= okshuf|
|00000b30| 66 6c 65 2e 6f 20 65 6d | 61 69 6c 2e 6f 20 63 6f |fle.o em|ail.o co|
|00000b40| 64 65 2e 6f 0a 58 0a 58 | 54 41 4c 4c 59 4f 42 4a |de.o.X.X|TALLYOBJ|
|00000b50| 20 3d 20 6f 6b 74 61 6c | 6c 79 2e 6f 20 65 6d 61 | = oktal|ly.o ema|
|00000b60| 69 6c 2e 6f 20 63 6f 64 | 65 2e 6f 0a 58 0a 58 0a |il.o cod|e.o.X.X.|
|00000b70| 58 0a 58 61 6c 6c 3a 09 | 6f 6b 62 72 69 64 67 65 |X.Xall:.|okbridge|
|00000b80| 20 6f 6b 73 68 75 66 66 | 6c 65 20 6f 6b 74 61 6c | okshuff|le oktal|
|00000b90| 6c 79 0a 58 0a 58 6f 6b | 62 72 69 64 67 65 3a 09 |ly.X.Xok|bridge:.|
|00000ba0| 24 28 4f 42 4a 29 0a 58 | 09 24 28 43 43 29 20 2d |$(OBJ).X|.$(CC) -|
|00000bb0| 6f 20 6f 6b 62 72 69 64 | 67 65 20 24 28 4f 42 4a |o okbrid|ge $(OBJ|
|00000bc0| 29 20 2d 6c 63 75 72 73 | 65 73 20 2d 6c 74 65 72 |) -lcurs|es -lter|
|00000bd0| 6d 63 61 70 0a 58 0a 58 | 6f 6b 73 68 75 66 66 6c |mcap.X.X|okshuffl|
|00000be0| 65 3a 09 24 28 53 48 55 | 46 46 4c 45 4f 42 4a 29 |e:.$(SHU|FFLEOBJ)|
|00000bf0| 20 67 6c 6f 62 61 6c 73 | 2e 68 0a 58 09 24 28 43 | globals|.h.X.$(C|
|00000c00| 43 29 20 2d 6f 20 6f 6b | 73 68 75 66 66 6c 65 20 |C) -o ok|shuffle |
|00000c10| 24 28 53 48 55 46 46 4c | 45 4f 42 4a 29 0a 58 0a |$(SHUFFL|EOBJ).X.|
|00000c20| 58 6f 6b 74 61 6c 6c 79 | 3a 09 24 28 54 41 4c 4c |Xoktally|:.$(TALL|
|00000c30| 59 4f 42 4a 29 20 67 6c | 6f 62 61 6c 73 2e 68 0a |YOBJ) gl|obals.h.|
|00000c40| 58 09 24 28 43 43 29 20 | 2d 6f 20 6f 6b 74 61 6c |X.$(CC) |-o oktal|
|00000c50| 6c 79 20 24 28 54 41 4c | 4c 59 4f 42 4a 29 0a 58 |ly $(TAL|LYOBJ).X|
|00000c60| 0a 58 69 6e 73 74 61 6c | 6c 3a 09 6f 6b 62 72 69 |.Xinstal|l:.okbri|
|00000c70| 64 67 65 0a 58 09 69 6e | 73 74 61 6c 6c 20 6f 6b |dge.X.in|stall ok|
|00000c80| 62 72 69 64 67 65 20 24 | 28 4f 4b 42 52 49 44 47 |bridge $|(OKBRIDG|
|00000c90| 45 5f 44 49 52 29 0a 58 | 09 69 6e 73 74 61 6c 6c |E_DIR).X|.install|
|00000ca0| 20 6f 6b 73 68 75 66 66 | 6c 65 20 24 28 4f 4b 42 | okshuff|le $(OKB|
|00000cb0| 52 49 44 47 45 5f 44 49 | 52 29 0a 58 09 69 6e 73 |RIDGE_DI|R).X.ins|
|00000cc0| 74 61 6c 6c 20 6f 6b 74 | 61 6c 6c 79 20 24 28 4f |tall okt|ally $(O|
|00000cd0| 4b 42 52 49 44 47 45 5f | 44 49 52 29 0a 58 09 69 |KBRIDGE_|DIR).X.i|
|00000ce0| 6e 73 74 61 6c 6c 20 2d | 63 20 2d 6d 20 36 34 34 |nstall -|c -m 644|
|00000cf0| 20 6f 6b 62 72 69 64 67 | 65 2e 68 65 6c 70 20 24 | okbridg|e.help $|
|00000d00| 28 4f 4b 42 52 49 44 47 | 45 5f 48 45 4c 50 46 49 |(OKBRIDG|E_HELPFI|
|00000d10| 4c 45 29 0a 58 0a 58 63 | 6c 65 61 6e 3a 0a 58 09 |LE).X.Xc|lean:.X.|
|00000d20| 72 6d 20 2d 66 20 2a 2e | 6f 20 0a 58 09 72 6d 20 |rm -f *.|o .X.rm |
|00000d30| 2d 66 20 74 6d 70 2a 0a | 58 09 72 6d 20 2d 66 20 |-f tmp*.|X.rm -f |
|00000d40| 6f 6b 62 72 69 64 67 65 | 20 6f 6b 73 68 75 66 66 |okbridge| okshuff|
|00000d50| 6c 65 20 6f 6b 74 61 6c | 6c 79 20 63 6f 72 65 20 |le oktal|ly core |
|00000d60| 74 61 67 73 20 54 41 47 | 53 0a 58 0a 58 64 69 73 |tags TAG|S.X.Xdis|
|00000d70| 74 72 69 62 3a 09 63 6c | 65 61 6e 0a 58 09 09 72 |trib:.cl|ean.X..r|
|00000d80| 6d 20 2d 66 20 68 65 6c | 70 66 69 6c 65 2e 68 20 |m -f hel|pfile.h |
|00000d90| 0a 58 09 09 72 6d 20 2d | 66 20 2a 7e 0a 58 09 09 |.X..rm -|f *~.X..|
|00000da0| 63 73 68 20 2d 66 20 3c | 20 4d 61 6b 65 44 69 73 |csh -f <| MakeDis|
|00000db0| 74 72 69 62 0a 58 0a 58 | 62 72 69 64 67 65 2e 6f |trib.X.X|bridge.o|
|00000dc0| 3a 09 62 72 69 64 67 65 | 2e 63 20 67 6c 6f 62 61 |:.bridge|.c globa|
|00000dd0| 6c 73 2e 68 20 70 73 2e | 68 20 64 69 73 70 6c 61 |ls.h ps.|h displa|
|00000de0| 79 2e 68 20 69 6e 70 75 | 74 2e 68 20 6e 65 74 77 |y.h inpu|t.h netw|
|00000df0| 6f 72 6b 2e 68 5c 0a 58 | 09 09 74 65 72 6d 69 6e |ork.h\.X|..termin|
|00000e00| 61 6c 2e 68 20 68 65 6c | 70 2e 68 20 73 63 6f 72 |al.h hel|p.h scor|
|00000e10| 69 6e 67 2e 68 0a 58 0a | 58 63 6f 64 65 2e 6f 3a |ing.h.X.|Xcode.o:|
|00000e20| 09 09 63 6f 64 65 2e 68 | 20 63 6f 64 65 2e 63 0a |..code.h| code.c.|
|00000e30| 58 0a 58 64 69 73 70 6c | 61 79 2e 6f 3a 09 64 69 |X.Xdispl|ay.o:.di|
|00000e40| 73 70 6c 61 79 2e 68 20 | 64 69 73 70 6c 61 79 2e |splay.h |display.|
|00000e50| 63 20 67 6c 6f 62 61 6c | 73 2e 68 20 74 65 72 6d |c global|s.h term|
|00000e60| 69 6e 61 6c 2e 68 0a 58 | 0a 58 65 6d 61 69 6c 2e |inal.h.X|.Xemail.|
|00000e70| 6f 3a 09 65 6d 61 69 6c | 2e 68 20 65 6d 61 69 6c |o:.email|.h email|
|00000e80| 2e 63 20 63 6f 64 65 2e | 68 0a 58 0a 58 68 65 6c |.c code.|h.X.Xhel|
|00000e90| 70 2e 6f 3a 09 09 68 65 | 6c 70 2e 68 20 68 65 6c |p.o:..he|lp.h hel|
|00000ea0| 70 2e 63 20 67 6c 6f 62 | 61 6c 73 2e 68 20 70 73 |p.c glob|als.h ps|
|00000eb0| 2e 68 20 69 6e 70 75 74 | 2e 68 20 74 65 72 6d 69 |.h input|.h termi|
|00000ec0| 6e 61 6c 2e 68 20 68 65 | 6c 70 66 69 6c 65 2e 68 |nal.h he|lpfile.h|
|00000ed0| 0a 58 0a 58 69 6e 70 75 | 74 2e 6f 3a 09 69 6e 70 |.X.Xinpu|t.o:.inp|
|00000ee0| 75 74 2e 68 20 69 6e 70 | 75 74 2e 63 20 67 6c 6f |ut.h inp|ut.c glo|
|00000ef0| 62 61 6c 73 2e 68 20 70 | 73 2e 68 20 6e 65 74 77 |bals.h p|s.h netw|
|00000f00| 6f 72 6b 2e 68 20 74 65 | 72 6d 69 6e 61 6c 2e 68 |ork.h te|rminal.h|
|00000f10| 20 64 69 73 70 6c 61 79 | 2e 68 5c 0a 58 09 09 68 | display|.h\.X..h|
|00000f20| 65 6c 70 2e 68 20 69 6e | 70 75 74 2e 68 0a 58 0a |elp.h in|put.h.X.|
|00000f30| 58 6e 65 74 77 6f 72 6b | 2e 6f 3a 09 6e 65 74 77 |Xnetwork|.o:.netw|
|00000f40| 6f 72 6b 2e 68 20 6e 65 | 74 77 6f 72 6b 2e 63 20 |ork.h ne|twork.c |
|00000f50| 67 6c 6f 62 61 6c 73 2e | 68 20 73 6f 63 6b 65 74 |globals.|h socket|
|00000f60| 2e 63 0a 58 0a 58 70 73 | 2e 6f 3a 09 09 70 73 2e |.c.X.Xps|.o:..ps.|
|00000f70| 68 20 70 73 2e 63 0a 58 | 0a 58 73 6f 63 6b 65 74 |h ps.c.X|.Xsocket|
|00000f80| 2e 6f 3a 09 73 6f 63 6b | 65 74 2e 63 0a 58 0a 58 |.o:.sock|et.c.X.X|
|00000f90| 73 63 6f 72 69 6e 67 2e | 6f 3a 09 73 63 6f 72 69 |scoring.|o:.scori|
|00000fa0| 6e 67 2e 68 20 73 63 6f | 72 69 6e 67 2e 63 20 67 |ng.h sco|ring.c g|
|00000fb0| 6c 6f 62 61 6c 73 2e 68 | 0a 58 0a 58 73 74 61 72 |lobals.h|.X.Xstar|
|00000fc0| 74 75 70 2e 6f 3a 09 67 | 6c 6f 62 61 6c 73 2e 68 |tup.o:.g|lobals.h|
|00000fd0| 0a 58 0a 58 74 65 72 6d | 69 6e 61 6c 2e 6f 3a 09 |.X.Xterm|inal.o:.|
|00000fe0| 74 65 72 6d 69 6e 61 6c | 2e 68 20 74 65 72 6d 69 |terminal|.h termi|
|00000ff0| 6e 61 6c 2e 63 0a 58 0a | 58 68 65 6c 70 66 69 6c |nal.c.X.|Xhelpfil|
|00001000| 65 2e 68 3a 0a 58 09 09 | 65 63 68 6f 20 27 63 68 |e.h:.X..|echo 'ch|
|00001010| 61 72 20 2a 68 65 6c 70 | 5f 66 69 6c 65 5f 6e 61 |ar *help|_file_na|
|00001020| 6d 65 3d 22 27 24 28 4f | 4b 42 52 49 44 47 45 5f |me="'$(O|KBRIDGE_|
|00001030| 48 45 4c 50 46 49 4c 45 | 29 27 22 3b 27 20 5c 0a |HELPFILE|)'";' \.|
|00001040| 58 09 09 3e 20 68 65 6c | 70 66 69 6c 65 2e 68 0a |X..> hel|pfile.h.|
|00001050| 58 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |X.END_OF|_FILE.if|
|00001060| 20 74 65 73 74 20 32 37 | 35 36 20 2d 6e 65 20 60 | test 27|56 -ne `|
|00001070| 77 63 20 2d 63 20 3c 27 | 4d 61 6b 65 66 69 6c 65 |wc -c <'|Makefile|
|00001080| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00001090| 6f 20 73 68 61 72 3a 20 | 5c 22 27 4d 61 6b 65 66 |o shar: |\"'Makef|
|000010a0| 69 6c 65 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |ile'\" u|npacked |
|000010b0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000010c0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 4d 61 |.fi.# en|d of 'Ma|
|000010d0| 6b 65 66 69 6c 65 27 0a | 66 69 0a 69 66 20 74 65 |kefile'.|fi.if te|
|000010e0| 73 74 20 2d 66 20 27 52 | 65 76 69 73 69 6f 6e 73 |st -f 'R|evisions|
|000010f0| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00001100| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00001110| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00001120| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00001130| 6e 67 20 66 69 6c 65 20 | 5c 22 27 52 65 76 69 73 |ng file |\"'Revis|
|00001140| 69 6f 6e 73 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |ions'\".|else.ech|
|00001150| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00001160| 6e 67 20 5c 22 27 52 65 | 76 69 73 69 6f 6e 73 27 |ng \"'Re|visions'|
|00001170| 5c 22 20 5c 28 32 38 35 | 33 20 63 68 61 72 61 63 |\" \(285|3 charac|
|00001180| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00001190| 2f 2f 22 20 3e 27 52 65 | 76 69 73 69 6f 6e 73 27 |//" >'Re|visions'|
|000011a0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000011b0| 0a 58 54 68 69 73 20 66 | 69 6c 65 20 6e 6f 74 65 |.XThis f|ile note|
|000011c0| 73 20 74 68 65 20 63 68 | 61 6e 67 65 73 20 74 68 |s the ch|anges th|
|000011d0| 61 74 20 68 61 76 65 20 | 62 65 65 6e 20 6d 61 64 |at have |been mad|
|000011e0| 65 20 66 6f 72 20 65 61 | 63 68 20 72 65 76 69 73 |e for ea|ch revis|
|000011f0| 69 6f 6e 0a 58 6f 66 20 | 6f 6b 62 72 69 64 67 65 |ion.Xof |okbridge|
|00001200| 2e 20 20 4d 79 20 61 70 | 6f 6c 6f 67 69 65 73 20 |. My ap|ologies |
|00001210| 66 6f 72 20 6e 6f 74 20 | 73 74 61 72 74 69 6e 67 |for not |starting|
|00001220| 20 74 68 69 73 20 6c 69 | 73 74 20 65 61 72 6c 69 | this li|st earli|
|00001230| 65 72 2e 0a 58 0a 58 31 | 2e 35 51 0a 58 20 20 2d |er..X.X1|.5Q.X -|
|00001240| 20 41 64 64 65 64 20 73 | 6f 6d 65 20 63 6f 64 65 | Added s|ome code|
|00001250| 20 74 6f 20 61 6c 6c 6f | 77 20 76 65 72 73 69 6f | to allo|w versio|
|00001260| 6e 20 31 2e 35 50 20 74 | 6f 20 63 6f 6d 70 69 6c |n 1.5P t|o compil|
|00001270| 65 20 63 6f 72 72 65 63 | 74 6c 79 0a 58 20 20 20 |e correc|tly.X |
|00001280| 20 75 6e 64 65 72 20 41 | 49 58 2e 0a 58 0a 58 31 | under A|IX..X.X1|
|00001290| 2e 35 51 0a 58 20 20 2d | 20 4d 6f 64 69 66 69 65 |.5Q.X -| Modifie|
|000012a0| 64 20 74 68 65 20 27 2f | 63 6c 61 69 6d 27 20 63 |d the '/|claim' c|
|000012b0| 6f 6d 6d 61 6e 64 20 73 | 6f 20 74 68 61 74 20 69 |ommand s|o that i|
|000012c0| 66 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |f the nu|mber of |
|000012d0| 74 72 69 63 6b 73 20 69 | 73 20 6f 6d 69 74 74 65 |tricks i|s omitte|
|000012e0| 64 2c 0a 58 20 20 20 20 | 74 68 65 6e 20 61 6c 6c |d,.X |then all|
|000012f0| 20 72 65 6d 61 69 6e 69 | 6e 67 20 74 72 69 63 6b | remaini|ng trick|
|00001300| 73 20 61 72 65 20 63 6c | 61 69 6d 65 64 2e 0a 58 |s are cl|aimed..X|
|00001310| 20 20 2d 20 41 64 64 65 | 64 20 27 5e 54 27 20 63 | - Adde|d '^T' c|
|00001320| 6f 6e 74 72 6f 6c 20 6b | 65 79 20 74 6f 20 66 6f |ontrol k|ey to fo|
|00001330| 72 63 65 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |rce the |program |
|00001340| 69 6e 74 6f 20 54 41 4c | 4b 20 6d 6f 64 65 20 77 |into TAL|K mode w|
|00001350| 68 65 6e 0a 58 20 20 20 | 20 69 74 20 69 73 20 65 |hen.X | it is e|
|00001360| 78 70 65 63 74 69 6e 67 | 20 61 20 62 69 64 20 6f |xpecting| a bid o|
|00001370| 72 20 70 6c 61 79 2e 0a | 58 20 20 2d 20 41 64 64 |r play..|X - Add|
|00001380| 65 64 20 73 6f 6d 65 20 | 63 6f 64 65 20 74 6f 20 |ed some |code to |
|00001390| 61 6c 6c 6f 77 20 76 65 | 72 73 69 6f 6e 20 31 2e |allow ve|rsion 1.|
|000013a0| 35 50 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 63 6f |5P to co|mpile co|
|000013b0| 72 72 65 63 74 6c 79 0a | 58 20 20 20 20 75 6e 64 |rrectly.|X und|
|000013c0| 65 72 20 41 49 58 2e 0a | 58 20 20 2d 20 43 6f 72 |er AIX..|X - Cor|
|000013d0| 72 65 63 74 65 64 20 74 | 68 65 20 62 75 67 20 77 |rected t|he bug w|
|000013e0| 68 69 63 68 20 63 61 75 | 73 65 73 20 74 68 65 20 |hich cau|ses the |
|000013f0| 70 72 6f 67 72 61 6d 20 | 74 6f 20 63 72 61 73 68 |program |to crash|
|00001400| 20 77 68 65 6e 20 61 20 | 63 6c 69 65 6e 74 0a 58 | when a |client.X|
|00001410| 20 20 20 20 61 74 74 65 | 6d 70 74 73 20 74 6f 20 | atte|mpts to |
|00001420| 6f 63 63 75 70 79 20 74 | 68 65 20 73 65 61 74 20 |occupy t|he seat |
|00001430| 74 61 6b 65 6e 20 62 79 | 20 74 68 65 20 73 65 72 |taken by| the ser|
|00001440| 76 65 72 2e 0a 58 20 20 | 2d 20 43 6f 72 72 65 63 |ver..X |- Correc|
|00001450| 74 65 64 20 73 6f 6d 65 | 20 61 72 72 61 79 20 73 |ted some| array s|
|00001460| 69 7a 65 73 20 69 6e 20 | 63 6f 64 65 2e 63 2c 20 |izes in |code.c, |
|00001470| 74 68 75 73 20 66 69 78 | 69 6e 67 20 74 68 65 20 |thus fix|ing the |
|00001480| 0a 58 20 20 20 20 22 6e | 6f 72 74 68 20 74 65 72 |.X "n|orth ter|
|00001490| 6d 69 6e 61 6c 20 70 72 | 6f 62 6c 65 6d 22 2e 0a |minal pr|oblem"..|
|000014a0| 58 0a 58 31 2e 35 50 0a | 58 20 20 2d 20 57 72 69 |X.X1.5P.|X - Wri|
|000014b0| 74 65 73 20 74 68 65 20 | 5a 68 61 6e 67 20 6c 6f |tes the |Zhang lo|
|000014c0| 67 20 66 69 6c 65 20 65 | 76 65 6e 20 69 66 20 61 |g file e|ven if a|
|000014d0| 6c 6c 20 70 6c 61 79 65 | 72 73 20 70 61 73 73 2e |ll playe|rs pass.|
|000014e0| 0a 58 20 20 2d 20 41 64 | 64 65 64 20 74 68 65 20 |.X - Ad|ded the |
|000014f0| 2d 52 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |-R comma|nd line |
|00001500| 6f 70 74 69 6f 6e 20 66 | 6f 72 20 72 75 62 62 65 |option f|or rubbe|
|00001510| 72 20 62 72 69 64 67 65 | 2e 0a 58 20 20 2d 20 43 |r bridge|..X - C|
|00001520| 68 61 6e 67 65 64 20 74 | 68 65 20 6e 61 6d 65 73 |hanged t|he names|
|00001530| 20 6f 66 20 73 68 75 66 | 66 6c 65 20 61 6e 64 20 | of shuf|fle and |
|00001540| 74 61 6c 6c 79 20 74 6f | 20 6f 6b 73 68 75 66 66 |tally to| okshuff|
|00001550| 6c 65 20 61 6e 64 20 6f | 6b 74 61 6c 6c 79 2e 0a |le and o|ktally..|
|00001560| 58 20 20 2d 20 41 64 64 | 65 64 20 74 68 65 20 2d |X - Add|ed the -|
|00001570| 64 20 70 61 72 61 6d 65 | 74 65 72 20 74 6f 20 74 |d parame|ter to t|
|00001580| 68 65 20 73 68 75 66 66 | 6c 65 20 63 6f 6d 6d 61 |he shuff|le comma|
|00001590| 6e 64 20 66 6f 72 20 70 | 72 69 6e 74 69 6e 67 20 |nd for p|rinting |
|000015a0| 74 68 65 20 64 61 74 65 | 0a 58 20 20 20 20 74 6f |the date|.X to|
|000015b0| 20 74 68 65 20 64 65 61 | 6c 73 20 66 69 6c 65 2e | the dea|ls file.|
|000015c0| 0a 58 20 20 2d 20 57 72 | 69 74 65 73 20 74 68 65 |.X - Wr|ites the|
|000015d0| 20 64 61 74 65 20 74 6f | 20 62 6f 74 68 20 74 79 | date to| both ty|
|000015e0| 70 65 73 20 6f 66 20 6c | 6f 67 20 66 69 6c 65 73 |pes of l|og files|
|000015f0| 2e 0a 58 20 20 2d 20 41 | 63 63 65 70 74 73 20 74 |..X - A|ccepts t|
|00001600| 68 65 20 2d 73 20 70 61 | 72 61 6d 65 74 65 72 20 |he -s pa|rameter |
|00001610| 6f 6e 20 74 68 65 20 74 | 61 6c 6c 79 20 63 6f 6d |on the t|ally com|
|00001620| 6d 61 6e 64 20 66 6f 72 | 20 73 6b 69 70 70 69 6e |mand for| skippin|
|00001630| 67 20 64 65 61 6c 73 2e | 0a 58 20 20 2d 20 41 63 |g deals.|.X - Ac|
|00001640| 63 65 70 74 73 20 22 2d | 22 20 61 73 20 61 20 66 |cepts "-|" as a f|
|00001650| 69 6c 65 6e 61 6d 65 20 | 70 61 72 61 6d 65 74 65 |ilename |paramete|
|00001660| 72 20 6f 6e 20 74 68 65 | 20 74 61 6c 6c 79 20 63 |r on the| tally c|
|00001670| 6f 6d 6d 61 6e 64 20 66 | 6f 72 0a 58 20 20 20 20 |ommand f|or.X |
|00001680| 73 70 65 63 69 66 79 69 | 6e 67 20 73 74 61 6e 64 |specifyi|ng stand|
|00001690| 61 72 64 20 69 6e 70 75 | 74 2e 0a 58 0a 58 31 2e |ard inpu|t..X.X1.|
|000016a0| 35 4e 0a 58 20 20 2d 20 | 41 64 64 65 64 20 74 68 |5N.X - |Added th|
|000016b0| 65 20 2d 7a 20 6f 70 74 | 69 6f 6e 20 66 6f 72 20 |e -z opt|ion for |
|000016c0| 67 65 6e 65 72 61 74 69 | 6e 67 20 6c 6f 67 20 66 |generati|ng log f|
|000016d0| 69 6c 65 73 20 69 6e 20 | 74 68 65 20 66 6f 72 6d |iles in |the form|
|000016e0| 61 74 20 75 73 65 64 0a | 58 20 20 20 20 62 79 20 |at used.|X by |
|000016f0| 53 2e 20 5a 68 61 6e 67 | 27 73 20 6f 6b 62 64 20 |S. Zhang|'s okbd |
|00001700| 70 72 6f 67 72 61 6d 2e | 0a 58 20 20 2d 20 49 6d |program.|.X - Im|
|00001710| 70 72 6f 76 65 64 20 74 | 68 65 20 65 72 72 6f 72 |proved t|he error|
|00001720| 20 68 61 6e 64 6c 69 6e | 67 20 77 68 65 6e 20 61 | handlin|g when a|
|00001730| 6e 20 69 6e 63 6f 6d 70 | 61 74 69 62 6c 65 20 63 |n incomp|atible c|
|00001740| 6c 69 65 6e 74 20 0a 58 | 20 20 20 20 69 73 20 72 |lient .X| is r|
|00001750| 65 63 6f 67 6e 69 7a 65 | 64 2e 0a 58 20 20 2d 20 |ecognize|d..X - |
|00001760| 53 63 72 65 65 6e 20 72 | 65 66 72 65 73 68 65 73 |Screen r|efreshes|
|00001770| 20 6e 6f 77 20 68 61 6e | 64 6c 65 64 20 70 72 6f | now han|dled pro|
|00001780| 70 65 72 6c 79 20 64 75 | 72 69 6e 67 20 72 65 76 |perly du|ring rev|
|00001790| 69 65 77 20 6f 66 20 74 | 68 65 20 68 61 6e 64 2e |iew of t|he hand.|
|000017a0| 0a 58 0a 58 31 2e 35 4d | 20 72 65 6c 65 61 73 65 |.X.X1.5M| release|
|000017b0| 64 20 44 65 63 2e 20 38 | 2c 20 31 39 39 31 0a 58 |d Dec. 8|, 1991.X|
|000017c0| 20 20 2d 20 41 64 64 65 | 64 20 74 68 65 20 2d 72 | - Adde|d the -r|
|000017d0| 2c 20 2d 6c 20 61 6e 64 | 20 2d 4c 20 70 61 72 61 |, -l and| -L para|
|000017e0| 6d 65 74 65 72 73 20 74 | 6f 20 74 68 65 20 63 6f |meters t|o the co|
|000017f0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 77 68 69 63 68 |mmand li|ne which|
|00001800| 20 65 6d 75 6c 61 74 65 | 0a 58 20 20 20 20 74 68 | emulate|.X th|
|00001810| 65 20 2f 52 45 50 4c 41 | 59 2c 20 2f 4c 4f 41 44 |e /REPLA|Y, /LOAD|
|00001820| 20 61 6e 64 20 2f 4c 4f | 47 20 63 6f 6d 6d 61 6e | and /LO|G comman|
|00001830| 64 73 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |ds, resp|ectively|
|00001840| 2e 0a 58 20 20 2d 20 66 | 69 78 65 64 20 61 20 62 |..X - f|ixed a b|
|00001850| 75 67 20 69 6e 20 74 68 | 65 20 6e 65 74 77 6f 72 |ug in th|e networ|
|00001860| 6b 20 63 6f 64 65 20 68 | 61 76 69 6e 67 20 74 6f |k code h|aving to|
|00001870| 20 64 6f 20 77 69 74 68 | 20 68 61 6e 64 6c 69 6e | do with| handlin|
|00001880| 67 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 0a 58 20 20 |g connec|tion.X |
|00001890| 20 20 72 65 71 75 65 73 | 74 73 20 61 66 74 65 72 | reques|ts after|
|000018a0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 70 6c 61 79 | one of |the play|
|000018b0| 65 72 73 20 68 61 73 20 | 64 69 73 63 6f 6e 6e 65 |ers has |disconne|
|000018c0| 63 74 65 64 2e 0a 58 20 | 20 2d 20 49 6e 63 6f 72 |cted..X | - Incor|
|000018d0| 70 6f 72 61 74 65 64 20 | 5a 68 65 6e 6a 75 6e 20 |porated |Zhenjun |
|000018e0| 57 75 27 73 20 63 6f 64 | 65 20 66 6f 72 20 63 6f |Wu's cod|e for co|
|000018f0| 6d 70 75 74 69 6e 67 20 | 49 4d 50 20 73 63 6f 72 |mputing |IMP scor|
|00001900| 65 73 2e 0a 58 20 20 2d | 20 41 64 64 65 64 20 74 |es..X -| Added t|
|00001910| 68 65 20 2f 52 45 56 49 | 45 57 20 63 6f 6d 6d 61 |he /REVI|EW comma|
|00001920| 6e 64 20 66 6f 72 20 72 | 65 76 69 65 77 69 6e 67 |nd for r|eviewing|
|00001930| 20 74 68 65 20 62 69 64 | 64 69 6e 67 2e 0a 58 20 | the bid|ding..X |
|00001940| 20 2d 20 41 64 64 65 64 | 20 74 68 65 20 2f 44 45 | - Added| the /DE|
|00001950| 46 41 55 4c 54 20 63 6f | 6d 6d 61 6e 64 20 66 6f |FAULT co|mmand fo|
|00001960| 72 20 64 69 73 61 62 6c | 69 6e 67 20 64 65 66 61 |r disabl|ing defa|
|00001970| 75 6c 74 20 69 6e 70 75 | 74 73 2e 0a 58 20 20 2d |ult inpu|ts..X -|
|00001980| 20 41 64 64 65 64 20 63 | 6f 6e 74 72 6f 6c 2d 63 | Added c|ontrol-c|
|00001990| 68 61 72 61 63 74 65 72 | 20 65 71 75 69 76 61 6c |haracter| equival|
|000019a0| 65 6e 74 73 20 66 6f 72 | 20 74 68 65 20 2f 42 45 |ents for| the /BE|
|000019b0| 4c 4c 2c 20 2f 44 45 46 | 41 55 4c 54 53 2c 0a 58 |LL, /DEF|AULTS,.X|
|000019c0| 20 20 20 20 2f 50 52 4f | 4d 50 54 20 61 6e 64 20 | /PRO|MPT and |
|000019d0| 2f 52 45 56 49 45 57 20 | 63 6f 6d 6d 61 6e 64 73 |/REVIEW |commands|
|000019e0| 2e 0a 58 20 20 2d 20 49 | 6e 74 72 6f 64 75 63 65 |..X - I|ntroduce|
|000019f0| 73 20 74 68 65 20 27 6f | 6b 62 27 20 73 68 65 6c |s the 'o|kb' shel|
|00001a00| 6c 20 73 63 72 69 70 74 | 20 62 79 20 43 68 61 72 |l script| by Char|
|00001a10| 6c 65 73 20 57 65 6e 20 | 66 6f 72 20 6d 61 6b 69 |les Wen |for maki|
|00001a20| 6e 67 0a 58 20 20 20 20 | 74 68 65 20 73 74 61 72 |ng.X |the star|
|00001a30| 74 75 70 20 6f 66 20 6f | 6b 62 72 69 64 67 65 20 |tup of o|kbridge |
|00001a40| 6d 6f 72 65 20 75 73 65 | 72 20 66 72 69 65 6e 64 |more use|r friend|
|00001a50| 6c 79 2e 0a 58 0a 58 31 | 2e 35 4c 20 0a 58 20 20 |ly..X.X1|.5L .X |
|00001a60| 2d 20 54 68 65 72 65 20 | 77 61 73 20 6e 6f 20 76 |- There |was no v|
|00001a70| 65 72 73 69 6f 6e 20 31 | 2e 35 4c 20 72 65 6c 65 |ersion 1|.5L rele|
|00001a80| 61 73 65 64 2e 0a 58 0a | 58 31 2e 35 4b 0a 58 20 |ased..X.|X1.5K.X |
|00001a90| 20 2d 20 4d 6f 64 69 66 | 69 65 64 20 74 68 65 20 | - Modif|ied the |
|00001aa0| 63 6f 64 69 6e 67 20 6f | 66 20 74 68 65 20 65 6d |coding o|f the em|
|00001ab0| 61 69 6c 20 64 75 70 6c | 69 63 61 74 65 20 66 69 |ail dupl|icate fi|
|00001ac0| 6c 65 73 20 73 6f 20 74 | 68 61 74 20 74 68 65 20 |les so t|hat the |
|00001ad0| 69 6e 69 74 69 61 6c 0a | 58 20 20 20 20 6d 65 73 |initial.|X mes|
|00001ae0| 73 61 67 65 20 73 75 70 | 70 6c 69 65 64 20 62 79 |sage sup|plied by|
|00001af0| 20 74 68 65 20 27 2d 6d | 27 20 70 61 72 61 6d 65 | the '-m|' parame|
|00001b00| 74 65 72 20 74 6f 20 74 | 68 65 20 73 68 75 66 66 |ter to t|he shuff|
|00001b10| 6c 65 20 63 6f 6d 6d 61 | 6e 64 20 61 70 70 65 61 |le comma|nd appea|
|00001b20| 72 73 0a 58 20 20 20 20 | 69 6e 20 70 6c 61 69 6e |rs.X |in plain|
|00001b30| 74 65 78 74 20 69 6e 20 | 74 68 65 20 64 65 61 6c |text in |the deal|
|00001b40| 20 66 69 6c 65 2e 0a 58 | 20 20 2d 20 22 55 6e 66 | file..X| - "Unf|
|00001b50| 69 78 65 64 22 20 74 68 | 65 20 22 62 75 67 22 20 |ixed" th|e "bug" |
|00001b60| 69 6e 20 49 4d 50 20 73 | 63 6f 72 69 6e 67 20 77 |in IMP s|coring w|
|00001b70| 68 69 63 68 20 77 61 73 | 20 22 66 69 78 65 64 22 |hich was| "fixed"|
|00001b80| 20 69 6e 20 76 65 72 73 | 69 6f 6e 20 31 2e 35 4a | in vers|ion 1.5J|
|00001b90| 0a 58 0a 58 31 2e 35 4a | 20 72 65 6c 65 61 73 65 |.X.X1.5J| release|
|00001ba0| 64 20 4e 6f 76 20 31 2c | 20 31 39 39 31 0a 58 20 |d Nov 1,| 1991.X |
|00001bb0| 20 2d 20 46 69 78 65 64 | 20 61 20 62 75 67 20 69 | - Fixed| a bug i|
|00001bc0| 6e 20 74 68 65 20 49 4d | 50 20 73 63 6f 72 69 6e |n the IM|P scorin|
|00001bd0| 67 20 77 68 69 63 68 20 | 63 61 75 73 65 73 20 74 |g which |causes t|
|00001be0| 68 65 20 73 63 6f 72 65 | 73 20 74 6f 20 62 65 20 |he score|s to be |
|00001bf0| 6f 66 66 20 62 79 20 31 | 2e 0a 58 20 20 2d 20 41 |off by 1|..X - A|
|00001c00| 64 64 65 64 20 74 68 65 | 20 27 2d 6d 27 20 70 61 |dded the| '-m' pa|
|00001c10| 72 61 6d 65 74 65 72 20 | 74 6f 20 74 68 65 20 73 |rameter |to the s|
|00001c20| 68 75 66 66 6c 65 20 63 | 6f 6d 6d 61 6e 64 20 66 |huffle c|ommand f|
|00001c30| 6f 72 20 72 65 63 6f 72 | 64 69 6e 67 20 61 6e 0a |or recor|ding an.|
|00001c40| 58 20 20 20 20 69 6e 69 | 74 69 61 6c 20 6d 65 73 |X ini|tial mes|
|00001c50| 73 61 67 65 2e 0a 58 20 | 20 2d 20 45 6c 69 6d 69 |sage..X | - Elimi|
|00001c60| 6e 61 74 65 64 20 75 73 | 65 20 6f 66 20 74 68 65 |nated us|e of the|
|00001c70| 20 6d 6f 72 65 20 6d 6f | 64 65 72 6e 20 27 6c 6f | more mo|dern 'lo|
|00001c80| 6e 67 20 72 61 6e 64 6f | 6d 28 29 27 20 66 75 6e |ng rando|m()' fun|
|00001c90| 63 74 69 6f 6e 20 69 6e | 20 66 61 76 6f 72 0a 58 |ction in| favor.X|
|00001ca0| 20 20 20 20 6f 66 20 74 | 68 65 20 6f 6c 64 65 72 | of t|he older|
|00001cb0| 20 27 69 6e 74 20 72 61 | 6e 64 28 29 27 2e 20 20 | 'int ra|nd()'. |
|00001cc0| 41 74 20 6c 65 61 73 74 | 20 6f 6e 65 20 75 73 65 |At least| one use|
|00001cd0| 72 20 70 6f 69 6e 74 65 | 64 20 6f 75 74 20 74 68 |r pointe|d out th|
|00001ce0| 61 74 0a 58 20 20 20 20 | 27 6c 6f 6e 67 20 72 61 |at.X |'long ra|
|00001cf0| 6e 64 6f 6d 28 29 27 20 | 69 73 20 6e 6f 74 20 61 |ndom()' |is not a|
|00001d00| 76 61 69 6c 61 62 6c 65 | 20 6f 6e 20 68 69 73 20 |vailable| on his |
|00001d10| 73 79 73 74 65 6d 2e 0a | 45 4e 44 5f 4f 46 5f 46 |system..|END_OF_F|
|00001d20| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 32 38 35 33 |ILE.if t|est 2853|
|00001d30| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 52 65 | -ne `wc| -c <'Re|
|00001d40| 76 69 73 69 6f 6e 73 27 | 60 3b 20 74 68 65 6e 0a |visions'|`; then.|
|00001d50| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00001d60| 22 27 52 65 76 69 73 69 | 6f 6e 73 27 5c 22 20 75 |"'Revisi|ons'\" u|
|00001d70| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00001d80| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00001d90| 64 20 6f 66 20 27 52 65 | 76 69 73 69 6f 6e 73 27 |d of 'Re|visions'|
|00001da0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00001db0| 63 6f 64 65 2e 68 27 20 | 2d 61 20 22 24 7b 31 7d |code.h' |-a "${1}|
|00001dc0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00001dd0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00001de0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00001df0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00001e00| 27 63 6f 64 65 2e 68 27 | 5c 22 0a 65 6c 73 65 0a |'code.h'|\".else.|
|00001e10| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00001e20| 63 74 69 6e 67 20 5c 22 | 27 63 6f 64 65 2e 68 27 |cting \"|'code.h'|
|00001e30| 5c 22 20 5c 28 33 35 32 | 33 20 63 68 61 72 61 63 |\" \(352|3 charac|
|00001e40| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00001e50| 2f 2f 22 20 3e 27 63 6f | 64 65 2e 68 27 20 3c 3c |//" >'co|de.h' <<|
|00001e60| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2f |'END_OF_|FILE'.X/|
|00001e70| 2a 20 63 6f 64 65 2e 68 | 0a 58 20 21 20 0a 58 20 |* code.h|.X ! .X |
|00001e80| 21 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |! Copyri|ght (C) |
|00001e90| 31 39 39 30 2c 31 39 39 | 31 20 62 79 20 4d 61 74 |1990,199|1 by Mat|
|00001ea0| 74 68 65 77 20 43 6c 65 | 67 67 0a 58 20 21 20 0a |thew Cle|gg.X ! .|
|00001eb0| 58 20 21 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |X ! This| program|
|00001ec0| 20 6d 61 79 20 62 65 20 | 63 6f 70 69 65 64 20 61 | may be |copied a|
|00001ed0| 6e 64 20 64 69 73 74 72 | 69 62 75 74 65 64 20 66 |nd distr|ibuted f|
|00001ee0| 72 65 65 6c 79 2e 20 20 | 50 6c 65 61 73 65 20 64 |reely. |Please d|
|00001ef0| 6f 20 6e 6f 74 0a 58 20 | 21 20 63 68 61 72 67 65 |o not.X |! charge|
|00001f00| 20 6d 6f 6e 65 79 20 66 | 6f 72 20 74 68 69 73 20 | money f|or this |
|00001f10| 70 72 6f 67 72 61 6d 20 | 6f 72 20 66 6f 72 20 61 |program |or for a|
|00001f20| 6e 79 20 70 72 6f 67 72 | 61 6d 20 64 65 72 69 76 |ny progr|am deriv|
|00001f30| 65 64 20 66 72 6f 6d 20 | 69 74 2e 0a 58 20 21 20 |ed from |it..X ! |
|00001f40| 49 66 20 79 6f 75 20 6d | 6f 64 69 66 79 20 74 68 |If you m|odify th|
|00001f50| 69 73 20 70 72 6f 67 72 | 61 6d 2c 20 74 68 65 6e |is progr|am, then|
|00001f60| 20 69 6e 63 6c 75 64 65 | 20 61 20 6e 6f 74 69 63 | include| a notic|
|00001f70| 65 20 73 74 61 74 69 6e | 67 20 70 6c 61 69 6e 6c |e statin|g plainl|
|00001f80| 79 0a 58 20 21 20 74 68 | 61 74 20 79 6f 75 72 20 |y.X ! th|at your |
|00001f90| 70 72 6f 67 72 61 6d 20 | 69 73 20 64 65 72 69 76 |program |is deriv|
|00001fa0| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 6f 6b 62 72 |ed from |the okbr|
|00001fb0| 69 64 67 65 20 70 72 6f | 67 72 61 6d 20 61 6e 64 |idge pro|gram and|
|00001fc0| 20 69 73 20 6e 6f 74 0a | 58 20 21 20 74 68 65 20 | is not.|X ! the |
|00001fd0| 73 61 6d 65 20 61 73 20 | 74 68 65 20 6f 66 66 69 |same as |the offi|
|00001fe0| 63 69 61 6c 20 6f 6b 62 | 72 69 64 67 65 20 70 72 |cial okb|ridge pr|
|00001ff0| 6f 67 72 61 6d 2e 0a 58 | 20 21 0a 58 20 21 20 49 |ogram..X| !.X ! I|
|00002000| 20 77 65 6c 63 6f 6d 65 | 20 61 6e 79 20 73 75 67 | welcome| any sug|
|00002010| 67 65 73 74 69 6f 6e 73 | 20 66 6f 72 20 69 6d 70 |gestions| for imp|
|00002020| 72 6f 76 65 6d 65 6e 74 | 20 74 6f 20 6f 6b 62 72 |rovement| to okbr|
|00002030| 69 64 67 65 2c 20 61 6e | 64 20 0a 58 20 21 20 49 |idge, an|d .X ! I|
|00002040| 20 77 6f 75 6c 64 20 62 | 65 20 65 73 70 65 63 69 | would b|e especi|
|00002050| 61 6c 6c 79 20 68 61 70 | 70 79 20 74 6f 20 72 65 |ally hap|py to re|
|00002060| 63 65 69 76 65 20 69 6d | 70 72 6f 76 65 64 20 73 |ceive im|proved s|
|00002070| 6f 75 72 63 65 20 63 6f | 64 65 2e 0a 58 20 21 20 |ource co|de..X ! |
|00002080| 49 66 20 79 6f 75 20 68 | 61 76 65 20 63 6f 6d 6d |If you h|ave comm|
|00002090| 65 6e 74 73 20 6f 72 20 | 73 75 67 67 65 73 74 69 |ents or |suggesti|
|000020a0| 6f 6e 73 2c 20 6f 72 20 | 69 66 20 79 6f 75 20 77 |ons, or |if you w|
|000020b0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 0a 58 20 21 |ould lik|e to.X !|
|000020c0| 20 6a 6f 69 6e 20 74 68 | 65 20 6f 6b 62 72 69 64 | join th|e okbrid|
|000020d0| 67 65 20 6d 61 69 6c 69 | 6e 67 20 6c 69 73 74 2c |ge maili|ng list,|
|000020e0| 20 74 68 65 6e 20 77 72 | 69 74 65 20 74 6f 0a 58 | then wr|ite to.X|
|000020f0| 20 21 0a 58 20 21 20 20 | 20 6d 63 6c 65 67 67 40 | !.X ! | mclegg@|
|00002100| 63 73 2e 75 63 73 64 2e | 65 64 75 0a 58 20 21 0a |cs.ucsd.|edu.X !.|
|00002110| 58 20 2a 0a 58 20 2a 20 | 54 68 69 73 20 66 69 6c |X *.X * |This fil|
|00002120| 65 20 70 72 6f 76 69 64 | 65 73 20 64 65 66 69 6e |e provid|es defin|
|00002130| 69 74 69 6f 6e 73 20 66 | 6f 72 20 61 20 6d 6f 64 |itions f|or a mod|
|00002140| 75 6c 65 20 77 68 69 63 | 68 20 69 6d 70 6c 65 6d |ule whic|h implem|
|00002150| 65 6e 74 73 20 61 0a 58 | 20 2a 20 76 65 72 79 20 |ents a.X| * very |
|00002160| 73 69 6d 70 6c 65 20 63 | 69 70 68 65 72 20 74 68 |simple c|ipher th|
|00002170| 61 74 20 69 73 20 75 73 | 65 64 20 74 6f 20 65 6e |at is us|ed to en|
|00002180| 63 6f 64 65 20 63 72 75 | 63 69 61 6c 20 70 61 72 |code cru|cial par|
|00002190| 74 73 20 6f 66 20 74 68 | 65 0a 58 20 2a 20 65 6d |ts of th|e.X * em|
|000021a0| 61 69 6c 20 64 75 70 6c | 69 63 61 74 65 20 66 69 |ail dupl|icate fi|
|000021b0| 6c 65 73 2e 20 20 54 68 | 65 20 70 75 72 70 6f 73 |les. Th|e purpos|
|000021c0| 65 20 6f 66 20 74 68 65 | 20 63 69 70 68 65 72 20 |e of the| cipher |
|000021d0| 69 73 20 74 6f 20 61 6c | 6c 6f 77 0a 58 20 2a 20 |is to al|low.X * |
|000021e0| 65 6d 61 69 6c 20 64 75 | 70 6c 69 63 61 74 65 20 |email du|plicate |
|000021f0| 66 69 6c 65 73 20 74 6f | 20 62 65 20 6d 61 6e 69 |files to| be mani|
|00002200| 70 75 6c 61 74 65 64 20 | 65 61 73 69 6c 79 20 77 |pulated |easily w|
|00002210| 69 74 68 6f 75 74 20 72 | 65 76 65 61 6c 69 6e 67 |ithout r|evealing|
|00002220| 0a 58 20 2a 20 74 68 65 | 69 72 20 63 6f 6e 74 65 |.X * the|ir conte|
|00002230| 6e 74 73 2e 20 20 46 6f | 72 20 64 65 74 61 69 6c |nts. Fo|r detail|
|00002240| 73 20 61 62 6f 75 74 20 | 68 6f 77 20 74 68 65 20 |s about |how the |
|00002250| 63 69 70 68 65 72 20 69 | 73 20 69 6d 70 6c 65 6d |cipher i|s implem|
|00002260| 65 6e 74 65 64 2c 0a 58 | 20 2a 20 73 65 65 20 74 |ented,.X| * see t|
|00002270| 68 65 20 66 69 6c 65 20 | 63 6f 64 65 2e 63 2e 0a |he file |code.c..|
|00002280| 58 20 2a 0a 58 2a 2f 0a | 58 0a 58 74 79 70 65 64 |X *.X*/.|X.Xtyped|
|00002290| 65 66 20 73 74 72 75 63 | 74 20 45 6e 63 6f 64 65 |ef struc|t Encode|
|000022a0| 64 5f 46 69 6c 65 5f 53 | 74 72 75 63 74 20 45 6e |d_File_S|truct En|
|000022b0| 63 6f 64 65 64 5f 46 69 | 6c 65 3b 0a 58 0a 58 65 |coded_Fi|le;.X.Xe|
|000022c0| 78 74 65 72 6e 20 69 6e | 74 20 63 6f 64 65 66 69 |xtern in|t codefi|
|000022d0| 6c 65 5f 6c 69 6e 65 5f | 6e 6f 3b 0a 58 09 2f 2a |le_line_|no;.X./*|
|000022e0| 20 54 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | The num|ber of l|
|000022f0| 69 6e 65 73 20 74 68 61 | 74 20 68 61 76 65 20 62 |ines tha|t have b|
|00002300| 65 65 6e 20 72 65 61 64 | 20 66 72 6f 6d 20 74 68 |een read| from th|
|00002310| 65 20 63 75 72 72 65 6e | 74 0a 58 20 20 20 20 20 |e curren|t.X |
|00002320| 20 20 20 20 20 20 63 6f | 64 65 64 20 66 69 6c 65 | co|ded file|
|00002330| 2e 20 2a 2f 0a 58 0a 58 | 65 78 74 65 72 6e 20 69 |. */.X.X|extern i|
|00002340| 6e 74 20 52 65 73 65 74 | 5f 45 6e 63 6f 64 65 64 |nt Reset|_Encoded|
|00002350| 5f 46 69 6c 65 20 28 29 | 3b 0a 58 2f 2a 0a 58 65 |_File ()|;.X/*.Xe|
|00002360| 78 74 65 72 6e 20 69 6e | 74 20 52 65 73 65 74 5f |xtern in|t Reset_|
|00002370| 45 6e 63 6f 64 65 64 5f | 46 69 6c 65 20 28 66 69 |Encoded_|File (fi|
|00002380| 6c 65 6e 61 6d 65 2c 20 | 63 68 65 63 6b 5f 73 74 |lename, |check_st|
|00002390| 72 69 6e 67 2c 20 65 66 | 29 0a 58 09 63 68 61 72 |ring, ef|).X.char|
|000023a0| 20 2a 66 69 6c 65 6e 61 | 6d 65 2c 20 63 68 65 63 | *filena|me, chec|
|000023b0| 6b 5f 73 74 72 69 6e 67 | 3b 20 45 6e 63 6f 64 65 |k_string|; Encode|
|000023c0| 64 5f 46 69 6c 65 20 2a | 2a 65 66 3b 20 2a 2f 0a |d_File *|*ef; */.|
|000023d0| 58 2f 2a 20 4f 70 65 6e | 73 20 74 68 65 20 6e 61 |X/* Open|s the na|
|000023e0| 6d 65 64 20 66 69 6c 65 | 20 66 6f 72 20 69 6e 70 |med file| for inp|
|000023f0| 75 74 2e 20 20 52 65 74 | 75 72 6e 73 20 61 20 70 |ut. Ret|urns a p|
|00002400| 6f 69 6e 74 65 72 20 74 | 6f 20 61 20 73 74 72 75 |ointer t|o a stru|
|00002410| 63 74 75 72 65 0a 58 20 | 20 20 64 65 73 63 72 69 |cture.X | descri|
|00002420| 62 69 6e 67 20 74 68 65 | 20 6f 70 65 6e 65 64 20 |bing the| opened |
|00002430| 66 69 6c 65 2e 20 20 49 | 66 20 61 6e 20 65 72 72 |file. I|f an err|
|00002440| 6f 72 20 6f 63 63 75 72 | 73 20 69 6e 20 6f 70 65 |or occur|s in ope|
|00002450| 6e 69 6e 67 20 74 68 65 | 0a 58 20 20 20 66 69 6c |ning the|.X fil|
|00002460| 65 2c 20 72 65 74 75 72 | 6e 73 20 2d 31 2c 20 69 |e, retur|ns -1, i|
|00002470| 6e 20 77 68 69 63 68 20 | 63 61 73 65 20 74 68 65 |n which |case the|
|00002480| 20 73 79 73 74 65 6d 20 | 65 72 72 6f 72 20 63 6f | system |error co|
|00002490| 64 65 20 69 73 20 73 74 | 6f 72 65 64 0a 58 20 20 |de is st|ored.X |
|000024a0| 20 69 6e 20 65 72 72 6e | 6f 2e 20 20 52 65 61 64 | in errn|o. Read|
|000024b0| 73 20 6c 69 6e 65 73 20 | 66 72 6f 6d 20 74 68 65 |s lines |from the|
|000024c0| 20 66 69 6c 65 20 75 6e | 74 69 6c 20 61 20 6c 69 | file un|til a li|
|000024d0| 6e 65 20 69 73 20 66 6f | 75 6e 64 20 77 68 69 63 |ne is fo|und whic|
|000024e0| 68 0a 58 20 20 20 6d 61 | 74 63 68 65 73 20 63 68 |h.X ma|tches ch|
|000024f0| 65 63 6b 5f 73 74 72 69 | 6e 67 2e 20 20 49 66 20 |eck_stri|ng. If |
|00002500| 74 68 65 20 63 68 65 63 | 6b 5f 73 74 72 69 6e 67 |the chec|k_string|
|00002510| 20 69 73 20 6e 6f 74 20 | 66 6f 75 6e 64 2c 20 74 | is not |found, t|
|00002520| 68 65 6e 0a 58 20 20 20 | 72 65 74 75 72 6e 73 20 |hen.X |returns |
|00002530| 31 2e 20 20 45 6c 73 65 | 2c 20 72 65 61 64 73 20 |1. Else|, reads |
|00002540| 74 68 65 20 63 69 70 68 | 65 72 5f 65 6e 63 6f 64 |the ciph|er_encod|
|00002550| 69 6e 67 20 66 72 6f 6d | 20 74 68 65 20 66 6f 6c |ing from| the fol|
|00002560| 6c 6f 77 69 6e 67 20 6c | 69 6e 65 2e 0a 58 20 20 |lowing l|ine..X |
|00002570| 20 41 6c 6c 6f 63 61 74 | 65 73 20 61 20 6e 65 77 | Allocat|es a new|
|00002580| 20 45 6e 63 6f 64 65 64 | 5f 46 69 6c 65 20 73 74 | Encoded|_File st|
|00002590| 72 75 63 74 75 72 65 20 | 61 6e 64 20 73 74 6f 72 |ructure |and stor|
|000025a0| 65 73 20 69 74 73 20 6c | 6f 63 61 74 69 6f 6e 20 |es its l|ocation |
|000025b0| 69 6e 20 65 66 2e 0a 58 | 20 20 20 52 65 74 75 72 |in ef..X| Retur|
|000025c0| 6e 73 20 30 20 6f 6e 20 | 73 75 63 63 65 73 73 2e |ns 0 on |success.|
|000025d0| 0a 58 2a 2f 0a 58 0a 58 | 65 78 74 65 72 6e 20 69 |.X*/.X.X|extern i|
|000025e0| 6e 74 20 52 65 61 64 5f | 45 6e 63 6f 64 65 64 5f |nt Read_|Encoded_|
|000025f0| 4c 69 6e 65 20 28 29 3b | 0a 58 2f 2a 0a 58 65 78 |Line ();|.X/*.Xex|
|00002600| 74 65 72 6e 20 69 6e 74 | 20 52 65 61 64 5f 45 6e |tern int| Read_En|
|00002610| 63 6f 64 65 64 5f 4c 69 | 6e 65 20 28 65 66 2c 20 |coded_Li|ne (ef, |
|00002620| 62 75 66 2c 20 62 75 66 | 6c 65 6e 29 0a 58 09 45 |buf, buf|len).X.E|
|00002630| 6e 63 6f 64 65 64 5f 46 | 69 6c 65 20 2a 65 66 3b |ncoded_F|ile *ef;|
|00002640| 20 63 68 61 72 20 2a 62 | 75 66 3b 20 69 6e 74 20 | char *b|uf; int |
|00002650| 62 75 66 6c 65 6e 3b 20 | 2a 2f 0a 58 2f 2a 20 52 |buflen; |*/.X/* R|
|00002660| 65 61 64 73 20 61 20 6c | 69 6e 65 20 6f 66 20 75 |eads a l|ine of u|
|00002670| 70 20 74 6f 20 62 75 66 | 6c 65 6e 20 63 68 61 72 |p to buf|len char|
|00002680| 61 63 74 65 72 73 20 66 | 72 6f 6d 20 74 68 65 20 |acters f|rom the |
|00002690| 65 6e 63 6f 64 65 64 20 | 66 69 6c 65 20 65 66 0a |encoded |file ef.|
|000026a0| 58 20 20 20 69 6e 74 6f | 20 62 75 66 2e 20 20 49 |X into| buf. I|
|000026b0| 66 20 74 68 65 20 66 69 | 72 73 74 20 63 68 61 72 |f the fi|rst char|
|000026c0| 61 63 74 65 72 20 6f 66 | 20 74 68 65 20 6c 69 6e |acter of| the lin|
|000026d0| 65 20 69 73 20 27 21 27 | 2c 20 74 68 65 6e 20 73 |e is '!'|, then s|
|000026e0| 74 72 69 70 73 0a 58 20 | 20 20 74 68 61 74 20 63 |trips.X | that c|
|000026f0| 68 61 72 61 63 74 65 72 | 20 61 6e 64 20 61 70 70 |haracter| and app|
|00002700| 6c 69 65 73 20 74 68 65 | 20 64 65 63 6f 64 69 6e |lies the| decodin|
|00002710| 67 20 61 6c 67 6f 72 69 | 74 68 6d 20 74 6f 20 74 |g algori|thm to t|
|00002720| 68 65 20 72 65 6d 61 69 | 6e 64 65 72 0a 58 20 20 |he remai|nder.X |
|00002730| 20 6f 66 20 74 68 65 20 | 6c 69 6e 65 2e 20 20 4f | of the |line. O|
|00002740| 74 68 65 72 77 69 73 65 | 2c 20 6a 75 73 74 20 63 |therwise|, just c|
|00002750| 6f 70 69 65 73 20 74 68 | 65 20 6c 69 6e 65 20 66 |opies th|e line f|
|00002760| 72 6f 6d 20 74 68 65 20 | 69 6e 70 75 74 20 66 69 |rom the |input fi|
|00002770| 6c 65 0a 58 20 20 20 74 | 6f 20 74 68 65 20 62 75 |le.X t|o the bu|
|00002780| 66 66 65 72 2e 20 20 52 | 65 74 75 72 6e 73 20 74 |ffer. R|eturns t|
|00002790| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he numbe|r of cha|
|000027a0| 72 61 63 74 65 72 73 20 | 72 65 61 64 20 6f 72 20 |racters |read or |
|000027b0| 2d 31 20 69 66 0a 58 20 | 20 20 74 68 65 20 65 6e |-1 if.X | the en|
|000027c0| 64 20 6f 66 20 66 69 6c | 65 20 69 73 20 72 65 61 |d of fil|e is rea|
|000027d0| 63 68 65 64 2e 0a 58 2a | 2f 0a 58 0a 58 65 78 74 |ched..X*|/.X.Xext|
|000027e0| 65 72 6e 20 69 6e 74 20 | 52 65 77 72 69 74 65 5f |ern int |Rewrite_|
|000027f0| 45 6e 63 6f 64 65 64 5f | 46 69 6c 65 20 28 29 3b |Encoded_|File ();|
|00002800| 0a 58 2f 2a 0a 58 65 78 | 74 65 72 6e 20 69 6e 74 |.X/*.Xex|tern int|
|00002810| 20 52 65 77 72 69 74 65 | 5f 45 6e 63 6f 64 65 64 | Rewrite|_Encoded|
|00002820| 5f 46 69 6c 65 20 28 66 | 69 6c 65 6e 61 6d 65 2c |_File (f|ilename,|
|00002830| 20 63 68 65 63 6b 5f 73 | 74 72 69 6e 67 2c 20 65 | check_s|tring, e|
|00002840| 66 29 0a 58 09 63 68 61 | 72 20 2a 66 69 6c 65 6e |f).X.cha|r *filen|
|00002850| 61 6d 65 2c 20 2a 63 68 | 65 63 6b 5f 73 74 72 69 |ame, *ch|eck_stri|
|00002860| 6e 67 3b 20 45 6e 63 6f | 64 65 64 5f 46 69 6c 65 |ng; Enco|ded_File|
|00002870| 20 2a 2a 65 66 3b 20 2a | 2f 0a 58 2f 2a 20 4f 70 | **ef; *|/.X/* Op|
|00002880| 65 6e 73 20 74 68 65 20 | 6e 61 6d 65 64 20 66 69 |ens the |named fi|
|00002890| 6c 65 20 66 6f 72 20 6f | 75 74 70 75 74 2e 20 20 |le for o|utput. |
|000028a0| 52 65 74 75 72 6e 73 20 | 61 20 70 6f 69 6e 74 65 |Returns |a pointe|
|000028b0| 72 20 74 6f 20 61 20 73 | 74 72 75 63 74 75 72 65 |r to a s|tructure|
|000028c0| 0a 58 20 20 20 64 65 73 | 63 72 69 62 69 6e 67 20 |.X des|cribing |
|000028d0| 74 68 65 20 6f 70 65 6e | 65 64 20 66 69 6c 65 2e |the open|ed file.|
|000028e0| 20 20 49 66 20 61 6e 20 | 65 72 72 6f 72 20 6f 63 | If an |error oc|
|000028f0| 63 75 72 73 20 69 6e 20 | 6f 70 65 6e 69 6e 67 20 |curs in |opening |
|00002900| 74 68 65 20 66 69 6c 65 | 2c 0a 58 20 20 20 74 68 |the file|,.X th|
|00002910| 65 6e 20 72 65 74 75 72 | 6e 73 20 2d 31 2c 20 69 |en retur|ns -1, i|
|00002920| 6e 20 77 68 69 63 68 20 | 63 61 73 65 20 74 68 65 |n which |case the|
|00002930| 20 73 79 73 74 65 6d 20 | 65 72 72 6f 72 20 63 6f | system |error co|
|00002940| 64 65 20 69 73 20 73 74 | 6f 72 65 64 0a 58 20 20 |de is st|ored.X |
|00002950| 20 69 6e 20 65 72 72 6e | 6f 2e 20 20 49 6e 76 65 | in errn|o. Inve|
|00002960| 6e 74 73 20 61 20 70 65 | 72 6d 75 74 61 74 69 6f |nts a pe|rmutatio|
|00002970| 6e 20 66 6f 72 20 74 68 | 65 20 6e 65 77 20 65 6e |n for th|e new en|
|00002980| 63 6f 64 65 64 20 66 69 | 6c 65 2e 0a 58 20 20 20 |coded fi|le..X |
|00002990| 57 72 69 74 65 73 20 74 | 68 65 20 63 68 65 63 6b |Writes t|he check|
|000029a0| 5f 73 74 72 69 6e 67 20 | 61 73 20 74 68 65 20 66 |_string |as the f|
|000029b0| 69 72 73 74 20 6c 69 6e | 65 20 6f 66 20 74 68 65 |irst lin|e of the|
|000029c0| 20 6e 65 77 20 66 69 6c | 65 2c 0a 58 20 20 20 61 | new fil|e,.X a|
|000029d0| 6e 64 20 74 68 65 20 70 | 65 72 6d 75 74 61 74 69 |nd the p|ermutati|
|000029e0| 6f 6e 20 61 73 20 74 68 | 65 20 73 65 63 6f 6e 64 |on as th|e second|
|000029f0| 20 6c 69 6e 65 2e 20 20 | 52 65 74 75 72 6e 73 20 | line. |Returns |
|00002a00| 30 20 74 6f 20 69 6e 64 | 69 63 61 74 65 0a 58 20 |0 to ind|icate.X |
|00002a10| 20 20 73 75 63 63 65 73 | 73 2e 0a 58 2a 2f 0a 58 | succes|s..X*/.X|
|00002a20| 0a 58 65 78 74 65 72 6e | 20 69 6e 74 20 57 72 69 |.Xextern| int Wri|
|00002a30| 74 65 5f 45 6e 63 6f 64 | 65 64 5f 4c 69 6e 65 20 |te_Encod|ed_Line |
|00002a40| 28 29 3b 0a 58 2f 2a 0a | 58 65 78 74 65 72 6e 20 |();.X/*.|Xextern |
|00002a50| 69 6e 74 20 57 72 69 74 | 65 5f 45 6e 63 6f 64 65 |int Writ|e_Encode|
|00002a60| 64 5f 4c 69 6e 65 20 28 | 65 66 2c 20 62 75 66 29 |d_Line (|ef, buf)|
|00002a70| 0a 58 09 45 6e 63 6f 64 | 65 64 5f 46 69 6c 65 20 |.X.Encod|ed_File |
|00002a80| 65 66 3b 20 63 68 61 72 | 20 2a 62 75 66 3b 20 2a |ef; char| *buf; *|
|00002a90| 2f 0a 58 2f 2a 20 57 72 | 69 74 65 73 20 74 68 65 |/.X/* Wr|ites the|
|00002aa0| 20 65 6e 63 6f 64 65 64 | 20 76 65 72 73 69 6f 6e | encoded| version|
|00002ab0| 20 6f 66 20 74 68 65 20 | 73 74 72 69 6e 67 20 66 | of the |string f|
|00002ac0| 72 6f 6d 20 62 75 66 20 | 74 6f 20 74 68 65 20 65 |rom buf |to the e|
|00002ad0| 6e 63 6f 64 65 64 0a 58 | 20 20 20 66 69 6c 65 20 |ncoded.X| file |
|00002ae0| 65 66 2e 20 20 52 65 74 | 75 72 6e 73 20 30 20 6f |ef. Ret|urns 0 o|
|00002af0| 6e 20 73 75 63 63 65 73 | 73 20 6f 72 20 31 20 69 |n succes|s or 1 i|
|00002b00| 66 20 74 68 65 20 73 79 | 73 74 65 6d 20 72 65 70 |f the sy|stem rep|
|00002b10| 6f 72 74 73 20 61 6e 20 | 65 72 72 6f 72 2e 0a 58 |orts an |error..X|
|00002b20| 2a 2f 0a 58 0a 58 65 78 | 74 65 72 6e 20 69 6e 74 |*/.X.Xex|tern int|
|00002b30| 20 57 72 69 74 65 5f 55 | 6e 65 6e 63 6f 64 65 64 | Write_U|nencoded|
|00002b40| 5f 4c 69 6e 65 20 28 29 | 3b 0a 58 2f 2a 20 0a 58 |_Line ()|;.X/* .X|
|00002b50| 65 78 74 65 72 6e 20 69 | 6e 74 20 57 72 69 74 65 |extern i|nt Write|
|00002b60| 5f 55 6e 65 6e 63 6f 64 | 65 64 5f 4c 69 6e 65 20 |_Unencod|ed_Line |
|00002b70| 28 65 66 2c 20 62 75 66 | 29 0a 58 09 45 6e 63 6f |(ef, buf|).X.Enco|
|00002b80| 64 65 64 5f 46 69 6c 65 | 20 2a 65 66 3b 20 63 68 |ded_File| *ef; ch|
|00002b90| 61 72 20 2a 62 75 66 3b | 20 2a 2f 0a 58 2f 2a 20 |ar *buf;| */.X/* |
|00002ba0| 57 72 69 74 65 73 20 74 | 68 65 20 75 6e 65 6e 63 |Writes t|he unenc|
|00002bb0| 6f 64 65 64 20 6c 69 6e | 65 20 69 6e 20 62 75 66 |oded lin|e in buf|
|00002bc0| 20 74 6f 20 74 68 65 20 | 66 69 6c 65 20 65 66 2e | to the |file ef.|
|00002bd0| 20 2a 2f 0a 58 0a 58 65 | 78 74 65 72 6e 20 76 6f | */.X.Xe|xtern vo|
|00002be0| 69 64 20 43 6c 6f 73 65 | 5f 45 6e 63 6f 64 65 64 |id Close|_Encoded|
|00002bf0| 5f 46 69 6c 65 20 28 29 | 3b 0a 58 2f 2a 0a 58 76 |_File ()|;.X/*.Xv|
|00002c00| 6f 69 64 20 43 6c 6f 73 | 65 5f 45 6e 63 6f 64 65 |oid Clos|e_Encode|
|00002c10| 64 5f 46 69 6c 65 20 28 | 65 66 29 0a 58 09 45 6e |d_File (|ef).X.En|
|00002c20| 63 6f 64 65 64 5f 46 69 | 6c 65 20 2a 65 66 3b 20 |coded_Fi|le *ef; |
|00002c30| 2a 2f 0a 58 2f 2a 20 43 | 6c 6f 73 65 73 20 74 68 |*/.X/* C|loses th|
|00002c40| 65 20 66 69 6c 65 20 61 | 73 73 6f 63 69 61 74 65 |e file a|ssociate|
|00002c50| 64 20 74 6f 20 65 66 20 | 61 6e 64 20 64 69 73 70 |d to ef |and disp|
|00002c60| 6f 73 65 73 20 6f 66 20 | 74 68 65 20 6d 65 6d 6f |oses of |the memo|
|00002c70| 72 79 0a 58 20 20 20 61 | 73 73 6f 63 69 61 74 65 |ry.X a|ssociate|
|00002c80| 64 20 74 6f 20 65 66 2e | 20 2a 2f 0a 58 0a 45 4e |d to ef.| */.X.EN|
|00002c90| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00002ca0| 74 20 33 35 32 33 20 2d | 6e 65 20 60 77 63 20 2d |t 3523 -|ne `wc -|
|00002cb0| 63 20 3c 27 63 6f 64 65 | 2e 68 27 60 3b 20 74 68 |c <'code|.h'`; th|
|00002cc0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00002cd0| 3a 20 5c 22 27 63 6f 64 | 65 2e 68 27 5c 22 20 75 |: \"'cod|e.h'\" u|
|00002ce0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00002cf0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00002d00| 64 20 6f 66 20 27 63 6f | 64 65 2e 68 27 0a 66 69 |d of 'co|de.h'.fi|
|00002d10| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 64 69 73 |.if test| -f 'dis|
|00002d20| 70 6c 61 79 2e 68 27 20 | 2d 61 20 22 24 7b 31 7d |play.h' |-a "${1}|
|00002d30| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00002d40| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00002d50| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00002d60| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00002d70| 27 64 69 73 70 6c 61 79 | 2e 68 27 5c 22 0a 65 6c |'display|.h'\".el|
|00002d80| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00002d90| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 64 69 73 70 |tracting| \"'disp|
|00002da0| 6c 61 79 2e 68 27 5c 22 | 20 5c 28 35 39 34 34 20 |lay.h'\"| \(5944 |
|00002db0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00002dc0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 64 69 73 70 | "s/^X//|" >'disp|
|00002dd0| 6c 61 79 2e 68 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |lay.h' <|<'END_OF|
|00002de0| 5f 46 49 4c 45 27 0a 58 | 2f 2a 20 64 69 73 70 6c |_FILE'.X|/* displ|
|00002df0| 61 79 2e 68 0a 58 20 21 | 20 0a 58 20 21 20 43 6f |ay.h.X !| .X ! Co|
|00002e00| 70 79 72 69 67 68 74 20 | 28 43 29 20 31 39 39 30 |pyright |(C) 1990|
|00002e10| 2c 31 39 39 31 20 62 79 | 20 4d 61 74 74 68 65 77 |,1991 by| Matthew|
|00002e20| 20 43 6c 65 67 67 0a 58 | 20 21 20 0a 58 20 21 20 | Clegg.X| ! .X ! |
|00002e30| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 6d 61 79 |This pro|gram may|
|00002e40| 20 62 65 20 63 6f 70 69 | 65 64 20 61 6e 64 20 64 | be copi|ed and d|
|00002e50| 69 73 74 72 69 62 75 74 | 65 64 20 66 72 65 65 6c |istribut|ed freel|
|00002e60| 79 2e 20 20 50 6c 65 61 | 73 65 20 64 6f 20 6e 6f |y. Plea|se do no|
|00002e70| 74 0a 58 20 21 20 63 68 | 61 72 67 65 20 6d 6f 6e |t.X ! ch|arge mon|
|00002e80| 65 79 20 66 6f 72 20 74 | 68 69 73 20 70 72 6f 67 |ey for t|his prog|
|00002e90| 72 61 6d 20 6f 72 20 66 | 6f 72 20 61 6e 79 20 70 |ram or f|or any p|
|00002ea0| 72 6f 67 72 61 6d 20 64 | 65 72 69 76 65 64 20 66 |rogram d|erived f|
|00002eb0| 72 6f 6d 20 69 74 2e 0a | 58 20 21 20 49 66 20 79 |rom it..|X ! If y|
|00002ec0| 6f 75 20 6d 6f 64 69 66 | 79 20 74 68 69 73 20 70 |ou modif|y this p|
|00002ed0| 72 6f 67 72 61 6d 2c 20 | 74 68 65 6e 20 69 6e 63 |rogram, |then inc|
|00002ee0| 6c 75 64 65 20 61 20 6e | 6f 74 69 63 65 20 73 74 |lude a n|otice st|
|00002ef0| 61 74 69 6e 67 20 70 6c | 61 69 6e 6c 79 0a 58 20 |ating pl|ainly.X |
|00002f00| 21 20 74 68 61 74 20 79 | 6f 75 72 20 70 72 6f 67 |! that y|our prog|
|00002f10| 72 61 6d 20 69 73 20 64 | 65 72 69 76 65 64 20 66 |ram is d|erived f|
|00002f20| 72 6f 6d 20 74 68 65 20 | 6f 6b 62 72 69 64 67 65 |rom the |okbridge|
|00002f30| 20 70 72 6f 67 72 61 6d | 20 61 6e 64 20 69 73 20 | program| and is |
|00002f40| 6e 6f 74 0a 58 20 21 20 | 74 68 65 20 73 61 6d 65 |not.X ! |the same|
|00002f50| 20 61 73 20 74 68 65 20 | 6f 66 66 69 63 69 61 6c | as the |official|
|00002f60| 20 6f 6b 62 72 69 64 67 | 65 20 70 72 6f 67 72 61 | okbridg|e progra|
|00002f70| 6d 2e 0a 58 20 21 0a 58 | 20 21 20 49 20 77 65 6c |m..X !.X| ! I wel|
|00002f80| 63 6f 6d 65 20 61 6e 79 | 20 73 75 67 67 65 73 74 |come any| suggest|
|00002f90| 69 6f 6e 73 20 66 6f 72 | 20 69 6d 70 72 6f 76 65 |ions for| improve|
|00002fa0| 6d 65 6e 74 20 74 6f 20 | 6f 6b 62 72 69 64 67 65 |ment to |okbridge|
|00002fb0| 2c 20 61 6e 64 20 0a 58 | 20 21 20 49 20 77 6f 75 |, and .X| ! I wou|
|00002fc0| 6c 64 20 62 65 20 65 73 | 70 65 63 69 61 6c 6c 79 |ld be es|pecially|
|00002fd0| 20 68 61 70 70 79 20 74 | 6f 20 72 65 63 65 69 76 | happy t|o receiv|
|00002fe0| 65 20 69 6d 70 72 6f 76 | 65 64 20 73 6f 75 72 63 |e improv|ed sourc|
|00002ff0| 65 20 63 6f 64 65 2e 0a | 58 20 21 20 49 66 20 79 |e code..|X ! If y|
|00003000| 6f 75 20 68 61 76 65 20 | 63 6f 6d 6d 65 6e 74 73 |ou have |comments|
|00003010| 20 6f 72 20 73 75 67 67 | 65 73 74 69 6f 6e 73 2c | or sugg|estions,|
|00003020| 20 6f 72 20 69 66 20 79 | 6f 75 20 77 6f 75 6c 64 | or if y|ou would|
|00003030| 20 6c 69 6b 65 20 74 6f | 0a 58 20 21 20 6a 6f 69 | like to|.X ! joi|
|00003040| 6e 20 74 68 65 20 6f 6b | 62 72 69 64 67 65 20 6d |n the ok|bridge m|
|00003050| 61 69 6c 69 6e 67 20 6c | 69 73 74 2c 20 74 68 65 |ailing l|ist, the|
|00003060| 6e 20 77 72 69 74 65 20 | 74 6f 0a 58 20 21 0a 58 |n write |to.X !.X|
|00003070| 20 21 20 20 20 6d 63 6c | 65 67 67 40 63 73 2e 75 | ! mcl|egg@cs.u|
|00003080| 63 73 64 2e 65 64 75 0a | 58 20 21 0a 58 20 2a 0a |csd.edu.|X !.X *.|
|00003090| 58 20 2a 20 54 68 65 20 | 44 49 53 50 4c 41 59 20 |X * The |DISPLAY |
|000030a0| 6d 6f 64 75 6c 65 20 66 | 6f 72 20 74 68 65 20 62 |module f|or the b|
|000030b0| 72 69 64 67 65 20 70 72 | 6f 67 72 61 6d 20 69 73 |ridge pr|ogram is|
|000030c0| 20 72 65 73 70 6f 6e 73 | 69 62 6c 65 20 66 6f 72 | respons|ible for|
|000030d0| 0a 58 20 2a 20 70 72 65 | 73 65 6e 74 69 6e 67 20 |.X * pre|senting |
|000030e0| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|000030f0| 72 65 67 61 72 64 69 6e | 67 20 76 61 72 69 6f 75 |regardin|g variou|
|00003100| 73 20 61 73 70 65 63 74 | 73 20 6f 66 20 74 68 65 |s aspect|s of the|
|00003110| 0a 58 20 2a 20 67 61 6d | 65 20 74 6f 20 74 68 65 |.X * gam|e to the|
|00003120| 20 73 63 72 65 65 6e 2e | 20 20 54 68 65 20 6f 72 | screen.| The or|
|00003130| 67 61 6e 69 7a 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ganizati|on of th|
|00003140| 65 20 73 63 72 65 65 6e | 20 69 73 20 65 6d 62 65 |e screen| is embe|
|00003150| 64 64 65 64 0a 58 20 2a | 20 77 69 74 68 69 6e 20 |dded.X *| within |
|00003160| 74 68 69 73 20 6d 6f 64 | 75 6c 65 2c 20 61 6e 64 |this mod|ule, and|
|00003170| 20 74 68 65 72 65 20 61 | 72 65 20 65 6e 74 72 79 | there a|re entry|
|00003180| 20 70 6f 69 6e 74 73 20 | 66 6f 72 20 67 69 76 69 | points |for givi|
|00003190| 6e 67 0a 58 20 2a 20 75 | 70 64 61 74 65 73 20 74 |ng.X * u|pdates t|
|000031a0| 6f 20 74 68 65 20 73 63 | 72 65 65 6e 20 61 74 20 |o the sc|reen at |
|000031b0| 65 61 63 68 20 73 74 65 | 70 20 6f 66 20 74 68 65 |each ste|p of the|
|000031c0| 20 67 61 6d 65 2e 0a 58 | 20 2a 0a 58 20 2a 20 54 | game..X| *.X * T|
|000031d0| 68 69 73 20 6d 6f 64 75 | 6c 65 20 64 6f 65 73 20 |his modu|le does |
|000031e0| 6e 6f 74 20 6d 61 6b 65 | 20 61 6e 79 20 63 61 6c |not make| any cal|
|000031f0| 6c 73 20 74 6f 20 74 68 | 65 20 6f 70 65 72 61 74 |ls to th|e operat|
|00003200| 69 6e 67 20 73 79 73 74 | 65 6d 0a 58 20 2a 20 64 |ing syst|em.X * d|
|00003210| 69 72 65 63 74 6c 79 2e | 20 20 49 6e 73 74 65 61 |irectly.| Instea|
|00003220| 64 2c 20 61 6c 6c 20 6f | 66 20 69 74 73 20 6f 75 |d, all o|f its ou|
|00003230| 74 70 75 74 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |tput fun|ctions a|
|00003240| 72 65 20 63 68 61 6e 6e | 65 6c 65 64 0a 58 20 2a |re chann|eled.X *|
|00003250| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 54 45 52 | through| the TER|
|00003260| 4d 49 4e 41 4c 20 6d 6f | 64 75 6c 65 2e 0a 58 20 |MINAL mo|dule..X |
|00003270| 2a 0a 58 20 2a 2f 0a 58 | 20 0a 58 65 78 74 65 72 |*.X */.X| .Xexter|
|00003280| 6e 20 49 6e 69 74 69 61 | 6c 69 7a 65 5f 44 69 73 |n Initia|lize_Dis|
|00003290| 70 6c 61 79 20 28 29 3b | 0a 58 2f 2a 20 53 68 6f |play ();|.X/* Sho|
|000032a0| 75 6c 64 20 62 65 20 63 | 61 6c 6c 65 64 20 6f 6e |uld be c|alled on|
|000032b0| 63 65 20 77 68 65 6e 20 | 74 68 65 20 70 72 6f 67 |ce when |the prog|
|000032c0| 72 61 6d 20 73 74 61 72 | 74 73 20 75 70 2e 20 2a |ram star|ts up. *|
|000032d0| 2f 0a 58 20 0a 58 65 78 | 74 65 72 6e 20 52 65 73 |/.X .Xex|tern Res|
|000032e0| 65 74 5f 44 69 73 70 6c | 61 79 20 28 29 3b 0a 58 |et_Displ|ay ();.X|
|000032f0| 2f 2a 20 52 65 64 72 61 | 77 73 20 74 68 65 20 6d |/* Redra|ws the m|
|00003300| 61 69 6e 20 66 65 61 74 | 75 72 65 73 20 6f 66 20 |ain feat|ures of |
|00003310| 74 68 65 20 73 63 72 65 | 65 6e 2e 20 20 55 73 65 |the scre|en. Use|
|00003320| 64 20 69 6e 20 74 68 65 | 20 70 72 6f 63 65 73 73 |d in the| process|
|00003330| 0a 58 20 20 20 6f 66 20 | 64 6f 69 6e 67 20 61 20 |.X of |doing a |
|00003340| 27 72 65 66 72 65 73 68 | 27 2e 20 2a 2f 0a 58 20 |'refresh|'. */.X |
|00003350| 0a 58 65 78 74 65 72 6e | 20 52 65 66 72 65 73 68 |.Xextern| Refresh|
|00003360| 5f 44 69 73 70 6c 61 79 | 20 28 29 3b 0a 58 2f 2a |_Display| ();.X/*|
|00003370| 20 55 70 64 61 74 65 73 | 20 74 68 65 20 65 6e 74 | Updates| the ent|
|00003380| 69 72 65 20 73 63 72 65 | 65 6e 2e 20 2a 2f 0a 58 |ire scre|en. */.X|
|00003390| 20 0a 58 20 0a 58 2f 2a | 20 54 68 65 20 73 63 6f | .X .X/*| The sco|
|000033a0| 72 69 6e 67 20 64 69 73 | 70 6c 61 79 20 67 69 76 |ring dis|play giv|
|000033b0| 65 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |es infor|mation a|
|000033c0| 62 6f 75 74 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |bout the| followi|
|000033d0| 6e 67 20 61 74 74 72 69 | 62 75 74 65 73 0a 58 20 |ng attri|butes.X |
|000033e0| 2a 20 66 6f 72 20 65 61 | 63 68 20 73 69 64 65 3a |* for ea|ch side:|
|000033f0| 0a 58 20 2a 0a 58 20 2a | 20 2d 2d 20 54 68 65 20 |.X *.X *| -- The |
|00003400| 6e 75 6d 62 65 72 20 6f | 66 20 74 72 69 63 6b 73 |number o|f tricks|
|00003410| 20 74 61 6b 65 6e 20 69 | 6e 20 74 68 65 20 63 75 | taken i|n the cu|
|00003420| 72 72 65 6e 74 20 68 61 | 6e 64 2e 0a 58 20 2a 20 |rrent ha|nd..X * |
|00003430| 2d 2d 20 54 68 65 20 63 | 75 72 72 65 6e 74 20 27 |-- The c|urrent '|
|00003440| 61 62 6f 76 65 20 74 68 | 65 20 6c 69 6e 65 27 20 |above th|e line' |
|00003450| 73 63 6f 72 65 2e 0a 58 | 20 2a 20 2d 2d 20 54 68 |score..X| * -- Th|
|00003460| 65 20 63 75 72 72 65 6e | 74 20 27 62 65 6c 6f 77 |e curren|t 'below|
|00003470| 20 74 68 65 20 6c 69 6e | 65 27 20 73 63 6f 72 65 | the lin|e' score|
|00003480| 2e 0a 58 20 2a 20 2d 2d | 20 54 68 65 20 76 75 6c |..X * --| The vul|
|00003490| 6e 65 72 61 62 69 6c 69 | 74 69 65 73 20 6f 66 20 |nerabili|ties of |
|000034a0| 65 61 63 68 20 73 69 64 | 65 2e 0a 58 20 2a 0a 58 |each sid|e..X *.X|
|000034b0| 20 2a 20 4e 6f 76 2e 20 | 33 2c 20 31 39 39 30 3a | * Nov. |3, 1990:|
|000034c0| 20 54 68 65 20 73 63 6f | 72 69 6e 67 20 64 69 73 | The sco|ring dis|
|000034d0| 70 6c 61 79 20 72 6f 75 | 74 69 6e 65 73 20 68 61 |play rou|tines ha|
|000034e0| 76 65 20 6e 6f 77 20 62 | 65 65 6e 20 72 65 76 69 |ve now b|een revi|
|000034f0| 73 65 64 20 74 6f 0a 58 | 20 2a 20 20 70 72 65 73 |sed to.X| * pres|
|00003500| 65 6e 74 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 |ent the |display |
|00003510| 69 6e 20 74 68 65 20 43 | 68 69 63 61 67 6f 2d 73 |in the C|hicago-s|
|00003520| 63 6f 72 69 6e 67 20 66 | 6f 72 6d 61 74 20 61 73 |coring f|ormat as|
|00003530| 20 77 65 6c 6c 20 61 73 | 20 69 6e 20 74 68 65 0a | well as| in the.|
|00003540| 58 20 2a 20 20 72 75 62 | 62 65 72 2d 73 63 6f 72 |X * rub|ber-scor|
|00003550| 69 6e 67 20 66 6f 72 6d | 61 74 2e 20 20 54 68 65 |ing form|at. The|
|00003560| 20 64 65 63 69 73 69 6f | 6e 20 69 73 20 6d 61 64 | decisio|n is mad|
|00003570| 65 20 62 79 20 69 6e 73 | 70 65 63 74 69 6e 67 20 |e by ins|pecting |
|00003580| 74 68 65 0a 58 20 2a 20 | 20 76 61 72 69 61 62 6c |the.X * | variabl|
|00003590| 65 20 72 75 62 62 65 72 | 5f 73 63 6f 72 69 6e 67 |e rubber|_scoring|
|000035a0| 20 64 65 66 69 6e 65 64 | 20 69 6e 20 67 6c 6f 62 | defined| in glob|
|000035b0| 61 6c 73 2e 68 2e 0a 58 | 20 2a 2f 0a 58 20 0a 58 |als.h..X| */.X .X|
|000035c0| 65 78 74 65 72 6e 20 44 | 69 73 70 6c 61 79 5f 54 |extern D|isplay_T|
|000035d0| 72 69 63 6b 73 5f 54 61 | 6b 65 6e 20 20 20 20 20 |ricks_Ta|ken |
|000035e0| 20 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 44 69 73 | ();.Xex|tern Dis|
|000035f0| 70 6c 61 79 5f 41 62 6f | 76 65 5f 4c 69 6e 65 5f |play_Abo|ve_Line_|
|00003600| 50 6f 69 6e 74 73 20 28 | 29 3b 0a 58 65 78 74 65 |Points (|);.Xexte|
|00003610| 72 6e 20 44 69 73 70 6c | 61 79 5f 42 65 6c 6f 77 |rn Displ|ay_Below|
|00003620| 5f 4c 69 6e 65 5f 50 6f | 69 6e 74 73 20 28 29 3b |_Line_Po|ints ();|
|00003630| 0a 58 65 78 74 65 72 6e | 20 44 69 73 70 6c 61 79 |.Xextern| Display|
|00003640| 5f 56 75 6c 6e 65 72 61 | 62 69 6c 69 74 69 65 73 |_Vulnera|bilities|
|00003650| 20 20 20 28 29 3b 0a 58 | 20 0a 58 20 0a 58 2f 2a | ();.X| .X .X/*|
|00003660| 20 54 68 65 20 62 69 64 | 64 69 6e 67 20 64 69 73 | The bid|ding dis|
|00003670| 70 6c 61 79 20 69 73 20 | 67 69 76 65 6e 20 61 73 |play is |given as|
|00003680| 20 66 6f 75 72 20 63 6f | 6c 75 6d 6e 73 2c 20 73 | four co|lumns, s|
|00003690| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 61 74 20 66 |imilar t|o that f|
|000036a0| 6f 75 6e 64 0a 58 20 2a | 20 69 6e 20 6d 61 6e 79 |ound.X *| in many|
|000036b0| 20 62 72 69 64 67 65 20 | 62 6f 6f 6b 73 2e 20 20 | bridge |books. |
|000036c0| 41 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 65 61 |At the t|op of ea|
|000036d0| 63 68 20 63 6f 6c 75 6d | 6e 20 69 73 20 70 72 69 |ch colum|n is pri|
|000036e0| 6e 74 65 64 20 74 68 65 | 0a 58 20 2a 20 63 6f 72 |nted the|.X * cor|
|000036f0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 69 6e 70 75 74 |respondi|ng input|
|00003700| 20 70 61 72 61 6d 65 74 | 65 72 20 73 74 72 69 6e | paramet|er strin|
|00003710| 67 20 74 6f 20 69 64 65 | 6e 74 69 66 79 20 74 68 |g to ide|ntify th|
|00003720| 65 20 62 69 64 64 65 72 | 2e 0a 58 20 2a 0a 58 20 |e bidder|..X *.X |
|00003730| 2a 20 42 65 66 6f 72 65 | 20 62 69 64 64 69 6e 67 |* Before| bidding|
|00003740| 20 63 61 6e 20 62 65 67 | 69 6e 2c 20 74 68 65 20 | can beg|in, the |
|00003750| 62 69 64 64 69 6e 67 20 | 64 69 73 70 6c 61 79 20 |bidding |display |
|00003760| 6d 75 73 74 20 62 65 20 | 69 6e 69 74 69 61 6c 69 |must be |initiali|
|00003770| 7a 65 64 2e 0a 58 20 2a | 20 54 68 65 6e 2c 20 66 |zed..X *| Then, f|
|00003780| 6f 72 20 65 61 63 68 20 | 62 69 64 2c 20 74 68 61 |or each |bid, tha|
|00003790| 74 20 62 69 64 20 6d 75 | 73 74 20 62 65 20 73 68 |t bid mu|st be sh|
|000037a0| 6f 77 6e 20 6f 6e 20 74 | 68 65 20 64 69 73 70 6c |own on t|he displ|
|000037b0| 61 79 2e 20 20 41 6e 64 | 20 61 66 74 65 72 0a 58 |ay. And| after.X|
|000037c0| 20 2a 20 74 68 65 20 62 | 69 64 73 20 68 61 76 65 | * the b|ids have|
|000037d0| 20 62 65 65 6e 20 6d 61 | 64 65 2c 20 74 68 65 20 | been ma|de, the |
|000037e0| 63 6f 6e 74 72 61 63 74 | 20 6d 75 73 74 20 62 65 |contract| must be|
|000037f0| 20 64 69 73 70 6c 61 79 | 65 64 2e 20 20 54 68 75 | display|ed. Thu|
|00003800| 73 2c 0a 58 20 2a 20 77 | 65 20 68 61 76 65 20 74 |s,.X * w|e have t|
|00003810| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 72 6f |he follo|wing pro|
|00003820| 63 65 64 75 72 65 73 3a | 0a 58 20 2a 0a 58 20 2a |cedures:|.X *.X *|
|00003830| 20 44 69 73 70 6c 61 79 | 5f 42 69 64 64 69 6e 67 | Display|_Bidding|
|00003840| 5f 42 6f 61 72 64 3a 20 | 20 43 61 6c 6c 65 64 20 |_Board: | Called |
|00003850| 74 6f 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 74 68 |to initi|alize th|
|00003860| 65 20 62 69 64 64 69 6e | 67 20 64 69 73 70 6c 61 |e biddin|g displa|
|00003870| 79 2e 0a 58 20 2a 20 20 | 20 54 68 69 73 20 70 72 |y..X * | This pr|
|00003880| 6f 63 65 64 75 72 65 20 | 73 68 6f 75 6c 64 20 62 |ocedure |should b|
|00003890| 65 20 63 61 6c 6c 65 64 | 20 6f 6e 63 65 20 61 74 |e called| once at|
|000038a0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|000038b0| 66 20 74 68 65 20 62 69 | 64 64 69 6e 67 2e 0a 58 |f the bi|dding..X|
|000038c0| 20 2a 0a 58 20 2a 20 44 | 69 73 70 6c 61 79 5f 48 | *.X * D|isplay_H|
|000038d0| 61 6e 64 5f 66 6f 72 5f | 42 69 64 64 69 6e 67 3a |and_for_|Bidding:|
|000038e0| 20 43 61 6c 6c 65 64 20 | 74 6f 20 73 68 6f 77 20 | Called |to show |
|000038f0| 77 68 61 74 20 74 68 65 | 20 6c 6f 63 61 6c 20 70 |what the| local p|
|00003900| 6c 61 79 65 72 20 69 73 | 0a 58 20 2a 20 20 20 68 |layer is|.X * h|
|00003910| 6f 6c 64 69 6e 67 2e 20 | 20 54 68 69 73 20 70 72 |olding. | This pr|
|00003920| 6f 63 65 64 75 72 65 20 | 73 68 6f 75 6c 64 20 62 |ocedure |should b|
|00003930| 65 20 63 61 6c 6c 65 64 | 20 6f 6e 63 65 20 61 66 |e called| once af|
|00003940| 74 65 72 20 74 68 65 20 | 63 61 6c 6c 20 74 6f 0a |ter the |call to.|
|00003950| 58 20 2a 20 20 20 44 69 | 73 70 6c 61 79 5f 42 69 |X * Di|splay_Bi|
|00003960| 64 64 69 6e 67 5f 42 6f | 61 72 64 2e 0a 58 20 2a |dding_Bo|ard..X *|
|00003970| 0a 58 20 2a 20 44 69 73 | 70 6c 61 79 5f 42 69 64 |.X * Dis|play_Bid|
|00003980| 64 65 72 3a 20 20 43 61 | 6c 6c 65 64 20 74 6f 20 |der: Ca|lled to |
|00003990| 73 68 6f 77 20 77 68 6f | 73 65 20 74 75 72 6e 20 |show who|se turn |
|000039a0| 69 74 20 69 73 20 74 6f | 20 62 69 64 20 6e 6f 77 |it is to| bid now|
|000039b0| 2e 0a 58 20 2a 0a 58 20 | 2a 20 44 69 73 70 6c 61 |..X *.X |* Displa|
|000039c0| 79 5f 42 69 64 3a 20 20 | 43 61 6c 6c 65 64 20 74 |y_Bid: |Called t|
|000039d0| 6f 20 73 68 6f 77 20 61 | 20 70 6c 61 79 65 72 27 |o show a| player'|
|000039e0| 73 20 62 69 64 2e 20 20 | 54 68 65 20 63 75 72 72 |s bid. |The curr|
|000039f0| 65 6e 74 20 72 6f 75 6e | 64 20 6f 66 0a 58 20 2a |ent roun|d of.X *|
|00003a00| 20 20 20 62 69 64 64 69 | 6e 67 20 61 6e 64 20 74 | biddi|ng and t|
|00003a10| 68 65 20 70 6c 61 79 65 | 72 20 77 68 6f 20 68 61 |he playe|r who ha|
|00003a20| 73 20 62 69 64 20 61 72 | 65 20 70 61 73 73 65 64 |s bid ar|e passed|
|00003a30| 20 61 73 20 69 6e 70 75 | 74 20 70 61 72 61 6d 65 | as inpu|t parame|
|00003a40| 74 65 72 73 2c 0a 58 20 | 2a 20 20 20 62 75 74 20 |ters,.X |* but |
|00003a50| 74 68 65 20 61 63 74 75 | 61 6c 20 62 69 64 20 69 |the actu|al bid i|
|00003a60| 73 20 72 65 61 64 20 66 | 72 6f 6d 20 74 68 65 20 |s read f|rom the |
|00003a70| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 20 |global v|ariable |
|00003a80| 27 62 69 64 73 27 2e 0a | 58 20 2a 0a 58 20 2a 20 |'bids'..|X *.X * |
|00003a90| 43 6c 65 61 72 5f 42 69 | 64 64 69 6e 67 5f 42 6f |Clear_Bi|dding_Bo|
|00003aa0| 61 72 64 3a 20 20 43 61 | 6c 6c 65 64 20 74 6f 20 |ard: Ca|lled to |
|00003ab0| 65 72 61 73 65 20 74 68 | 65 20 62 69 64 64 69 6e |erase th|e biddin|
|00003ac0| 67 20 64 69 73 70 6c 61 | 79 2e 20 20 54 68 69 73 |g displa|y. This|
|00003ad0| 20 73 68 6f 75 6c 64 0a | 58 20 2a 20 20 20 62 65 | should.|X * be|
|00003ae0| 20 63 61 6c 6c 65 64 20 | 6f 6e 63 65 20 61 66 74 | called |once aft|
|00003af0| 65 72 20 74 68 65 20 61 | 75 63 74 69 6f 6e 20 68 |er the a|uction h|
|00003b00| 61 73 20 63 6f 6e 63 6c | 75 64 65 64 2e 0a 58 20 |as concl|uded..X |
|00003b10| 2a 0a 58 20 2a 20 44 69 | 73 70 6c 61 79 5f 43 6f |*.X * Di|splay_Co|
|00003b20| 6e 74 72 61 63 74 3a 20 | 20 54 6f 20 62 65 20 63 |ntract: | To be c|
|00003b30| 61 6c 6c 65 64 20 61 66 | 74 65 72 20 74 68 65 20 |alled af|ter the |
|00003b40| 61 75 63 74 69 6f 6e 20 | 69 73 20 6f 76 65 72 2e |auction |is over.|
|00003b50| 20 20 54 68 69 73 0a 58 | 20 2a 20 20 20 70 72 6f | This.X| * pro|
|00003b60| 63 65 64 75 72 65 20 64 | 69 73 70 6c 61 79 73 20 |cedure d|isplays |
|00003b70| 74 68 65 20 63 6f 6e 74 | 72 61 63 74 20 77 68 69 |the cont|ract whi|
|00003b80| 63 68 20 68 61 73 20 62 | 65 65 6e 20 64 65 74 65 |ch has b|een dete|
|00003b90| 72 6d 69 6e 65 64 20 62 | 79 20 74 68 65 0a 58 20 |rmined b|y the.X |
|00003ba0| 2a 20 20 20 62 69 64 64 | 69 6e 67 2e 0a 58 20 2a |* bidd|ing..X *|
|00003bb0| 2f 0a 58 20 0a 58 65 78 | 74 65 72 6e 20 44 69 73 |/.X .Xex|tern Dis|
|00003bc0| 70 6c 61 79 5f 42 69 64 | 64 69 6e 67 5f 42 6f 61 |play_Bid|ding_Boa|
|00003bd0| 72 64 20 28 29 3b 0a 58 | 65 78 74 65 72 6e 20 44 |rd ();.X|extern D|
|00003be0| 69 73 70 6c 61 79 5f 48 | 61 6e 64 5f 66 6f 72 5f |isplay_H|and_for_|
|00003bf0| 42 69 64 64 69 6e 67 20 | 28 29 3b 0a 58 65 78 74 |Bidding |();.Xext|
|00003c00| 65 72 6e 20 44 69 73 70 | 6c 61 79 5f 42 69 64 64 |ern Disp|lay_Bidd|
|00003c10| 65 72 20 28 29 3b 0a 58 | 65 78 74 65 72 6e 20 44 |er ();.X|extern D|
|00003c20| 69 73 70 6c 61 79 5f 42 | 69 64 20 28 29 3b 0a 58 |isplay_B|id ();.X|
|00003c30| 65 78 74 65 72 6e 20 43 | 6c 65 61 72 5f 42 69 64 |extern C|lear_Bid|
|00003c40| 64 69 6e 67 5f 42 6f 61 | 72 64 20 28 29 3b 0a 58 |ding_Boa|rd ();.X|
|00003c50| 65 78 74 65 72 6e 20 44 | 69 73 70 6c 61 79 5f 43 |extern D|isplay_C|
|00003c60| 6f 6e 74 72 61 63 74 20 | 28 29 3b 0a 58 20 0a 58 |ontract |();.X .X|
|00003c70| 20 0a 58 2f 2a 20 54 68 | 65 20 70 6c 61 79 69 6e | .X/* Th|e playin|
|00003c80| 67 20 62 6f 61 72 64 20 | 69 73 20 61 20 73 65 70 |g board |is a sep|
|00003c90| 61 72 61 74 65 20 64 69 | 73 70 6c 61 79 20 77 68 |arate di|splay wh|
|00003ca0| 69 63 68 20 72 75 6e 73 | 20 64 75 72 69 6e 67 20 |ich runs| during |
|00003cb0| 74 68 65 20 70 6c 61 79 | 0a 58 20 2a 20 6f 66 20 |the play|.X * of |
|00003cc0| 74 68 65 20 68 61 6e 64 | 73 2e 20 20 49 6e 20 74 |the hand|s. In t|
|00003cd0| 68 65 20 63 65 6e 74 65 | 72 20 6f 66 20 74 68 65 |he cente|r of the|
|00003ce0| 20 73 63 72 65 65 6e 20 | 69 73 20 64 69 73 70 6c | screen |is displ|
|00003cf0| 61 79 65 64 20 61 20 6c | 61 72 67 65 20 73 71 75 |ayed a l|arge squ|
|00003d00| 61 72 65 0a 58 20 2a 20 | 77 68 69 63 68 20 69 73 |are.X * |which is|
|00003d10| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 72 65 70 | suppose|d to rep|
|00003d20| 72 65 73 65 6e 74 20 74 | 68 65 20 74 61 62 6c 65 |resent t|he table|
|00003d30| 74 6f 70 2c 20 61 6e 64 | 20 74 68 65 20 63 61 72 |top, and| the car|
|00003d40| 64 73 20 77 68 69 63 68 | 20 61 72 65 0a 58 20 2a |ds which| are.X *|
|00003d50| 20 70 6c 61 79 65 64 20 | 61 72 65 20 73 68 6f 77 | played |are show|
|00003d60| 6e 20 6f 6e 20 74 68 69 | 73 20 74 61 62 6c 65 20 |n on thi|s table |
|00003d70| 74 6f 70 2e 0a 58 20 2a | 0a 58 20 2a 20 54 68 65 |top..X *|.X * The|
|00003d80| 20 70 6c 61 79 69 6e 67 | 20 70 72 6f 63 65 65 64 | playing| proceed|
|00003d90| 73 20 61 6c 73 6f 20 69 | 6e 20 61 20 73 65 72 69 |s also i|n a seri|
|00003da0| 65 73 20 6f 66 20 73 74 | 61 67 65 73 2e 20 20 46 |es of st|ages. F|
|00003db0| 69 72 73 74 2c 20 74 68 | 65 72 65 20 69 73 20 61 |irst, th|ere is a|
|00003dc0| 6e 0a 58 20 2a 20 69 6e | 69 74 69 61 6c 20 63 61 |n.X * in|itial ca|
|00003dd0| 6c 6c 20 74 6f 20 64 72 | 61 77 20 74 68 65 20 70 |ll to dr|aw the p|
|00003de0| 6c 61 79 69 6e 67 20 62 | 6f 61 72 64 2e 20 20 54 |laying b|oard. T|
|00003df0| 68 65 6e 2c 20 69 6e 20 | 65 61 63 68 20 74 72 69 |hen, in |each tri|
|00003e00| 63 6b 20 74 68 65 72 65 | 20 61 72 65 0a 58 20 2a |ck there| are.X *|
|00003e10| 20 63 61 6c 6c 73 20 74 | 6f 20 73 68 6f 77 20 74 | calls t|o show t|
|00003e20| 68 65 20 63 61 72 64 73 | 20 77 68 69 63 68 20 68 |he cards| which h|
|00003e30| 61 76 65 20 62 65 65 6e | 20 70 6c 61 79 65 64 2e |ave been| played.|
|00003e40| 20 20 41 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 | At the| end of |
|00003e50| 65 61 63 68 0a 58 20 2a | 20 74 72 69 63 6b 2c 20 |each.X *| trick, |
|00003e60| 74 68 65 72 65 20 69 73 | 20 61 20 66 69 6e 61 6c |there is| a final|
|00003e70| 20 63 61 6c 6c 20 74 6f | 20 63 6c 65 61 72 20 74 | call to| clear t|
|00003e80| 68 65 20 63 61 72 64 73 | 20 66 72 6f 6d 20 74 68 |he cards| from th|
|00003e90| 65 20 70 6c 61 79 69 6e | 67 20 62 6f 61 72 64 2e |e playin|g board.|
|00003ea0| 0a 58 20 2a 20 41 6e 64 | 20 61 66 74 65 72 20 61 |.X * And| after a|
|00003eb0| 6c 6c 20 6f 66 20 74 68 | 65 20 74 72 69 63 6b 73 |ll of th|e tricks|
|00003ec0| 20 68 61 76 65 20 62 65 | 65 6e 20 70 6c 61 79 65 | have be|en playe|
|00003ed0| 64 2c 20 74 68 65 20 70 | 6c 61 79 69 6e 67 20 62 |d, the p|laying b|
|00003ee0| 6f 61 72 64 20 69 73 0a | 58 20 2a 20 63 6c 65 61 |oard is.|X * clea|
|00003ef0| 72 65 64 2e 20 20 54 68 | 75 73 2c 20 77 65 20 68 |red. Th|us, we h|
|00003f00| 61 76 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ave the |followin|
|00003f10| 67 20 70 72 6f 63 65 64 | 75 72 65 73 3a 0a 58 20 |g proced|ures:.X |
|00003f20| 2a 0a 58 20 2a 20 44 69 | 73 70 6c 61 79 5f 50 6c |*.X * Di|splay_Pl|
|00003f30| 61 79 69 6e 67 5f 42 6f | 61 72 64 3a 20 20 63 61 |aying_Bo|ard: ca|
|00003f40| 6c 6c 65 64 20 69 6e 69 | 74 69 61 6c 6c 79 20 74 |lled ini|tially t|
|00003f50| 6f 20 64 72 61 77 20 74 | 68 65 20 70 6c 61 79 69 |o draw t|he playi|
|00003f60| 6e 67 20 62 6f 61 72 64 | 2e 0a 58 20 2a 0a 58 20 |ng board|..X *.X |
|00003f70| 2a 20 44 69 73 70 6c 61 | 79 5f 48 61 6e 64 3a 20 |* Displa|y_Hand: |
|00003f80| 20 63 61 6c 6c 65 64 20 | 61 74 20 74 68 65 20 62 | called |at the b|
|00003f90| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 65 61 63 68 |eginning| of each|
|00003fa0| 20 74 72 69 63 6b 20 74 | 6f 20 64 69 73 70 6c 61 | trick t|o displa|
|00003fb0| 79 20 74 68 65 0a 58 20 | 2a 20 20 20 63 6f 6e 74 |y the.X |* cont|
|00003fc0| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 28 6c 6f 63 |ents of |the (loc|
|00003fd0| 61 6c 29 20 70 6c 61 79 | 65 72 27 73 20 68 61 6e |al) play|er's han|
|00003fe0| 64 2e 20 20 54 68 65 20 | 70 6c 61 79 65 72 20 77 |d. The |player w|
|00003ff0| 68 6f 73 65 20 68 61 6e | 64 20 69 73 20 74 6f 0a |hose han|d is to.|
|00004000| 58 20 2a 20 20 20 62 65 | 20 64 69 73 70 6c 61 79 |X * be| display|
|00004010| 65 64 20 69 73 20 70 61 | 73 73 65 64 20 61 73 20 |ed is pa|ssed as |
|00004020| 69 6e 70 75 74 2c 20 6d | 61 69 6e 6c 79 20 61 73 |input, m|ainly as|
|00004030| 20 61 6e 20 61 69 64 20 | 74 6f 20 64 65 62 75 67 | an aid |to debug|
|00004040| 67 69 6e 67 2e 0a 58 20 | 2a 0a 58 20 2a 20 44 69 |ging..X |*.X * Di|
|00004050| 73 70 6c 61 79 5f 50 6c | 61 79 65 72 3a 20 63 61 |splay_Pl|ayer: ca|
|00004060| 6c 6c 65 64 20 62 65 66 | 6f 72 65 20 65 61 63 68 |lled bef|ore each|
|00004070| 20 63 61 72 64 20 69 73 | 20 70 6c 61 79 65 64 20 | card is| played |
|00004080| 74 6f 20 64 69 73 70 6c | 61 79 20 77 68 6f 73 65 |to displ|ay whose|
|00004090| 0a 58 20 2a 20 20 20 69 | 74 20 69 73 20 74 6f 20 |.X * i|t is to |
|000040a0| 70 6c 61 79 20 6e 65 78 | 74 2e 0a 58 20 2a 0a 58 |play nex|t..X *.X|
|000040b0| 20 2a 20 44 69 73 70 6c | 61 79 5f 50 6c 61 79 3a | * Displ|ay_Play:|
|000040c0| 20 20 63 61 6c 6c 65 64 | 20 61 66 74 65 72 20 65 | called| after e|
|000040d0| 61 63 68 20 63 61 72 64 | 20 68 61 73 20 62 65 65 |ach card| has bee|
|000040e0| 6e 20 70 6c 61 79 65 64 | 20 74 6f 20 64 69 73 70 |n played| to disp|
|000040f0| 6c 61 79 20 74 68 65 0a | 58 20 2a 20 20 20 63 61 |lay the.|X * ca|
|00004100| 72 64 20 6f 6e 20 74 68 | 65 20 74 61 62 6c 65 74 |rd on th|e tablet|
|00004110| 6f 70 2e 20 20 54 68 65 | 20 70 6c 61 79 65 72 20 |op. The| player |
|00004120| 61 6e 64 20 74 68 65 20 | 63 61 72 64 20 61 72 65 |and the |card are|
|00004130| 20 70 61 73 73 65 64 20 | 61 73 20 69 6e 70 75 74 | passed |as input|
|00004140| 2e 0a 58 20 2a 0a 58 20 | 2a 20 43 6c 65 61 72 5f |..X *.X |* Clear_|
|00004150| 48 61 6e 64 3a 20 20 63 | 61 6c 6c 65 64 20 69 6e |Hand: c|alled in|
|00004160| 74 65 72 6d 69 74 74 65 | 6e 74 6c 79 20 74 6f 20 |termitte|ntly to |
|00004170| 65 72 61 73 65 20 61 20 | 70 6c 61 79 65 72 27 73 |erase a |player's|
|00004180| 20 68 61 6e 64 20 66 72 | 6f 6d 0a 58 20 2a 20 20 | hand fr|om.X * |
|00004190| 20 74 68 65 20 64 69 73 | 70 6c 61 79 2e 0a 58 20 | the dis|play..X |
|000041a0| 2a 0a 58 20 2a 20 43 6c | 65 61 72 5f 50 6c 61 79 |*.X * Cl|ear_Play|
|000041b0| 73 3a 20 20 63 61 6c 6c | 65 64 20 61 74 20 74 68 |s: call|ed at th|
|000041c0| 65 20 65 6e 64 20 6f 66 | 20 65 61 63 68 20 74 72 |e end of| each tr|
|000041d0| 69 63 6b 20 74 6f 20 63 | 6c 65 61 72 20 74 68 65 |ick to c|lear the|
|000041e0| 20 63 61 72 64 73 20 66 | 72 6f 6d 0a 58 20 2a 20 | cards f|rom.X * |
|000041f0| 20 20 74 68 65 20 74 61 | 62 6c 65 74 6f 70 2e 0a | the ta|bletop..|
|00004200| 58 20 2a 0a 58 20 2a 20 | 43 6c 65 61 72 5f 50 6c |X *.X * |Clear_Pl|
|00004210| 61 79 69 6e 67 5f 42 6f | 61 72 64 3a 20 20 63 61 |aying_Bo|ard: ca|
|00004220| 6c 6c 65 64 20 61 66 74 | 65 72 20 61 6c 6c 20 6f |lled aft|er all o|
|00004230| 66 20 74 68 65 20 74 72 | 69 63 6b 73 20 68 61 76 |f the tr|icks hav|
|00004240| 65 20 62 65 65 6e 20 70 | 6c 61 79 65 64 0a 58 20 |e been p|layed.X |
|00004250| 2a 20 20 20 74 6f 20 63 | 6c 65 61 72 20 74 68 65 |* to c|lear the|
|00004260| 20 27 70 6c 61 79 69 6e | 67 20 62 6f 61 72 64 27 | 'playin|g board'|
|00004270| 20 66 72 6f 6d 20 74 68 | 65 20 73 63 72 65 65 6e | from th|e screen|
|00004280| 2e 0a 58 20 2a 0a 58 20 | 2a 2f 0a 58 20 0a 58 65 |..X *.X |*/.X .Xe|
|00004290| 78 74 65 72 6e 20 44 69 | 73 70 6c 61 79 5f 50 6c |xtern Di|splay_Pl|
|000042a0| 61 79 69 6e 67 5f 42 6f | 61 72 64 20 28 29 3b 0a |aying_Bo|ard ();.|
|000042b0| 58 65 78 74 65 72 6e 20 | 44 69 73 70 6c 61 79 5f |Xextern |Display_|
|000042c0| 48 61 6e 64 20 28 29 3b | 0a 58 65 78 74 65 72 6e |Hand ();|.Xextern|
|000042d0| 20 44 69 73 70 6c 61 79 | 5f 50 6c 61 79 65 72 20 | Display|_Player |
|000042e0| 28 29 3b 0a 58 65 78 74 | 65 72 6e 20 44 69 73 70 |();.Xext|ern Disp|
|000042f0| 6c 61 79 5f 50 6c 61 79 | 20 28 29 3b 0a 58 65 78 |lay_Play| ();.Xex|
|00004300| 74 65 72 6e 20 43 6c 65 | 61 72 5f 50 6c 61 79 73 |tern Cle|ar_Plays|
|00004310| 20 20 28 29 3b 0a 58 65 | 78 74 65 72 6e 20 43 6c | ();.Xe|xtern Cl|
|00004320| 65 61 72 5f 48 61 6e 64 | 20 28 29 3b 0a 58 65 78 |ear_Hand| ();.Xex|
|00004330| 74 65 72 6e 20 43 6c 65 | 61 72 5f 50 6c 61 79 69 |tern Cle|ar_Playi|
|00004340| 6e 67 5f 42 6f 61 72 64 | 20 28 29 3b 0a 58 20 0a |ng_Board| ();.X .|
|00004350| 58 20 0a 58 2f 2a 20 4f | 6e 65 20 6c 69 6e 65 20 |X .X/* O|ne line |
|00004360| 6f 66 20 74 68 65 20 64 | 69 73 70 6c 61 79 20 69 |of the d|isplay i|
|00004370| 73 20 72 65 73 65 72 76 | 65 64 20 66 6f 72 20 64 |s reserv|ed for d|
|00004380| 69 73 70 6c 61 79 69 6e | 67 20 73 70 65 63 69 61 |isplayin|g specia|
|00004390| 6c 20 6d 65 73 73 61 67 | 65 73 20 61 62 6f 75 74 |l messag|es about|
|000043a0| 0a 58 20 2a 20 74 68 65 | 20 73 74 61 74 75 73 20 |.X * the| status |
|000043b0| 6f 66 20 74 68 65 20 67 | 61 6d 65 2e 20 20 54 68 |of the g|ame. Th|
|000043c0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 77 6f 20 |e follow|ing two |
|000043d0| 70 72 6f 63 65 64 75 72 | 65 73 20 61 72 65 20 67 |procedur|es are g|
|000043e0| 69 76 65 6e 20 66 6f 72 | 0a 58 20 2a 20 6d 61 6e |iven for|.X * man|
|000043f0| 69 70 75 6c 61 74 69 6e | 67 20 74 68 69 73 20 64 |ipulatin|g this d|
|00004400| 69 73 70 6c 61 79 2e 0a | 58 20 2a 2f 0a 58 20 0a |isplay..|X */.X .|
|00004410| 58 65 78 74 65 72 6e 20 | 44 69 73 70 6c 61 79 5f |Xextern |Display_|
|00004420| 53 74 61 74 75 73 20 28 | 29 3b 0a 58 65 78 74 65 |Status (|);.Xexte|
|00004430| 72 6e 20 43 6c 65 61 72 | 5f 53 74 61 74 75 73 5f |rn Clear|_Status_|
|00004440| 44 69 73 70 6c 61 79 20 | 28 29 3b 0a 58 20 0a 58 |Display |();.X .X|
|00004450| 20 0a 58 2f 2a 20 54 68 | 65 20 62 6f 74 74 6f 6d | .X/* Th|e bottom|
|00004460| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 73 63 72 | part of| the scr|
|00004470| 65 65 6e 20 69 73 20 75 | 73 65 64 20 66 6f 72 20 |een is u|sed for |
|00004480| 74 68 65 20 65 78 63 68 | 61 6e 67 65 20 6f 66 20 |the exch|ange of |
|00004490| 63 6f 6d 6d 65 6e 74 73 | 0a 58 20 2a 20 62 65 74 |comments|.X * bet|
|000044a0| 77 65 65 6e 20 74 68 65 | 20 70 6c 61 79 65 72 73 |ween the| players|
|000044b0| 2e 20 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |. The f|ollowing|
|000044c0| 20 70 72 6f 63 65 64 75 | 72 65 73 20 61 72 65 20 | procedu|res are |
|000044d0| 75 73 65 64 20 66 6f 72 | 20 6d 61 6e 61 67 69 6e |used for| managin|
|000044e0| 67 0a 58 20 2a 20 74 68 | 69 73 20 70 61 72 74 20 |g.X * th|is part |
|000044f0| 6f 66 20 74 68 65 20 64 | 69 73 70 6c 61 79 2e 0a |of the d|isplay..|
|00004500| 58 20 2a 2f 0a 58 20 0a | 58 65 78 74 65 72 6e 20 |X */.X .|Xextern |
|00004510| 52 65 66 72 65 73 68 5f | 50 6c 61 79 65 72 5f 43 |Refresh_|Player_C|
|00004520| 6f 6d 6d 65 6e 74 73 20 | 28 29 3b 0a 58 65 78 74 |omments |();.Xext|
|00004530| 65 72 6e 20 49 6e 69 74 | 69 61 6c 69 7a 65 5f 50 |ern Init|ialize_P|
|00004540| 6c 61 79 65 72 5f 43 6f | 6d 6d 65 6e 74 73 20 28 |layer_Co|mments (|
|00004550| 29 3b 0a 58 65 78 74 65 | 72 6e 20 44 69 73 70 6c |);.Xexte|rn Displ|
|00004560| 61 79 5f 50 6c 61 79 65 | 72 5f 43 6f 6d 6d 65 6e |ay_Playe|r_Commen|
|00004570| 74 20 28 29 3b 0a 58 0a | 58 65 78 74 65 72 6e 20 |t ();.X.|Xextern |
|00004580| 53 75 73 70 65 6e 64 5f | 43 6f 6d 6d 65 6e 74 5f |Suspend_|Comment_|
|00004590| 44 69 73 70 6c 61 79 20 | 28 29 3b 0a 58 65 78 74 |Display |();.Xext|
|000045a0| 65 72 6e 20 43 6f 6e 74 | 69 6e 75 65 5f 43 6f 6d |ern Cont|inue_Com|
|000045b0| 6d 65 6e 74 5f 44 69 73 | 70 6c 61 79 20 28 29 3b |ment_Dis|play ();|
|000045c0| 0a 58 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |.X.END_O|F_FILE.i|
|000045d0| 66 20 74 65 73 74 20 35 | 39 34 34 20 2d 6e 65 20 |f test 5|944 -ne |
|000045e0| 60 77 63 20 2d 63 20 3c | 27 64 69 73 70 6c 61 79 |`wc -c <|'display|
|000045f0| 2e 68 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.h'`; th|en. e|
|00004600| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 64 69 73 |cho shar|: \"'dis|
|00004610| 70 6c 61 79 2e 68 27 5c | 22 20 75 6e 70 61 63 6b |play.h'\|" unpack|
|00004620| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00004630| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00004640| 27 64 69 73 70 6c 61 79 | 2e 68 27 0a 66 69 0a 69 |'display|.h'.fi.i|
|00004650| 66 20 74 65 73 74 20 2d | 66 20 27 68 65 6c 70 2e |f test -|f 'help.|
|00004660| 68 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |h' -a "$|{1}" != |
|00004670| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00004680| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00004690| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000046a0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 68 65 6c 70 |ing file| \"'help|
|000046b0| 2e 68 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.h'\".el|se.echo |
|000046c0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000046d0| 20 5c 22 27 68 65 6c 70 | 2e 68 27 5c 22 20 5c 28 | \"'help|.h'\" \(|
|000046e0| 32 34 39 31 20 63 68 61 | 72 61 63 74 65 72 73 5c |2491 cha|racters\|
|000046f0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00004700| 27 68 65 6c 70 2e 68 27 | 20 3c 3c 27 45 4e 44 5f |'help.h'| <<'END_|
|00004710| 4f 46 5f 46 49 4c 45 27 | 0a 58 2f 2a 20 68 65 6c |OF_FILE'|.X/* hel|
|00004720| 70 2e 68 20 2d 2d 20 68 | 65 6c 70 20 66 75 6e 63 |p.h -- h|elp func|
|00004730| 74 69 6f 6e 73 20 66 6f | 72 20 74 68 65 20 62 72 |tions fo|r the br|
|00004740| 69 64 67 65 20 70 72 6f | 67 72 61 6d 2e 0a 58 20 |idge pro|gram..X |
|00004750| 21 20 0a 58 20 21 20 43 | 6f 70 79 72 69 67 68 74 |! .X ! C|opyright|
|00004760| 20 28 43 29 20 31 39 39 | 30 2c 31 39 39 31 20 62 | (C) 199|0,1991 b|
|00004770| 79 20 4d 61 74 74 68 65 | 77 20 43 6c 65 67 67 0a |y Matthe|w Clegg.|
|00004780| 58 20 21 20 0a 58 20 21 | 20 54 68 69 73 20 70 72 |X ! .X !| This pr|
|00004790| 6f 67 72 61 6d 20 6d 61 | 79 20 62 65 20 63 6f 70 |ogram ma|y be cop|
|000047a0| 69 65 64 20 61 6e 64 20 | 64 69 73 74 72 69 62 75 |ied and |distribu|
|000047b0| 74 65 64 20 66 72 65 65 | 6c 79 2e 20 20 50 6c 65 |ted free|ly. Ple|
|000047c0| 61 73 65 20 64 6f 20 6e | 6f 74 0a 58 20 21 20 63 |ase do n|ot.X ! c|
|000047d0| 68 61 72 67 65 20 6d 6f | 6e 65 79 20 66 6f 72 20 |harge mo|ney for |
|000047e0| 74 68 69 73 20 70 72 6f | 67 72 61 6d 20 6f 72 20 |this pro|gram or |
|000047f0| 66 6f 72 20 61 6e 79 20 | 70 72 6f 67 72 61 6d 20 |for any |program |
|00004800| 64 65 72 69 76 65 64 20 | 66 72 6f 6d 20 69 74 2e |derived |from it.|
|00004810| 0a 58 20 21 20 49 66 20 | 79 6f 75 20 6d 6f 64 69 |.X ! If |you modi|
|00004820| 66 79 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 2c |fy this |program,|
|00004830| 20 74 68 65 6e 20 69 6e | 63 6c 75 64 65 20 61 20 | then in|clude a |
|00004840| 6e 6f 74 69 63 65 20 73 | 74 61 74 69 6e 67 20 70 |notice s|tating p|
|00004850| 6c 61 69 6e 6c 79 0a 58 | 20 21 20 74 68 61 74 20 |lainly.X| ! that |
|00004860| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 20 69 73 20 |your pro|gram is |
|00004870| 64 65 72 69 76 65 64 20 | 66 72 6f 6d 20 74 68 65 |derived |from the|
|00004880| 20 6f 6b 62 72 69 64 67 | 65 20 70 72 6f 67 72 61 | okbridg|e progra|
|00004890| 6d 20 61 6e 64 20 69 73 | 20 6e 6f 74 0a 58 20 21 |m and is| not.X !|
|000048a0| 20 74 68 65 20 73 61 6d | 65 20 61 73 20 74 68 65 | the sam|e as the|
|000048b0| 20 6f 66 66 69 63 69 61 | 6c 20 6f 6b 62 72 69 64 | officia|l okbrid|
|000048c0| 67 65 20 70 72 6f 67 72 | 61 6d 2e 0a 58 20 21 0a |ge progr|am..X !.|
|000048d0| 58 20 21 20 49 20 77 65 | 6c 63 6f 6d 65 20 61 6e |X ! I we|lcome an|
|000048e0| 79 20 73 75 67 67 65 73 | 74 69 6f 6e 73 20 66 6f |y sugges|tions fo|
|000048f0| 72 20 69 6d 70 72 6f 76 | 65 6d 65 6e 74 20 74 6f |r improv|ement to|
|00004900| 20 6f 6b 62 72 69 64 67 | 65 2c 20 61 6e 64 20 0a | okbridg|e, and .|
|00004910| 58 20 21 20 49 20 77 6f | 75 6c 64 20 62 65 20 65 |X ! I wo|uld be e|
|00004920| 73 70 65 63 69 61 6c 6c | 79 20 68 61 70 70 79 20 |speciall|y happy |
|00004930| 74 6f 20 72 65 63 65 69 | 76 65 20 69 6d 70 72 6f |to recei|ve impro|
|00004940| 76 65 64 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2e |ved sour|ce code.|
|00004950| 0a 58 20 21 20 49 66 20 | 79 6f 75 20 68 61 76 65 |.X ! If |you have|
|00004960| 20 63 6f 6d 6d 65 6e 74 | 73 20 6f 72 20 73 75 67 | comment|s or sug|
|00004970| 67 65 73 74 69 6f 6e 73 | 2c 20 6f 72 20 69 66 20 |gestions|, or if |
|00004980| 79 6f 75 20 77 6f 75 6c | 64 20 6c 69 6b 65 20 74 |you woul|d like t|
|00004990| 6f 0a 58 20 21 20 6a 6f | 69 6e 20 74 68 65 20 6f |o.X ! jo|in the o|
|000049a0| 6b 62 72 69 64 67 65 20 | 6d 61 69 6c 69 6e 67 20 |kbridge |mailing |
|000049b0| 6c 69 73 74 2c 20 74 68 | 65 6e 20 77 72 69 74 65 |list, th|en write|
|000049c0| 20 74 6f 0a 58 20 21 0a | 58 20 21 20 20 20 6d 63 | to.X !.|X ! mc|
|000049d0| 6c 65 67 67 40 63 73 2e | 75 63 73 64 2e 65 64 75 |legg@cs.|ucsd.edu|
|000049e0| 0a 58 20 21 0a 58 20 2a | 0a 58 20 2a 20 54 68 69 |.X !.X *|.X * Thi|
|000049f0| 73 20 66 69 6c 65 20 63 | 6f 6e 74 61 69 6e 73 20 |s file c|ontains |
|00004a00| 74 68 65 20 69 6e 74 65 | 72 66 61 63 65 20 66 6f |the inte|rface fo|
|00004a10| 72 20 61 20 68 65 6c 70 | 20 70 72 6f 63 65 64 75 |r a help| procedu|
|00004a20| 72 65 20 66 6f 72 20 74 | 68 65 0a 58 20 2a 20 62 |re for t|he.X * b|
|00004a30| 72 69 64 67 65 20 70 72 | 6f 67 72 61 6d 2e 20 20 |ridge pr|ogram. |
|00004a40| 54 68 65 20 68 65 6c 70 | 20 66 75 6e 63 74 69 6f |The help| functio|
|00004a50| 6e 20 69 73 20 6f 72 67 | 61 6e 69 7a 65 64 20 61 |n is org|anized a|
|00004a60| 73 20 61 20 73 65 72 69 | 65 73 20 6f 66 20 74 6f |s a seri|es of to|
|00004a70| 70 69 63 73 2c 0a 58 20 | 2a 20 68 65 61 64 65 64 |pics,.X |* headed|
|00004a80| 20 62 79 20 61 20 6d 61 | 69 6e 20 74 6f 70 69 63 | by a ma|in topic|
|00004a90| 2e 20 20 41 6c 6c 20 6f | 66 20 74 68 65 20 68 65 |. All o|f the he|
|00004aa0| 6c 70 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |lp infor|mation i|
|00004ab0| 73 20 73 74 6f 72 65 64 | 20 69 6e 20 61 0a 58 20 |s stored| in a.X |
|00004ac0| 2a 20 73 69 6e 67 6c 65 | 20 66 69 6c 65 2c 20 6f |* single| file, o|
|00004ad0| 72 67 61 6e 69 7a 65 64 | 20 61 73 20 61 20 6c 69 |rganized| as a li|
|00004ae0| 73 74 20 6f 66 20 74 6f | 70 69 63 73 2e 20 20 54 |st of to|pics. T|
|00004af0| 68 65 20 66 69 72 73 74 | 20 65 6e 74 72 79 20 69 |he first| entry i|
|00004b00| 6e 20 74 68 65 0a 58 20 | 2a 20 66 69 6c 65 20 69 |n the.X |* file i|
|00004b10| 73 20 69 6e 74 65 72 70 | 72 65 74 65 64 20 74 6f |s interp|reted to|
|00004b20| 20 62 65 20 74 68 65 20 | 6d 61 69 6e 20 74 6f 70 | be the |main top|
|00004b30| 69 63 2c 20 69 2e 65 2e | 2c 20 69 74 20 69 73 20 |ic, i.e.|, it is |
|00004b40| 74 68 65 20 65 6e 74 72 | 79 20 77 68 69 63 68 0a |the entr|y which.|
|00004b50| 58 20 2a 20 69 73 20 64 | 69 73 70 6c 61 79 65 64 |X * is d|isplayed|
|00004b60| 20 69 66 20 6e 6f 20 70 | 61 72 74 69 63 75 6c 61 | if no p|articula|
|00004b70| 72 20 6b 65 79 77 6f 72 | 64 20 69 73 20 67 69 76 |r keywor|d is giv|
|00004b80| 65 6e 2e 20 20 45 61 63 | 68 20 74 6f 70 69 63 20 |en. Eac|h topic |
|00004b90| 65 6e 74 72 79 0a 58 20 | 2a 20 68 61 73 20 61 20 |entry.X |* has a |
|00004ba0| 68 65 61 64 65 72 20 6c | 69 6e 65 20 77 68 69 63 |header l|ine whic|
|00004bb0| 68 20 63 6f 6e 74 61 69 | 6e 73 20 61 6e 20 69 64 |h contai|ns an id|
|00004bc0| 65 6e 74 69 66 79 69 6e | 67 20 6b 65 79 77 6f 72 |entifyin|g keywor|
|00004bd0| 64 20 61 6e 64 20 61 20 | 0a 58 20 2a 20 64 65 73 |d and a |.X * des|
|00004be0| 63 72 69 70 74 69 76 65 | 20 70 68 72 61 73 65 2e |criptive| phrase.|
|00004bf0| 20 20 54 68 69 73 20 69 | 73 20 66 6f 6c 6c 6f 77 | This i|s follow|
|00004c00| 65 64 20 62 79 20 74 68 | 65 20 62 6f 64 79 20 6f |ed by th|e body o|
|00004c10| 66 20 74 68 65 20 65 6e | 74 72 79 0a 58 20 2a 20 |f the en|try.X * |
|00004c20| 61 6e 64 20 69 73 20 74 | 65 72 6d 69 6e 61 74 65 |and is t|erminate|
|00004c30| 64 20 62 79 20 61 6e 20 | 65 6e 64 2d 6f 66 2d 65 |d by an |end-of-e|
|00004c40| 6e 74 72 79 20 6c 69 6e | 65 2e 20 20 54 68 65 20 |ntry lin|e. The |
|00004c50| 66 6f 72 6d 61 74 20 6f | 66 20 74 68 65 20 68 65 |format o|f the he|
|00004c60| 61 64 65 72 0a 58 20 2a | 20 6c 69 6e 65 20 69 73 |ader.X *| line is|
|00004c70| 20 73 69 6d 70 6c 79 0a | 58 20 2a 20 20 3c 6b 65 | simply.|X * <ke|
|00004c80| 79 77 6f 72 64 3e 20 3c | 70 68 72 61 73 65 3e 0a |yword> <|phrase>.|
|00004c90| 58 20 2a 20 77 68 65 72 | 65 20 3c 6b 65 79 77 6f |X * wher|e <keywo|
|00004ca0| 72 64 3e 20 69 73 20 61 | 6e 79 20 74 65 78 74 20 |rd> is a|ny text |
|00004cb0| 73 74 72 69 6e 67 20 6e | 6f 74 20 63 6f 6e 74 61 |string n|ot conta|
|00004cc0| 69 6e 69 6e 67 20 77 68 | 69 74 65 20 73 70 61 63 |ining wh|ite spac|
|00004cd0| 65 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 58 20 |e charac|ters..X |
|00004ce0| 2a 20 54 68 65 20 62 6f | 64 79 20 6f 66 20 74 68 |* The bo|dy of th|
|00004cf0| 65 20 65 6e 74 72 79 20 | 63 6f 6e 73 69 73 74 73 |e entry |consists|
|00004d00| 20 73 69 6d 70 6c 79 20 | 6f 66 20 61 20 73 65 72 | simply |of a ser|
|00004d10| 69 65 73 20 6f 66 20 74 | 65 78 74 20 6c 69 6e 65 |ies of t|ext line|
|00004d20| 73 2e 0a 58 20 2a 20 54 | 68 65 73 65 20 61 72 65 |s..X * T|hese are|
|00004d30| 20 64 69 73 70 6c 61 79 | 65 64 20 69 6e 20 6f 72 | display|ed in or|
|00004d40| 64 65 72 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |der on t|he scree|
|00004d50| 6e 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 61 20 6c |n. Howe|ver, a l|
|00004d60| 69 6e 65 20 62 65 67 69 | 6e 6e 69 6e 67 0a 58 20 |ine begi|nning.X |
|00004d70| 2a 20 77 69 74 68 20 74 | 68 65 20 63 69 72 63 75 |* with t|he circu|
|00004d80| 6d 66 6c 65 78 20 27 5e | 27 20 63 68 61 72 61 63 |mflex '^|' charac|
|00004d90| 74 65 72 20 69 73 20 64 | 69 73 70 6c 61 79 65 64 |ter is d|isplayed|
|00004da0| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | at the |beginnin|
|00004db0| 67 20 6f 66 20 61 0a 58 | 20 2a 20 6e 65 77 20 70 |g of a.X| * new p|
|00004dc0| 61 67 65 2e 20 20 41 20 | 68 65 6c 70 20 65 6e 74 |age. A |help ent|
|00004dd0| 72 79 20 69 73 20 74 65 | 72 6d 69 6e 61 74 65 64 |ry is te|rminated|
|00004de0| 20 62 79 20 61 20 6c 69 | 6e 65 20 63 6f 6e 74 61 | by a li|ne conta|
|00004df0| 69 6e 69 6e 67 20 6a 75 | 73 74 20 74 68 65 0a 58 |ining ju|st the.X|
|00004e00| 20 2a 20 74 77 6f 20 63 | 68 61 72 61 63 74 65 72 | * two c|haracter|
|00004e10| 73 20 27 2d 2d 27 2e 20 | 20 54 68 65 20 6c 61 73 |s '--'. | The las|
|00004e20| 74 20 65 6e 74 72 79 20 | 69 6e 20 74 68 65 20 66 |t entry |in the f|
|00004e30| 69 6c 65 20 6e 65 65 64 | 20 6e 6f 74 20 68 61 76 |ile need| not hav|
|00004e40| 65 20 74 68 69 73 0a 58 | 20 2a 20 74 65 72 6d 69 |e this.X| * termi|
|00004e50| 6e 61 74 6f 72 2e 20 20 | 54 68 65 20 68 65 6c 70 |nator. |The help|
|00004e60| 20 66 69 6c 65 20 6d 61 | 79 20 61 6c 73 6f 20 63 | file ma|y also c|
|00004e70| 6f 6e 74 61 69 6e 20 63 | 6f 6d 6d 65 6e 74 20 6c |ontain c|omment l|
|00004e80| 69 6e 65 73 2e 20 20 54 | 68 65 73 65 0a 58 20 2a |ines. T|hese.X *|
|00004e90| 20 62 65 67 69 6e 20 77 | 69 74 68 20 74 68 65 20 | begin w|ith the |
|00004ea0| 70 6f 75 6e 64 20 73 69 | 67 6e 20 27 23 27 20 63 |pound si|gn '#' c|
|00004eb0| 68 61 72 61 63 74 65 72 | 2e 0a 58 20 2a 2f 0a 58 |haracter|..X */.X|
|00004ec0| 20 0a 58 65 78 74 65 72 | 6e 20 69 6e 69 74 69 61 | .Xexter|n initia|
|00004ed0| 6c 69 7a 65 5f 68 65 6c | 70 5f 73 79 73 74 65 6d |lize_hel|p_system|
|00004ee0| 20 28 29 3b 0a 58 2f 2a | 20 43 61 6c 6c 65 64 20 | ();.X/*| Called |
|00004ef0| 6f 6e 63 65 20 61 74 20 | 74 68 65 20 62 65 67 69 |once at |the begi|
|00004f00| 6e 6e 69 6e 67 20 6f 66 | 20 74 68 65 20 70 72 6f |nning of| the pro|
|00004f10| 67 72 61 6d 20 74 6f 20 | 72 65 61 64 20 74 68 65 |gram to |read the|
|00004f20| 20 66 69 6c 65 20 6f 66 | 20 68 65 6c 70 0a 58 20 | file of| help.X |
|00004f30| 2a 20 74 6f 70 69 63 73 | 2e 0a 58 20 2a 2f 0a 58 |* topics|..X */.X|
|00004f40| 20 0a 58 65 78 74 65 72 | 6e 20 64 69 73 70 6c 61 | .Xexter|n displa|
|00004f50| 79 5f 68 65 6c 70 20 28 | 29 3b 0a 58 2f 2a 20 76 |y_help (|);.X/* v|
|00004f60| 6f 69 64 20 64 69 73 70 | 6c 61 79 5f 68 65 6c 70 |oid disp|lay_help|
|00004f70| 20 28 63 68 61 72 20 2a | 74 6f 70 69 63 29 3b 20 | (char *|topic); |
|00004f80| 2a 2f 0a 58 2f 2a 20 44 | 69 73 70 6c 61 79 73 20 |*/.X/* D|isplays |
|00004f90| 68 65 6c 70 20 6f 6e 20 | 74 68 65 20 67 69 76 65 |help on |the give|
|00004fa0| 6e 20 74 6f 70 69 63 2e | 20 20 54 68 69 73 20 63 |n topic.| This c|
|00004fb0| 6f 6e 73 69 73 74 73 20 | 6f 66 20 6c 6f 6f 6b 69 |onsists |of looki|
|00004fc0| 6e 67 20 75 70 20 74 68 | 65 0a 58 20 2a 20 68 65 |ng up th|e.X * he|
|00004fd0| 6c 70 20 66 69 6c 65 20 | 61 73 73 6f 63 69 61 74 |lp file |associat|
|00004fe0| 65 64 20 74 6f 20 74 68 | 69 73 20 74 6f 70 69 63 |ed to th|is topic|
|00004ff0| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 69 6e 67 20 | and dis|playing |
|00005000| 74 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |the cont|ents of |
|00005010| 74 68 69 73 0a 58 20 2a | 20 66 69 6c 65 20 6f 6e |this.X *| file on|
|00005020| 20 74 68 65 20 73 63 72 | 65 65 6e 2e 20 20 49 66 | the scr|een. If|
|00005030| 20 74 68 65 20 74 6f 70 | 69 63 20 73 74 72 69 6e | the top|ic strin|
|00005040| 67 20 69 73 20 65 6d 70 | 74 79 2c 20 74 68 65 6e |g is emp|ty, then|
|00005050| 20 64 69 73 70 6c 61 79 | 73 20 66 69 72 73 74 0a | display|s first.|
|00005060| 58 20 2a 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |X * the |contents|
|00005070| 20 6f 66 20 74 68 65 20 | 6d 61 69 6e 20 74 6f 70 | of the |main top|
|00005080| 69 63 20 66 69 6c 65 2c | 20 61 6e 64 20 74 68 65 |ic file,| and the|
|00005090| 6e 20 64 69 73 70 6c 61 | 79 73 20 61 20 6c 69 73 |n displa|ys a lis|
|000050a0| 74 20 6f 66 20 74 68 65 | 0a 58 20 2a 20 74 6f 70 |t of the|.X * top|
|000050b0| 69 63 73 2e 20 20 49 66 | 20 74 68 65 72 65 20 69 |ics. If| there i|
|000050c0| 73 20 6e 6f 20 68 65 6c | 70 20 6f 6e 20 74 68 65 |s no hel|p on the|
|000050d0| 20 67 69 76 65 6e 20 74 | 6f 70 69 63 2c 20 74 68 | given t|opic, th|
|000050e0| 65 6e 20 64 69 73 70 6c | 61 79 73 20 61 20 6c 69 |en displ|ays a li|
|000050f0| 73 74 0a 58 20 2a 20 6f | 66 20 74 6f 70 69 63 73 |st.X * o|f topics|
|00005100| 2e 0a 58 20 2a 2f 0a 58 | 20 0a 45 4e 44 5f 4f 46 |..X */.X| .END_OF|
|00005110| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 32 34 |_FILE.if| test 24|
|00005120| 39 31 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |91 -ne `|wc -c <'|
|00005130| 68 65 6c 70 2e 68 27 60 | 3b 20 74 68 65 6e 0a 20 |help.h'`|; then. |
|00005140| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00005150| 27 68 65 6c 70 2e 68 27 | 5c 22 20 75 6e 70 61 63 |'help.h'|\" unpac|
|00005160| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00005170| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00005180| 20 27 68 65 6c 70 2e 68 | 27 0a 66 69 0a 69 66 20 | 'help.h|'.fi.if |
|00005190| 74 65 73 74 20 2d 66 20 | 27 6e 65 74 77 6f 72 6b |test -f |'network|
|000051a0| 2e 68 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |.h' -a "|${1}" !=|
|000051b0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|000051c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|000051d0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|000051e0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 6e 65 74 |ting fil|e \"'net|
|000051f0| 77 6f 72 6b 2e 68 27 5c | 22 0a 65 6c 73 65 0a 65 |work.h'\|".else.e|
|00005200| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|00005210| 74 69 6e 67 20 5c 22 27 | 6e 65 74 77 6f 72 6b 2e |ting \"'|network.|
|00005220| 68 27 5c 22 20 5c 28 32 | 32 39 39 20 63 68 61 72 |h'\" \(2|299 char|
|00005230| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00005240| 5e 58 2f 2f 22 20 3e 27 | 6e 65 74 77 6f 72 6b 2e |^X//" >'|network.|
|00005250| 68 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |h' <<'EN|D_OF_FIL|
|00005260| 45 27 0a 58 2f 2a 20 6e | 65 74 77 6f 72 6b 2e 68 |E'.X/* n|etwork.h|
|00005270| 0a 58 20 21 20 0a 58 20 | 21 20 43 6f 70 79 72 69 |.X ! .X |! Copyri|
|00005280| 67 68 74 20 28 43 29 20 | 31 39 39 30 2c 31 39 39 |ght (C) |1990,199|
|00005290| 31 20 62 79 20 4d 61 74 | 74 68 65 77 20 43 6c 65 |1 by Mat|thew Cle|
|000052a0| 67 67 0a 58 20 21 20 0a | 58 20 21 20 54 68 69 73 |gg.X ! .|X ! This|
|000052b0| 20 70 72 6f 67 72 61 6d | 20 6d 61 79 20 62 65 20 | program| may be |
|000052c0| 63 6f 70 69 65 64 20 61 | 6e 64 20 64 69 73 74 72 |copied a|nd distr|
|000052d0| 69 62 75 74 65 64 20 66 | 72 65 65 6c 79 2e 20 20 |ibuted f|reely. |
|000052e0| 50 6c 65 61 73 65 20 64 | 6f 20 6e 6f 74 0a 58 20 |Please d|o not.X |
|000052f0| 21 20 63 68 61 72 67 65 | 20 6d 6f 6e 65 79 20 66 |! charge| money f|
|00005300| 6f 72 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |or this |program |
|00005310| 6f 72 20 66 6f 72 20 61 | 6e 79 20 70 72 6f 67 72 |or for a|ny progr|
|00005320| 61 6d 20 64 65 72 69 76 | 65 64 20 66 72 6f 6d 20 |am deriv|ed from |
|00005330| 69 74 2e 0a 58 20 21 20 | 49 66 20 79 6f 75 20 6d |it..X ! |If you m|
|00005340| 6f 64 69 66 79 20 74 68 | 69 73 20 70 72 6f 67 72 |odify th|is progr|
|00005350| 61 6d 2c 20 74 68 65 6e | 20 69 6e 63 6c 75 64 65 |am, then| include|
|00005360| 20 61 20 6e 6f 74 69 63 | 65 20 73 74 61 74 69 6e | a notic|e statin|
|00005370| 67 20 70 6c 61 69 6e 6c | 79 0a 58 20 21 20 74 68 |g plainl|y.X ! th|
|00005380| 61 74 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 20 |at your |program |
|00005390| 69 73 20 64 65 72 69 76 | 65 64 20 66 72 6f 6d 20 |is deriv|ed from |
|000053a0| 74 68 65 20 6f 6b 62 72 | 69 64 67 65 20 70 72 6f |the okbr|idge pro|
|000053b0| 67 72 61 6d 20 61 6e 64 | 20 69 73 20 6e 6f 74 0a |gram and| is not.|
|000053c0| 58 20 21 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |X ! the |same as |
|000053d0| 74 68 65 20 6f 66 66 69 | 63 69 61 6c 20 6f 6b 62 |the offi|cial okb|
|000053e0| 72 69 64 67 65 20 70 72 | 6f 67 72 61 6d 2e 0a 58 |ridge pr|ogram..X|
|000053f0| 20 21 0a 58 20 21 20 49 | 20 77 65 6c 63 6f 6d 65 | !.X ! I| welcome|
|00005400| 20 61 6e 79 20 73 75 67 | 67 65 73 74 69 6f 6e 73 | any sug|gestions|
|00005410| 20 66 6f 72 20 69 6d 70 | 72 6f 76 65 6d 65 6e 74 | for imp|rovement|
|00005420| 20 74 6f 20 6f 6b 62 72 | 69 64 67 65 2c 20 61 6e | to okbr|idge, an|
|00005430| 64 20 0a 58 20 21 20 49 | 20 77 6f 75 6c 64 20 62 |d .X ! I| would b|
|00005440| 65 20 65 73 70 65 63 69 | 61 6c 6c 79 20 68 61 70 |e especi|ally hap|
|00005450| 70 79 20 74 6f 20 72 65 | 63 65 69 76 65 20 69 6d |py to re|ceive im|
|00005460| 70 72 6f 76 65 64 20 73 | 6f 75 72 63 65 20 63 6f |proved s|ource co|
|00005470| 64 65 2e 0a 58 20 21 20 | 49 66 20 79 6f 75 20 68 |de..X ! |If you h|
|00005480| 61 76 65 20 63 6f 6d 6d | 65 6e 74 73 20 6f 72 20 |ave comm|ents or |
|00005490| 73 75 67 67 65 73 74 69 | 6f 6e 73 2c 20 6f 72 20 |suggesti|ons, or |
|000054a0| 69 66 20 79 6f 75 20 77 | 6f 75 6c 64 20 6c 69 6b |if you w|ould lik|
|000054b0| 65 20 74 6f 0a 58 20 21 | 20 6a 6f 69 6e 20 74 68 |e to.X !| join th|
|000054c0| 65 20 6f 6b 62 72 69 64 | 67 65 20 6d 61 69 6c 69 |e okbrid|ge maili|
|000054d0| 6e 67 20 6c 69 73 74 2c | 20 74 68 65 6e 20 77 72 |ng list,| then wr|
|000054e0| 69 74 65 20 74 6f 0a 58 | 20 21 0a 58 20 21 20 20 |ite to.X| !.X ! |
|000054f0| 20 6d 63 6c 65 67 67 40 | 63 73 2e 75 63 73 64 2e | mclegg@|cs.ucsd.|
|00005500| 65 64 75 0a 58 20 21 0a | 58 20 2a 0a 58 20 2a 20 |edu.X !.|X *.X * |
|00005510| 54 68 69 73 20 69 73 20 | 74 68 65 20 69 6e 74 65 |This is |the inte|
|00005520| 72 66 61 63 65 20 62 65 | 74 77 65 65 6e 20 74 68 |rface be|tween th|
|00005530| 65 20 6e 65 74 77 6f 72 | 6b 20 61 6e 64 20 74 68 |e networ|k and th|
|00005540| 65 20 62 72 69 64 67 65 | 20 70 72 6f 67 72 61 6d |e bridge| program|
|00005550| 2e 0a 58 20 2a 20 49 74 | 20 69 73 20 65 78 70 65 |..X * It| is expe|
|00005560| 63 74 65 64 20 74 68 61 | 74 20 74 68 69 73 20 70 |cted tha|t this p|
|00005570| 61 72 74 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |art of t|he progr|
|00005580| 61 6d 20 6d 61 79 20 68 | 61 76 65 20 74 6f 20 62 |am may h|ave to b|
|00005590| 65 0a 58 20 2a 20 74 6f | 74 61 6c 6c 79 20 72 65 |e.X * to|tally re|
|000055a0| 2d 77 72 69 74 74 65 6e | 20 66 6f 72 20 65 61 63 |-written| for eac|
|000055b0| 68 20 64 69 66 66 65 72 | 65 6e 74 20 70 6f 72 74 |h differ|ent port|
|000055c0| 2e 20 20 54 68 65 72 65 | 66 6f 72 65 2c 20 74 68 |. There|fore, th|
|000055d0| 65 0a 58 20 2a 20 69 6e | 74 65 72 66 61 63 65 20 |e.X * in|terface |
|000055e0| 68 61 73 20 62 65 65 6e | 20 6d 61 64 65 20 61 73 |has been| made as|
|000055f0| 20 73 69 6d 70 6c 65 20 | 61 73 20 70 6f 73 73 69 | simple |as possi|
|00005600| 62 6c 65 2e 0a 58 20 2a | 0a 58 20 2a 20 54 68 65 |ble..X *|.X * The|
|00005610| 20 69 6e 70 75 74 20 61 | 6e 64 20 6f 75 74 70 75 | input a|nd outpu|
|00005620| 74 20 6f 66 20 74 68 69 | 73 20 6d 6f 64 75 6c 65 |t of thi|s module|
|00005630| 20 63 6f 6e 73 69 73 74 | 73 20 73 69 6d 70 6c 79 | consist|s simply|
|00005640| 20 6f 66 20 63 68 61 72 | 61 63 74 65 72 0a 58 20 | of char|acter.X |
|00005650| 2a 20 73 74 72 69 6e 67 | 73 2e 20 20 48 6f 77 65 |* string|s. Howe|
|00005660| 76 65 72 2c 20 77 65 20 | 61 73 73 75 6d 65 20 74 |ver, we |assume t|
|00005670| 61 63 69 74 6c 79 20 74 | 68 61 74 20 74 68 65 20 |acitly t|hat the |
|00005680| 63 61 6c 6c 69 6e 67 20 | 70 72 6f 63 65 64 75 72 |calling |procedur|
|00005690| 65 73 0a 58 20 2a 20 61 | 74 74 61 63 68 20 74 68 |es.X * a|ttach th|
|000056a0| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 70 6c |e name o|f the pl|
|000056b0| 61 79 65 72 20 61 74 20 | 74 68 65 20 62 65 67 69 |ayer at |the begi|
|000056c0| 6e 6e 69 6e 67 20 6f 66 | 20 65 61 63 68 20 74 72 |nning of| each tr|
|000056d0| 61 6e 73 6d 69 73 73 69 | 6f 6e 2e 0a 58 20 2a 0a |ansmissi|on..X *.|
|000056e0| 58 20 2a 20 57 65 20 61 | 73 73 75 6d 65 20 74 68 |X * We a|ssume th|
|000056f0| 61 74 20 74 68 65 20 6e | 65 74 77 6f 72 6b 20 6d |at the n|etwork m|
|00005700| 6f 64 75 6c 65 20 69 6d | 70 6c 65 6d 65 6e 74 73 |odule im|plements|
|00005710| 20 61 20 27 62 72 6f 61 | 64 63 61 73 74 27 20 6d | a 'broa|dcast' m|
|00005720| 6f 64 65 6c 0a 58 20 2a | 20 6f 66 20 63 6f 6d 6d |odel.X *| of comm|
|00005730| 75 6e 69 63 61 74 69 6f | 6e 2c 20 77 68 65 72 65 |unicatio|n, where|
|00005740| 20 65 76 65 72 79 20 6d | 65 73 73 61 67 65 20 69 | every m|essage i|
|00005750| 73 20 74 72 61 6e 73 6d | 69 74 74 65 64 20 74 6f |s transm|itted to|
|00005760| 20 65 61 63 68 20 6f 66 | 0a 58 20 2a 20 74 68 65 | each of|.X * the|
|00005770| 20 74 68 72 65 65 20 6f | 74 68 65 72 20 70 6c 61 | three o|ther pla|
|00005780| 79 65 72 73 2e 20 20 57 | 65 20 61 73 73 75 6d 65 |yers. W|e assume|
|00005790| 20 61 6c 73 6f 20 74 68 | 61 74 20 74 68 65 20 6e | also th|at the n|
|000057a0| 65 74 77 6f 72 6b 0a 58 | 20 2a 20 63 6f 6e 6e 65 |etwork.X| * conne|
|000057b0| 63 74 69 6f 6e 73 20 61 | 72 65 20 72 65 6c 69 61 |ctions a|re relia|
|000057c0| 62 6c 65 2c 20 69 6e 20 | 74 68 65 20 73 65 6e 73 |ble, in |the sens|
|000057d0| 65 20 74 68 61 74 20 6f | 6e 63 65 20 61 20 63 6f |e that o|nce a co|
|000057e0| 6e 6e 65 63 74 69 6f 6e | 20 69 73 0a 58 20 2a 20 |nnection| is.X * |
|000057f0| 65 73 74 61 62 6c 69 73 | 68 65 64 20 62 65 74 77 |establis|hed betw|
|00005800| 65 65 6e 20 74 77 6f 20 | 70 6c 61 79 65 72 73 2c |een two |players,|
|00005810| 20 69 74 20 72 65 6d 61 | 69 6e 73 20 69 6e 74 61 | it rema|ins inta|
|00005820| 63 74 20 75 6e 74 69 6c | 20 74 68 65 0a 58 20 2a |ct until| the.X *|
|00005830| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 67 61 6d 65 | end of |the game|
|00005840| 2e 20 20 48 6f 77 65 76 | 65 72 2c 20 77 65 20 64 |. Howev|er, we d|
|00005850| 6f 20 6e 6f 74 20 6d 61 | 6b 65 20 61 6e 79 20 61 |o not ma|ke any a|
|00005860| 73 73 75 6d 70 74 69 6f | 6e 73 20 61 62 6f 75 74 |ssumptio|ns about|
|00005870| 0a 58 20 2a 20 74 68 65 | 20 6f 72 64 65 72 20 69 |.X * the| order i|
|00005880| 6e 20 77 68 69 63 68 20 | 77 65 20 6d 61 79 20 72 |n which |we may r|
|00005890| 65 63 65 69 76 65 20 74 | 68 65 20 6d 65 73 73 61 |eceive t|he messa|
|000058a0| 67 65 73 2e 0a 58 20 2a | 2f 0a 58 20 0a 58 65 78 |ges..X *|/.X .Xex|
|000058b0| 74 65 72 6e 20 69 6e 69 | 74 69 61 6c 69 7a 65 5f |tern ini|tialize_|
|000058c0| 6e 65 74 77 6f 72 6b 20 | 28 29 3b 0a 58 2f 2a 20 |network |();.X/* |
|000058d0| 76 6f 69 64 20 69 6e 69 | 74 69 61 6c 69 7a 65 5f |void ini|tialize_|
|000058e0| 6e 65 74 77 6f 72 6b 20 | 28 63 68 61 72 20 2a 6e |network |(char *n|
|000058f0| 61 6d 65 29 3b 20 2a 2f | 0a 58 2f 2a 20 54 6f 20 |ame); */|.X/* To |
|00005900| 62 65 20 63 61 6c 6c 65 | 64 20 6f 6e 63 65 20 61 |be calle|d once a|
|00005910| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00005920| 6f 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 2e 20 |of the p|rogram. |
|00005930| 27 6e 61 6d 65 27 20 69 | 73 20 74 68 65 0a 58 20 |'name' i|s the.X |
|00005940| 20 20 6e 61 6d 65 20 75 | 73 65 64 20 62 79 20 74 | name u|sed by t|
|00005950| 68 65 20 70 6c 61 79 65 | 72 2e 20 2a 2f 0a 58 20 |he playe|r. */.X |
|00005960| 0a 58 65 78 74 65 72 6e | 20 73 65 6e 64 5f 6d 65 |.Xextern| send_me|
|00005970| 73 73 61 67 65 20 28 29 | 3b 0a 58 2f 2a 20 76 6f |ssage ()|;.X/* vo|
|00005980| 69 64 20 73 65 6e 64 5f | 6d 65 73 73 61 67 65 20 |id send_|message |
|00005990| 28 63 68 61 72 20 2a 6d | 65 73 73 61 67 65 29 3b |(char *m|essage);|
|000059a0| 20 2a 2f 0a 58 20 0a 58 | 65 78 74 65 72 6e 20 69 | */.X .X|extern i|
|000059b0| 6e 74 20 6d 65 73 73 61 | 67 65 5f 61 76 61 69 6c |nt messa|ge_avail|
|000059c0| 61 62 6c 65 20 28 29 3b | 0a 58 2f 2a 20 69 6e 74 |able ();|.X/* int|
|000059d0| 20 6d 65 73 73 61 67 65 | 5f 61 76 61 69 6c 61 62 | message|_availab|
|000059e0| 6c 65 20 28 76 6f 69 64 | 29 3b 20 2a 2f 0a 58 20 |le (void|); */.X |
|000059f0| 0a 58 65 78 74 65 72 6e | 20 72 65 63 65 69 76 65 |.Xextern| receive|
|00005a00| 5f 6d 65 73 73 61 67 65 | 20 28 29 3b 0a 58 2f 2a |_message| ();.X/*|
|00005a10| 20 76 6f 69 64 20 72 65 | 63 65 69 76 65 5f 6d 65 | void re|ceive_me|
|00005a20| 73 73 61 67 65 20 28 63 | 68 61 72 20 2a 6d 65 73 |ssage (c|har *mes|
|00005a30| 73 61 67 65 29 3b 20 2a | 2f 0a 58 20 0a 58 65 78 |sage); *|/.X .Xex|
|00005a40| 74 65 72 6e 20 72 65 73 | 65 74 5f 6e 65 74 77 6f |tern res|et_netwo|
|00005a50| 72 6b 20 28 29 3b 0a 58 | 2f 2a 20 76 6f 69 64 20 |rk ();.X|/* void |
|00005a60| 72 65 73 65 74 5f 6e 65 | 74 77 6f 72 6b 20 28 76 |reset_ne|twork (v|
|00005a70| 6f 69 64 29 3b 20 2a 2f | 0a 58 2f 2a 20 54 6f 20 |oid); */|.X/* To |
|00005a80| 62 65 20 63 61 6c 6c 65 | 64 20 6f 6e 63 65 20 61 |be calle|d once a|
|00005a90| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |t the en|d of the|
|00005aa0| 20 70 72 6f 67 72 61 6d | 2e 20 20 52 65 73 65 74 | program|. Reset|
|00005ab0| 73 20 74 68 65 0a 58 20 | 20 20 63 6f 6d 6d 75 6e |s the.X | commun|
|00005ac0| 69 63 61 74 69 6f 6e 73 | 20 6e 65 74 77 6f 72 6b |ications| network|
|00005ad0| 2e 20 2a 2f 0a 58 20 0a | 58 65 78 74 65 72 6e 20 |. */.X .|Xextern |
|00005ae0| 43 6c 6f 73 65 5f 4e 65 | 74 77 6f 72 6b 5f 43 6f |Close_Ne|twork_Co|
|00005af0| 6e 6e 65 63 74 69 6f 6e | 20 28 29 3b 0a 58 2f 2a |nnection| ();.X/*|
|00005b00| 20 76 6f 69 64 20 43 6c | 6f 73 65 5f 4e 65 74 77 | void Cl|ose_Netw|
|00005b10| 6f 72 6b 5f 43 6f 6e 6e | 65 63 74 69 6f 6e 20 28 |ork_Conn|ection (|
|00005b20| 63 68 61 72 20 2a 70 6c | 61 79 65 72 5f 6e 61 6d |char *pl|ayer_nam|
|00005b30| 65 29 3b 20 2a 2f 0a 58 | 2f 2a 20 43 6c 6f 73 65 |e); */.X|/* Close|
|00005b40| 73 20 74 68 65 20 63 6f | 6e 6e 65 63 74 69 6f 6e |s the co|nnection|
|00005b50| 20 74 68 65 20 6e 61 6d | 65 64 20 70 6c 61 79 65 | the nam|ed playe|
|00005b60| 72 2e 20 20 41 6c 6c 6f | 77 73 20 74 68 65 20 63 |r. Allo|ws the c|
|00005b70| 6f 6e 6e 65 63 74 69 6f | 6e 20 74 6f 0a 58 20 20 |onnectio|n to.X |
|00005b80| 20 62 65 20 72 65 2d 65 | 73 74 61 62 6c 69 73 68 | be re-e|stablish|
|00005b90| 65 64 2e 20 2a 2f 0a 58 | 20 0a 45 4e 44 5f 4f 46 |ed. */.X| .END_OF|
|00005ba0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 32 32 |_FILE.if| test 22|
|00005bb0| 39 39 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |99 -ne `|wc -c <'|
|00005bc0| 6e 65 74 77 6f 72 6b 2e | 68 27 60 3b 20 74 68 65 |network.|h'`; the|
|00005bd0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00005be0| 20 5c 22 27 6e 65 74 77 | 6f 72 6b 2e 68 27 5c 22 | \"'netw|ork.h'\"|
|00005bf0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00005c00| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00005c10| 65 6e 64 20 6f 66 20 27 | 6e 65 74 77 6f 72 6b 2e |end of '|network.|
|00005c20| 68 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |h'.fi.if| test -f|
|00005c30| 20 27 6f 6b 62 72 69 64 | 67 65 72 63 27 20 2d 61 | 'okbrid|gerc' -a|
|00005c40| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00005c50| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00005c60| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00005c70| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00005c80| 69 6c 65 20 5c 22 27 6f | 6b 62 72 69 64 67 65 72 |ile \"'o|kbridger|
|00005c90| 63 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |c'\".els|e.echo s|
|00005ca0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00005cb0| 5c 22 27 6f 6b 62 72 69 | 64 67 65 72 63 27 5c 22 |\"'okbri|dgerc'\"|
|00005cc0| 20 5c 28 33 30 34 32 20 | 63 68 61 72 61 63 74 65 | \(3042 |characte|
|00005cd0| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00005ce0| 22 20 3e 27 6f 6b 62 72 | 69 64 67 65 72 63 27 20 |" >'okbr|idgerc' |
|00005cf0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00005d00| 58 23 20 2e 6f 6b 62 72 | 69 64 67 65 72 63 0a 58 |X# .okbr|idgerc.X|
|00005d10| 23 20 0a 58 23 20 54 68 | 69 73 20 69 73 20 61 6e |# .X# Th|is is an|
|00005d20| 20 65 78 61 6d 70 6c 65 | 20 73 74 61 72 74 75 70 | example| startup|
|00005d30| 20 66 69 6c 65 20 66 6f | 72 20 74 68 65 20 6f 6b | file fo|r the ok|
|00005d40| 62 72 69 64 67 65 20 70 | 72 6f 67 72 61 6d 2e 0a |bridge p|rogram..|
|00005d50| 58 23 20 57 68 65 6e 20 | 6f 6b 62 72 69 64 67 65 |X# When |okbridge|
|00005d60| 20 66 69 72 73 74 20 73 | 74 61 72 74 73 20 75 70 | first s|tarts up|
|00005d70| 2c 20 69 74 20 73 65 61 | 72 63 68 65 73 20 66 6f |, it sea|rches fo|
|00005d80| 72 20 74 68 65 20 2e 6f | 6b 62 72 69 64 67 65 72 |r the .o|kbridger|
|00005d90| 63 0a 58 23 20 73 74 61 | 72 74 75 70 20 66 69 6c |c.X# sta|rtup fil|
|00005da0| 65 2e 20 20 54 68 65 20 | 63 75 72 72 65 6e 74 20 |e. The |current |
|00005db0| 77 6f 72 6b 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |working |director|
|00005dc0| 79 20 69 73 20 66 69 72 | 73 74 20 73 65 61 72 63 |y is fir|st searc|
|00005dd0| 68 65 64 2c 0a 58 23 20 | 61 6e 64 20 69 66 20 74 |hed,.X# |and if t|
|00005de0| 68 69 73 20 66 61 69 6c | 73 2c 20 74 68 65 6e 20 |his fail|s, then |
|00005df0| 74 68 65 20 68 6f 6d 65 | 20 64 69 72 65 63 74 6f |the home| directo|
|00005e00| 72 79 20 69 73 20 73 65 | 61 72 63 68 65 64 2e 0a |ry is se|arched..|
|00005e10| 58 23 0a 58 23 20 43 6f | 6d 6d 65 6e 74 20 6c 69 |X#.X# Co|mment li|
|00005e20| 6e 65 73 20 69 6e 20 74 | 68 65 20 2e 6f 6b 62 72 |nes in t|he .okbr|
|00005e30| 69 64 67 65 72 63 20 66 | 69 6c 65 20 62 65 67 69 |idgerc f|ile begi|
|00005e40| 6e 20 77 69 74 68 20 61 | 20 70 6f 75 6e 64 20 73 |n with a| pound s|
|00005e50| 69 67 6e 20 27 23 27 2e | 0a 58 23 20 4e 6f 6e 63 |ign '#'.|.X# Nonc|
|00005e60| 6f 6d 6d 65 6e 74 20 6c | 69 6e 65 73 20 63 6f 6e |omment l|ines con|
|00005e70| 74 61 69 6e 20 61 20 6b | 65 79 77 6f 72 64 20 61 |tain a k|eyword a|
|00005e80| 6e 64 20 61 20 76 61 6c | 75 65 20 61 73 73 6f 63 |nd a val|ue assoc|
|00005e90| 69 61 74 65 64 20 74 6f | 20 74 68 61 74 0a 58 23 |iated to| that.X#|
|00005ea0| 20 6b 65 79 77 6f 72 64 | 2e 20 20 54 68 65 20 70 | keyword|. The p|
|00005eb0| 6f 73 73 69 62 6c 65 20 | 6b 65 79 77 6f 72 64 2c |ossible |keyword,|
|00005ec0| 20 76 61 6c 75 65 20 70 | 61 69 72 73 20 61 72 65 | value p|airs are|
|00005ed0| 20 64 65 73 63 72 69 62 | 65 64 20 62 65 6c 6f 77 | describ|ed below|
|00005ee0| 2e 0a 58 23 0a 58 23 0a | 58 23 20 20 42 45 4c 4c |..X#.X#.|X# BELL|
|00005ef0| 09 09 4f 4e 20 7c 20 4f | 46 46 0a 58 23 09 57 68 |..ON | O|FF.X#.Wh|
|00005f00| 65 6e 20 72 65 71 75 65 | 73 74 69 6e 67 20 69 6e |en reque|sting in|
|00005f10| 70 75 74 20 28 61 20 62 | 69 64 20 6f 72 20 61 20 |put (a b|id or a |
|00005f20| 70 6c 61 79 29 2c 20 74 | 68 65 20 74 65 72 6d 69 |play), t|he termi|
|00005f30| 6e 61 6c 27 73 0a 58 23 | 09 62 65 6c 6c 20 69 73 |nal's.X#|.bell is|
|00005f40| 20 72 75 6e 67 20 62 79 | 20 64 65 66 61 75 6c 74 | rung by| default|
|00005f50| 2e 20 20 48 6f 77 65 76 | 65 72 2c 20 74 68 69 73 |. Howev|er, this|
|00005f60| 20 63 61 6e 20 62 65 20 | 64 69 73 61 62 6c 65 64 | can be |disabled|
|00005f70| 0a 58 23 09 62 79 20 73 | 70 65 63 69 66 79 69 6e |.X#.by s|pecifyin|
|00005f80| 67 20 27 42 45 4c 4c 20 | 4f 46 46 27 2e 20 20 54 |g 'BELL |OFF'. T|
|00005f90| 68 69 73 20 68 61 73 20 | 74 68 65 20 73 61 6d 65 |his has |the same|
|00005fa0| 20 65 66 66 65 63 74 20 | 61 73 20 74 68 65 0a 58 | effect |as the.X|
|00005fb0| 23 09 27 2f 42 45 4c 4c | 20 4f 46 46 27 20 63 6f |#.'/BELL| OFF' co|
|00005fc0| 6d 6d 61 6e 64 2e 0a 58 | 23 20 42 45 4c 4c 20 4f |mmand..X|# BELL O|
|00005fd0| 46 46 0a 58 0a 58 0a 58 | 23 20 48 45 4c 50 46 49 |FF.X.X.X|# HELPFI|
|00005fe0| 4c 45 09 3c 64 69 72 65 | 63 74 6f 72 79 2d 6e 61 |LE.<dire|ctory-na|
|00005ff0| 6d 65 3e 0a 58 23 20 20 | 20 54 68 69 73 20 66 69 |me>.X# | This fi|
|00006000| 65 6c 64 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |eld spec|ifies th|
|00006010| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 6f 66 20 74 68 |e locati|on of th|
|00006020| 65 20 6f 6b 62 72 69 64 | 67 65 20 68 65 6c 70 20 |e okbrid|ge help |
|00006030| 66 69 6c 65 2e 0a 58 23 | 20 48 45 4c 50 46 49 4c |file..X#| HELPFIL|
|00006040| 45 20 2f 75 73 72 2f 6c | 6f 63 61 6c 2f 67 61 6d |E /usr/l|ocal/gam|
|00006050| 65 73 2f 6f 6b 62 72 69 | 64 67 65 2e 68 65 6c 70 |es/okbri|dge.help|
|00006060| 0a 58 20 0a 58 23 20 20 | 20 4c 4f 47 09 09 3c 66 |.X .X# | LOG..<f|
|00006070| 69 6c 65 6e 61 6d 65 3e | 0a 58 23 09 49 66 20 74 |ilename>|.X#.If t|
|00006080| 68 69 73 20 73 74 61 74 | 65 6d 65 6e 74 20 69 73 |his stat|ement is|
|00006090| 20 70 72 65 73 65 6e 74 | 20 69 6e 20 74 68 65 20 | present| in the |
|000060a0| 73 74 61 72 74 75 70 20 | 66 69 6c 65 2c 20 74 68 |startup |file, th|
|000060b0| 65 6e 0a 58 23 09 74 68 | 65 20 68 61 6e 64 73 20 |en.X#.th|e hands |
|000060c0| 77 69 6c 6c 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |will aut|omatical|
|000060d0| 6c 79 20 62 65 20 6c 6f | 67 67 65 64 20 74 6f 20 |ly be lo|gged to |
|000060e0| 74 68 65 20 67 69 76 65 | 6e 20 66 69 6c 65 6e 61 |the give|n filena|
|000060f0| 6d 65 2e 0a 58 23 0a 58 | 4c 4f 47 20 6f 6b 62 72 |me..X#.X|LOG okbr|
|00006100| 69 64 67 65 2e 6c 6f 67 | 0a 58 0a 58 23 20 20 4e |idge.log|.X.X# N|
|00006110| 41 4d 45 09 09 3c 6c 6f | 63 61 6c 2d 70 6c 61 79 |AME..<lo|cal-play|
|00006120| 65 72 2d 6e 61 6d 65 3e | 0a 58 23 09 54 68 69 73 |er-name>|.X#.This|
|00006130| 20 66 69 65 6c 64 20 73 | 70 65 63 69 66 69 65 73 | field s|pecifies|
|00006140| 20 74 68 65 20 6e 61 6d | 65 20 74 68 61 74 20 77 | the nam|e that w|
|00006150| 69 6c 6c 20 62 65 20 75 | 73 65 64 20 74 6f 20 69 |ill be u|sed to i|
|00006160| 64 65 6e 74 69 66 79 0a | 58 23 09 74 68 65 20 6c |dentify.|X#.the l|
|00006170| 6f 63 61 6c 20 70 6c 61 | 79 65 72 20 74 6f 20 74 |ocal pla|yer to t|
|00006180| 68 65 20 6f 74 68 65 72 | 20 70 6c 61 79 65 72 73 |he other| players|
|00006190| 2e 0a 58 23 0a 58 23 20 | 4e 41 4d 45 20 6d 61 74 |..X#.X# |NAME mat|
|000061a0| 74 0a 58 0a 58 23 20 20 | 50 4f 53 49 54 49 4f 4e |t.X.X# |POSITION|
|000061b0| 09 4e 4f 52 54 48 20 7c | 20 45 41 53 54 20 7c 20 |.NORTH || EAST | |
|000061c0| 53 4f 55 54 48 20 7c 20 | 57 45 53 54 0a 58 23 09 |SOUTH | |WEST.X#.|
|000061d0| 54 68 69 73 20 66 69 65 | 6c 64 20 73 70 65 63 69 |This fie|ld speci|
|000061e0| 66 69 65 73 20 74 68 65 | 20 6c 6f 63 61 6c 20 70 |fies the| local p|
|000061f0| 6c 61 79 65 72 27 73 20 | 70 6f 73 69 74 69 6f 6e |layer's |position|
|00006200| 2e 0a 58 23 0a 58 50 4f | 53 49 54 49 4f 4e 20 6e |..X#.XPO|SITION n|
|00006210| 6f 72 74 68 0a 58 0a 58 | 23 20 20 50 4f 52 54 09 |orth.X.X|# PORT.|
|00006220| 09 3c 70 6f 73 69 74 69 | 76 65 2d 69 6e 74 65 67 |.<positi|ve-integ|
|00006230| 65 72 3e 0a 58 23 09 54 | 68 69 73 20 66 69 65 6c |er>.X#.T|his fiel|
|00006240| 64 20 73 70 65 63 69 66 | 69 65 73 20 74 68 65 20 |d specif|ies the |
|00006250| 69 6e 74 65 72 6e 65 74 | 20 70 6f 72 74 20 6e 75 |internet| port nu|
|00006260| 6d 62 65 72 20 74 68 61 | 74 20 77 69 6c 6c 20 62 |mber tha|t will b|
|00006270| 65 0a 58 23 09 75 73 65 | 64 20 66 6f 72 20 63 6f |e.X#.use|d for co|
|00006280| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 73 20 77 69 74 |mmunicat|ions wit|
|00006290| 68 20 74 68 65 20 73 65 | 72 76 65 72 2e 0a 58 23 |h the se|rver..X#|
|000062a0| 0a 58 23 20 50 4f 52 54 | 20 31 31 32 32 0a 58 0a |.X# PORT| 1122.X.|
|000062b0| 58 23 20 20 50 52 4f 4d | 50 54 20 09 4e 4f 20 7c |X# PROM|PT .NO ||
|000062c0| 20 59 45 53 0a 58 23 09 | 54 68 65 20 76 61 6c 75 | YES.X#.|The valu|
|000062d0| 65 20 6f 66 20 74 68 69 | 73 20 66 69 65 6c 64 20 |e of thi|s field |
|000062e0| 69 73 20 6f 6e 6c 79 20 | 72 65 6c 65 76 61 6e 74 |is only |relevant|
|000062f0| 20 69 6e 20 68 61 6e 64 | 73 20 77 68 65 72 65 20 | in hand|s where |
|00006300| 74 68 65 0a 58 23 09 6c | 6f 63 61 6c 20 70 6c 61 |the.X#.l|ocal pla|
|00006310| 79 65 72 20 69 73 20 74 | 68 65 20 64 75 6d 6d 79 |yer is t|he dummy|
|00006320| 2e 20 20 49 6e 20 74 68 | 69 73 20 63 61 73 65 2c |. In th|is case,|
|00006330| 20 74 68 65 20 64 75 6d | 6d 79 20 69 73 0a 58 23 | the dum|my is.X#|
|00006340| 09 6f 72 64 69 6e 61 72 | 69 6c 79 20 70 72 6f 6d |.ordinar|ily prom|
|00006350| 70 74 65 64 20 74 6f 20 | 70 72 65 73 73 20 52 45 |pted to |press RE|
|00006360| 54 55 52 4e 20 61 74 20 | 74 68 65 20 65 6e 64 20 |TURN at |the end |
|00006370| 6f 66 20 65 61 63 68 20 | 74 72 69 63 6b 2e 0a 58 |of each |trick..X|
|00006380| 23 09 54 68 69 73 20 61 | 6c 6c 6f 77 73 20 74 68 |#.This a|llows th|
|00006390| 65 20 64 75 6d 6d 79 20 | 74 6f 20 73 65 65 20 74 |e dummy |to see t|
|000063a0| 68 65 20 63 61 72 64 73 | 20 74 68 61 74 20 61 72 |he cards| that ar|
|000063b0| 65 20 70 6c 61 79 65 64 | 20 61 73 20 74 68 65 79 |e played| as they|
|000063c0| 0a 58 23 09 61 72 65 20 | 70 6c 61 79 65 64 2e 20 |.X#.are |played. |
|000063d0| 20 48 6f 77 65 76 65 72 | 2c 20 69 66 20 27 50 52 | However|, if 'PR|
|000063e0| 4f 4d 50 54 20 4e 4f 27 | 20 69 73 20 73 70 65 63 |OMPT NO'| is spec|
|000063f0| 69 66 69 65 64 2c 20 74 | 68 65 6e 20 74 68 65 0a |ified, t|hen the.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.