home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 52 4f 53 53 | 40 65 6d 66 37 38 30 2e |om: ROSS|@emf780.|
|00000030| 64 65 6e 2e 6d 6d 63 2e | 63 6f 6d 20 28 22 50 65 |den.mmc.|com ("Pe|
|00000040| 72 72 79 20 52 2e 20 52 | 6f 73 73 22 29 0a 53 75 |rry R. R|oss").Su|
|00000050| 62 6a 65 63 74 3a 20 20 | 52 45 50 4f 53 54 3a 20 |bject: |REPOST: |
|00000060| 76 32 38 69 30 39 33 3a | 20 20 6c 64 62 20 2d 20 |v28i093:| ldb - |
|00000070| 50 6c 61 79 20 62 61 63 | 6b 67 61 6d 6d 6f 6e 20 |Play bac|kgammon |
|00000080| 62 79 20 65 2d 6d 61 69 | 6c 2c 20 50 61 72 74 30 |by e-mai|l, Part0|
|00000090| 31 2f 30 35 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |1/05.Mes|sage-ID:|
|000000a0| 20 3c 31 39 39 32 4d 61 | 72 31 33 2e 31 38 33 38 | <1992Ma|r13.1838|
|000000b0| 35 38 2e 32 31 32 38 34 | 40 73 70 61 72 6b 79 2e |58.21284|@sparky.|
|000000c0| 69 6d 64 2e 73 74 65 72 | 6c 69 6e 67 2e 63 6f 6d |imd.ster|ling.com|
|000000d0| 3e 0a 58 2d 4d 64 34 2d | 53 69 67 6e 61 74 75 72 |>.X-Md4-|Signatur|
|000000e0| 65 3a 20 39 31 64 35 34 | 32 66 36 36 65 65 64 66 |e: 91d54|2f66eedf|
|000000f0| 64 31 33 62 36 64 38 63 | 32 32 34 66 35 39 38 32 |d13b6d8c|224f5982|
|00000100| 66 62 35 0a 44 61 74 65 | 3a 20 46 72 69 2c 20 31 |fb5.Date|: Fri, 1|
|00000110| 33 20 4d 61 72 20 31 39 | 39 32 20 31 38 3a 33 38 |3 Mar 19|92 18:38|
|00000120| 3a 35 38 20 47 4d 54 0a | 41 70 70 72 6f 76 65 64 |:58 GMT.|Approved|
|00000130| 3a 20 6b 65 6e 74 40 73 | 70 61 72 6b 79 2e 69 6d |: kent@s|parky.im|
|00000140| 64 2e 73 74 65 72 6c 69 | 6e 67 2e 63 6f 6d 0a 0a |d.sterli|ng.com..|
|00000150| 53 75 62 6d 69 74 74 65 | 64 2d 62 79 3a 20 52 4f |Submitte|d-by: RO|
|00000160| 53 53 40 65 6d 66 37 38 | 30 2e 64 65 6e 2e 6d 6d |SS@emf78|0.den.mm|
|00000170| 63 2e 63 6f 6d 20 28 50 | 65 72 72 79 20 52 2e 20 |c.com (P|erry R. |
|00000180| 52 6f 73 73 29 0a 50 6f | 73 74 69 6e 67 2d 6e 75 |Ross).Po|sting-nu|
|00000190| 6d 62 65 72 3a 20 56 6f | 6c 75 6d 65 20 32 38 2c |mber: Vo|lume 28,|
|000001a0| 20 49 73 73 75 65 20 39 | 33 0a 41 72 63 68 69 76 | Issue 9|3.Archiv|
|000001b0| 65 2d 6e 61 6d 65 3a 20 | 6c 64 62 2f 70 61 72 74 |e-name: |ldb/part|
|000001c0| 30 31 0a 45 6e 76 69 72 | 6f 6e 6d 65 6e 74 3a 20 |01.Envir|onment: |
|000001d0| 55 4e 49 58 2c 20 43 2c | 20 56 4d 53 2c 20 56 41 |UNIX, C,| VMS, VA|
|000001e0| 58 43 2c 20 43 55 52 53 | 45 53 2c 20 33 32 42 49 |XC, CURS|ES, 32BI|
|000001f0| 54 0a 0a 09 09 4c 6f 6e | 67 20 44 69 73 74 61 6e |T....Lon|g Distan|
|00000200| 63 65 20 42 61 63 6b 67 | 61 6d 6d 6f 6e 0a 0a 09 |ce Backg|ammon...|
|00000210| 54 68 69 73 20 69 73 20 | 61 20 70 72 6f 67 72 61 |This is |a progra|
|00000220| 6d 20 74 68 61 74 20 6c | 65 74 73 20 74 77 6f 20 |m that l|ets two |
|00000230| 70 65 6f 70 6c 65 20 65 | 61 73 69 6c 79 20 70 6c |people e|asily pl|
|00000240| 61 79 20 62 61 63 6b 67 | 61 6d 6d 6f 6e 0a 62 79 |ay backg|ammon.by|
|00000250| 20 65 2d 6d 61 69 6c 2e | 20 20 49 74 20 63 75 72 | e-mail.| It cur|
|00000260| 72 65 6e 74 6c 79 20 72 | 75 6e 73 20 6f 6e 6c 79 |rently r|uns only|
|00000270| 20 6f 6e 20 63 68 61 72 | 61 63 74 65 72 2d 6f 72 | on char|acter-or|
|00000280| 69 65 6e 74 65 64 20 74 | 65 72 6d 69 6e 61 6c 73 |iented t|erminals|
|00000290| 0a 28 6f 72 20 65 6d 75 | 6c 61 74 6f 72 73 20 74 |.(or emu|lators t|
|000002a0| 68 65 72 65 6f 66 29 20 | 75 6e 64 65 72 20 74 68 |hereof) |under th|
|000002b0| 65 20 63 75 72 73 65 73 | 20 70 61 63 6b 61 67 65 |e curses| package|
|000002c0| 2e 20 20 49 74 20 73 68 | 6f 75 6c 64 20 77 6f 72 |. It sh|ould wor|
|000002d0| 6b 0a 6f 6e 20 61 6e 79 | 20 33 32 20 62 69 74 20 |k.on any| 32 bit |
|000002e0| 55 4e 49 58 20 73 79 73 | 74 65 6d 2c 20 61 73 20 |UNIX sys|tem, as |
|000002f0| 77 65 6c 6c 20 61 73 20 | 75 6e 64 65 72 20 56 4d |well as |under VM|
|00000300| 53 20 77 69 74 68 20 56 | 41 58 20 43 2e 0a 0a 09 |S with V|AX C....|
|00000310| 4c 64 62 20 74 61 6b 65 | 73 20 63 61 72 65 20 6f |Ldb take|s care o|
|00000320| 66 20 72 6f 6c 6c 69 6e | 67 20 64 69 63 65 2c 20 |f rollin|g dice, |
|00000330| 63 68 65 63 6b 69 6e 67 | 20 6d 6f 76 65 73 2c 20 |checking| moves, |
|00000340| 61 6e 64 0a 63 6f 6d 6d | 75 6e 69 63 61 74 69 6e |and.comm|unicatin|
|00000350| 67 20 77 69 74 68 20 79 | 6f 75 72 20 6f 70 70 6f |g with y|our oppo|
|00000360| 6e 65 6e 74 27 73 20 6c | 64 62 20 76 69 61 20 65 |nent's l|db via e|
|00000370| 2d 6d 61 69 6c 2e 20 20 | 44 75 70 6c 69 63 61 74 |-mail. |Duplicat|
|00000380| 65 64 20 6d 61 69 6c 0a | 6d 65 73 73 61 67 65 73 |ed mail.|messages|
|00000390| 20 61 72 65 20 72 65 6a | 65 63 74 65 64 2c 20 61 | are rej|ected, a|
|000003a0| 6e 64 20 6c 6f 73 74 20 | 6d 65 73 73 61 67 65 73 |nd lost |messages|
|000003b0| 20 6d 61 79 20 62 65 20 | 72 65 67 65 6e 65 72 61 | may be |regenera|
|000003c0| 74 65 64 20 65 61 73 69 | 6c 79 2e 0a 47 61 6d 6d |ted easi|ly..Gamm|
|000003d0| 6f 6e 73 20 61 6e 64 20 | 62 61 63 6b 67 61 6d 6d |ons and |backgamm|
|000003e0| 6f 6e 73 20 61 72 65 20 | 64 65 74 65 63 74 65 64 |ons are |detected|
|000003f0| 2c 20 61 6e 64 20 74 68 | 65 20 67 61 6d 65 20 76 |, and th|e game v|
|00000400| 61 6c 75 65 20 69 73 20 | 61 75 74 6f 6d 61 74 69 |alue is |automati|
|00000410| 63 61 6c 6c 79 0a 63 61 | 6c 63 75 6c 61 74 65 64 |cally.ca|lculated|
|00000420| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|00000430| 68 65 20 67 61 6d 65 2e | 20 20 44 6f 75 62 6c 69 |he game.| Doubli|
|00000440| 6e 67 20 69 73 20 66 75 | 6c 6c 79 20 73 75 70 70 |ng is fu|lly supp|
|00000450| 6f 72 74 65 64 2c 20 61 | 6e 64 0a 61 75 74 6f 6d |orted, a|nd.autom|
|00000460| 61 74 69 63 20 64 6f 75 | 62 6c 65 73 20 28 77 68 |atic dou|bles (wh|
|00000470| 65 6e 20 74 68 65 72 65 | 20 69 73 20 61 20 74 69 |en there| is a ti|
|00000480| 65 64 20 6f 70 65 6e 69 | 6e 67 20 72 6f 6c 6c 29 |ed openi|ng roll)|
|00000490| 20 6d 61 79 20 62 65 20 | 65 6e 61 62 6c 65 64 0a | may be |enabled.|
|000004a0| 61 74 20 74 68 65 20 75 | 73 65 72 27 73 20 6f 70 |at the u|ser's op|
|000004b0| 74 69 6f 6e 2e 20 20 4c | 64 62 20 61 6c 73 6f 20 |tion. L|db also |
|000004c0| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 65 6e |allows y|ou to en|
|000004d0| 63 6c 6f 73 65 20 61 20 | 74 77 6f 2d 6c 69 6e 65 |close a |two-line|
|000004e0| 20 6d 65 73 73 61 67 65 | 0a 77 69 74 68 20 65 61 | message|.with ea|
|000004f0| 63 68 20 6d 6f 76 65 20 | 77 68 69 63 68 20 77 69 |ch move |which wi|
|00000500| 6c 6c 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 20 |ll be di|splayed |
|00000510| 6f 6e 20 79 6f 75 72 20 | 6f 70 70 6f 6e 65 6e 74 |on your |opponent|
|00000520| 27 73 20 73 63 72 65 65 | 6e 2e 0a 0a 09 54 6f 20 |'s scree|n....To |
|00000530| 73 74 61 72 74 20 61 20 | 67 61 6d 65 2c 20 79 6f |start a |game, yo|
|00000540| 75 20 6f 6e 6c 79 20 6e | 65 65 64 20 74 6f 20 6b |u only n|eed to k|
|00000550| 6e 6f 77 20 79 6f 75 72 | 20 6f 70 70 6f 6e 65 6e |now your| opponen|
|00000560| 74 27 73 20 65 2d 6d 61 | 69 6c 0a 61 64 64 72 65 |t's e-ma|il.addre|
|00000570| 73 73 2e 20 20 4c 64 62 | 20 77 69 6c 6c 20 68 61 |ss. Ldb| will ha|
|00000580| 6e 64 6c 65 20 61 6c 6c | 20 6e 65 67 6f 74 69 61 |ndle all| negotia|
|00000590| 74 69 6f 6e 73 20 69 6e | 76 6f 6c 76 65 64 20 77 |tions in|volved w|
|000005a0| 69 74 68 20 73 74 61 72 | 74 69 6e 67 20 74 68 65 |ith star|ting the|
|000005b0| 0a 67 61 6d 65 2c 20 70 | 65 72 66 6f 72 6d 69 6e |.game, p|erformin|
|000005c0| 67 20 74 68 65 20 6f 70 | 65 6e 69 6e 67 20 72 6f |g the op|ening ro|
|000005d0| 6c 6c 2c 20 72 65 2d 72 | 6f 6c 6c 69 6e 67 20 77 |ll, re-r|olling w|
|000005e0| 68 65 6e 20 74 68 65 72 | 65 20 69 73 20 61 20 74 |hen ther|e is a t|
|000005f0| 69 65 2c 20 65 74 63 2e | 0a 54 68 65 20 52 45 41 |ie, etc.|.The REA|
|00000600| 44 4d 45 20 66 69 6c 65 | 20 68 61 73 20 69 6e 73 |DME file| has ins|
|00000610| 74 72 75 63 74 69 6f 6e | 73 20 66 6f 72 20 67 65 |truction|s for ge|
|00000620| 74 74 69 6e 67 20 73 74 | 61 72 74 65 64 20 71 75 |tting st|arted qu|
|00000630| 69 63 6b 6c 79 2c 20 61 | 6e 64 0a 74 68 65 20 6d |ickly, a|nd.the m|
|00000640| 61 6e 75 61 6c 20 68 61 | 73 20 6d 6f 72 65 20 64 |anual ha|s more d|
|00000650| 65 74 61 69 6c 65 64 20 | 69 6e 66 6f 72 6d 61 74 |etailed |informat|
|00000660| 69 6f 6e 2e 0a 0a 09 4e | 6f 74 65 20 74 68 61 74 |ion....N|ote that|
|00000670| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 64 6f | this pr|ogram do|
|00000680| 65 73 20 6e 6f 74 20 70 | 6c 61 79 20 62 61 63 6b |es not p|lay back|
|00000690| 67 61 6d 6d 6f 6e 20 69 | 74 73 65 6c 66 2c 20 69 |gammon i|tself, i|
|000006a0| 74 0a 69 73 20 6d 65 72 | 65 6c 79 20 65 6e 61 62 |t.is mer|ely enab|
|000006b0| 6c 65 73 20 74 77 6f 20 | 68 75 6d 61 6e 73 20 63 |les two |humans c|
|000006c0| 6f 6e 6e 65 63 74 65 64 | 20 6f 6e 6c 79 20 62 79 |onnected| only by|
|000006d0| 20 65 2d 6d 61 69 6c 20 | 74 6f 20 64 6f 20 73 6f | e-mail |to do so|
|000006e0| 2e 0a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 23 21 20 |..------|----.#! |
|000006f0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|00000700| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|00000710| 65 2e 20 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |e. Remo|ve anyth|
|00000720| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 69 73 20 |ing befo|re this |
|00000730| 6c 69 6e 65 2c 20 74 68 | 65 6e 20 75 6e 70 61 63 |line, th|en unpac|
|00000740| 6b 0a 23 20 69 74 20 62 | 79 20 73 61 76 69 6e 67 |k.# it b|y saving|
|00000750| 20 69 74 20 69 6e 74 6f | 20 61 20 66 69 6c 65 20 | it into| a file |
|00000760| 61 6e 64 20 74 79 70 69 | 6e 67 20 22 73 68 20 66 |and typi|ng "sh f|
|00000770| 69 6c 65 22 2e 20 20 54 | 6f 20 6f 76 65 72 77 72 |ile". T|o overwr|
|00000780| 69 74 65 20 65 78 69 73 | 74 69 6e 67 0a 23 20 66 |ite exis|ting.# f|
|00000790| 69 6c 65 73 2c 20 74 79 | 70 65 20 22 73 68 20 66 |iles, ty|pe "sh f|
|000007a0| 69 6c 65 20 2d 63 22 2e | 20 20 59 6f 75 20 63 61 |ile -c".| You ca|
|000007b0| 6e 20 61 6c 73 6f 20 66 | 65 65 64 20 74 68 69 73 |n also f|eed this|
|000007c0| 20 61 73 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | as stan|dard inp|
|000007d0| 75 74 20 76 69 61 0a 23 | 20 75 6e 73 68 61 72 2c |ut via.#| unshar,|
|000007e0| 20 6f 72 20 62 79 20 74 | 79 70 69 6e 67 20 22 73 | or by t|yping "s|
|000007f0| 68 20 3c 66 69 6c 65 22 | 2c 20 65 2e 67 2e 2e 20 |h <file"|, e.g.. |
|00000800| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|00000810| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|00000820| 75 0a 23 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |u.# will| see the|
|00000830| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|00000840| 67 65 20 61 74 20 74 68 | 65 20 65 6e 64 3a 0a 23 |ge at th|e end:.#|
|00000850| 09 09 22 45 6e 64 20 6f | 66 20 61 72 63 68 69 76 |.."End o|f archiv|
|00000860| 65 20 31 20 28 6f 66 20 | 35 29 2e 22 0a 23 20 43 |e 1 (of |5).".# C|
|00000870| 6f 6e 74 65 6e 74 73 3a | 20 20 4d 41 4e 49 46 45 |ontents:| MANIFE|
|00000880| 53 54 20 4d 61 6b 65 66 | 69 6c 65 20 52 45 41 44 |ST Makef|ile READ|
|00000890| 4d 45 20 62 6f 61 72 64 | 2e 63 20 63 68 65 63 6b |ME board|.c check|
|000008a0| 2e 63 20 63 6f 6e 74 72 | 6f 6c 2e 63 20 67 61 6d |.c contr|ol.c gam|
|000008b0| 65 2e 63 0a 23 20 20 20 | 6d 61 6b 65 6c 64 62 2e |e.c.# |makeldb.|
|000008c0| 63 6f 6d 20 6d 6f 76 65 | 2e 63 20 70 61 74 63 68 |com move|.c patch|
|000008d0| 6c 65 76 65 6c 2e 68 20 | 72 65 61 64 6d 61 69 6c |level.h |readmail|
|000008e0| 2e 63 20 74 5f 65 6d 61 | 69 6c 2e 63 0a 23 20 57 |.c t_ema|il.c.# W|
|000008f0| 72 61 70 70 65 64 20 62 | 79 20 72 6f 73 73 40 65 |rapped b|y ross@e|
|00000900| 6d 66 37 38 30 20 6f 6e | 20 54 75 65 20 4d 61 72 |mf780 on| Tue Mar|
|00000910| 20 31 30 20 30 39 3a 32 | 34 3a 31 31 20 31 39 39 | 10 09:2|4:11 199|
|00000920| 32 0a 50 41 54 48 3d 2f | 62 69 6e 3a 2f 75 73 72 |2.PATH=/|bin:/usr|
|00000930| 2f 62 69 6e 3a 2f 75 73 | 72 2f 75 63 62 20 3b 20 |/bin:/us|r/ucb ; |
|00000940| 65 78 70 6f 72 74 20 50 | 41 54 48 0a 69 66 20 74 |export P|ATH.if t|
|00000950| 65 73 74 20 2d 66 20 27 | 4d 41 4e 49 46 45 53 54 |est -f '|MANIFEST|
|00000960| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00000970| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00000980| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00000990| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000009a0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 4d 41 4e 49 46 |ng file |\"'MANIF|
|000009b0| 45 53 54 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |EST'\".e|lse.echo|
|000009c0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000009d0| 67 20 5c 22 27 4d 41 4e | 49 46 45 53 54 27 5c 22 |g \"'MAN|IFEST'\"|
|000009e0| 20 5c 28 31 34 35 30 20 | 63 68 61 72 61 63 74 65 | \(1450 |characte|
|000009f0| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00000a00| 22 20 3e 27 4d 41 4e 49 | 46 45 53 54 27 20 3c 3c |" >'MANI|FEST' <<|
|00000a10| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 20 |'END_OF_|FILE'.X |
|00000a20| 20 20 46 69 6c 65 20 4e | 61 6d 65 09 09 41 72 63 | File N|ame..Arc|
|00000a30| 68 69 76 65 20 23 09 44 | 65 73 63 72 69 70 74 69 |hive #.D|escripti|
|00000a40| 6f 6e 0a 58 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |on.X----|--------|
|00000a50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000a80| 58 20 4d 41 4e 49 46 45 | 53 54 20 20 20 20 20 20 |X MANIFE|ST |
|00000a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 4c | | 1.L|
|00000aa0| 69 73 74 20 6f 66 20 66 | 69 6c 65 73 0a 58 20 4d |ist of f|iles.X M|
|00000ab0| 61 6b 65 66 69 6c 65 20 | 20 20 20 20 20 20 20 20 |akefile | |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 31 09 43 6f 6d 70 | | 1.Comp|
|00000ad0| 69 6c 61 74 69 6f 6e 20 | 69 6e 73 74 72 75 63 74 |ilation |instruct|
|00000ae0| 69 6f 6e 73 0a 58 20 52 | 45 41 44 4d 45 20 20 20 |ions.X R|EADME |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b00| 20 20 31 09 49 6e 66 6f | 20 66 69 6c 65 0a 58 20 | 1.Info| file.X |
|00000b10| 62 6f 61 72 64 2e 63 20 | 20 20 20 20 20 20 20 20 |board.c | |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 52 6f 75 | | 1.Rou|
|00000b30| 74 69 6e 65 73 20 70 65 | 72 74 61 69 6e 69 6e 67 |tines pe|rtaining|
|00000b40| 20 74 6f 20 73 65 74 74 | 69 6e 67 20 75 70 20 62 | to sett|ing up b|
|00000b50| 6f 61 72 64 73 0a 58 20 | 63 68 65 63 6b 2e 63 20 |oards.X |check.c |
|00000b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b70| 20 20 20 31 09 52 6f 75 | 74 69 6e 65 73 20 74 68 | 1.Rou|tines th|
|00000b80| 61 74 20 63 68 65 63 6b | 20 66 6f 72 20 6c 65 67 |at check| for leg|
|00000b90| 61 6c 20 6d 6f 76 65 73 | 0a 58 20 63 6f 6e 74 72 |al moves|.X contr|
|00000ba0| 6f 6c 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |ol.c | |
|00000bb0| 20 20 20 20 20 20 31 09 | 46 75 6e 63 74 69 6f 6e | 1.|Function|
|00000bc0| 20 74 6f 20 68 61 6e 64 | 6c 65 20 74 68 65 20 2d | to hand|le the -|
|00000bd0| 63 6f 6e 74 72 6f 6c 20 | 6f 70 74 69 6f 6e 0a 58 |control |option.X|
|00000be0| 20 66 65 5f 63 75 72 73 | 65 73 2e 63 20 20 20 20 | fe_curs|es.c |
|00000bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 35 09 46 72 | | 5.Fr|
|00000c00| 6f 6e 74 20 65 6e 64 20 | 72 6f 75 74 69 6e 65 73 |ont end |routines|
|00000c10| 2c 20 62 61 73 65 64 20 | 6f 6e 20 63 75 72 73 65 |, based |on curse|
|00000c20| 73 20 70 61 63 6b 61 67 | 65 0a 58 20 67 61 6d 65 |s packag|e.X game|
|00000c30| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00000c40| 20 20 20 20 20 20 20 31 | 09 46 75 6e 63 74 69 6f | 1|.Functio|
|00000c50| 6e 73 20 74 6f 20 63 72 | 65 61 74 65 2f 64 65 6c |ns to cr|eate/del|
|00000c60| 65 74 65 2f 66 69 6e 64 | 20 67 61 6d 65 73 0a 58 |ete/find| games.X|
|00000c70| 20 6c 64 62 2e 68 20 20 | 20 20 20 20 20 20 20 20 | ldb.h | |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 09 4d 61 | | 2.Ma|
|00000c90| 73 74 65 72 20 69 6e 63 | 6c 75 64 65 20 66 69 6c |ster inc|lude fil|
|00000ca0| 65 0a 58 20 6c 64 62 2e | 6d 61 6e 20 20 20 20 20 |e.X ldb.|man |
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 34 | | 4|
|00000cc0| 09 54 68 65 20 75 73 65 | 72 27 73 20 6d 61 6e 75 |.The use|r's manu|
|00000cd0| 61 6c 20 73 6f 75 72 63 | 65 20 28 22 6d 61 6b 65 |al sourc|e ("make|
|00000ce0| 20 6c 64 62 2e 64 6f 63 | 22 29 0a 58 20 6d 61 69 | ldb.doc|").X mai|
|00000cf0| 6e 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n.c | |
|00000d00| 20 20 20 20 20 20 20 20 | 32 09 54 68 65 20 6d 61 | |2.The ma|
|00000d10| 69 6e 20 70 72 6f 67 72 | 61 6d 0a 58 20 6d 61 6b |in progr|am.X mak|
|00000d20| 65 6c 64 62 2e 63 6f 6d | 20 20 20 20 20 20 20 20 |eldb.com| |
|00000d30| 20 20 20 20 20 20 20 20 | 31 09 43 6f 6d 6d 61 6e | |1.Comman|
|00000d40| 64 20 66 69 6c 65 20 74 | 6f 20 62 75 69 6c 64 20 |d file t|o build |
|00000d50| 6c 64 62 20 75 6e 64 65 | 72 20 76 61 78 20 63 0a |ldb unde|r vax c.|
|00000d60| 58 20 6d 69 73 63 2e 63 | 20 20 20 20 20 20 20 20 |X misc.c| |
|00000d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 32 09 4d | | 2.M|
|00000d80| 69 73 63 65 6c 6c 61 6e | 65 6f 75 73 20 68 61 6e |iscellan|eous han|
|00000d90| 64 79 20 72 6f 75 74 69 | 6e 65 73 0a 58 20 6d 6f |dy routi|nes.X mo|
|00000da0| 76 65 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |ve.c | |
|00000db0| 20 20 20 20 20 20 20 20 | 20 31 09 50 65 72 66 6f | | 1.Perfo|
|00000dc0| 72 6d 69 6e 67 2f 63 68 | 65 63 6b 69 6e 67 20 6d |rming/ch|ecking m|
|00000dd0| 6f 76 65 73 0a 58 20 70 | 61 74 63 68 6c 65 76 65 |oves.X p|atchleve|
|00000de0| 6c 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |l.h | |
|00000df0| 20 20 31 09 50 61 74 63 | 68 20 6c 65 76 65 6c 20 | 1.Patc|h level |
|00000e00| 28 66 6f 72 20 70 61 74 | 63 68 20 70 72 6f 67 72 |(for pat|ch progr|
|00000e10| 61 6d 29 0a 58 20 70 72 | 6f 63 65 73 73 2e 63 20 |am).X pr|ocess.c |
|00000e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e30| 20 33 09 52 6f 75 74 69 | 6e 65 73 20 74 6f 20 70 | 3.Routi|nes to p|
|00000e40| 65 72 66 6f 72 6d 20 6c | 6f 63 61 6c 20 67 61 6d |erform l|ocal gam|
|00000e50| 65 20 70 72 6f 63 65 73 | 73 69 6e 67 0a 58 20 72 |e proces|sing.X r|
|00000e60| 5f 78 72 61 6e 64 2e 63 | 20 20 20 20 20 20 20 20 |_xrand.c| |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 32 09 52 6f 6c 6c | | 2.Roll|
|00000e80| 20 72 6f 75 74 69 6e 65 | 2c 20 62 61 73 65 64 20 | routine|, based |
|00000e90| 6f 6e 20 78 72 61 6e 64 | 0a 58 20 72 63 76 6f 70 |on xrand|.X rcvop|
|00000ea0| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00000eb0| 20 20 20 20 20 20 33 09 | 52 6f 75 74 69 6e 65 73 | 3.|Routines|
|00000ec0| 20 74 6f 20 68 61 6e 64 | 6c 65 20 72 65 63 65 69 | to hand|le recei|
|00000ed0| 76 65 64 20 6f 70 65 72 | 61 74 69 6f 6e 73 0a 58 |ved oper|ations.X|
|00000ee0| 20 72 65 61 64 6d 61 69 | 6c 2e 63 20 20 20 20 20 | readmai|l.c |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 52 6f | | 1.Ro|
|00000f00| 75 74 69 6e 65 73 20 74 | 68 61 74 20 72 65 61 64 |utines t|hat read|
|00000f10| 20 26 20 70 72 6f 63 65 | 73 73 20 69 6e 63 6f 6d | & proce|ss incom|
|00000f20| 69 6e 67 20 6d 61 69 6c | 0a 58 20 73 61 76 65 2e |ing mail|.X save.|
|00000f30| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|00000f40| 20 20 20 20 20 20 33 09 | 52 6f 75 74 69 6e 65 73 | 3.|Routines|
|00000f50| 20 74 68 61 74 20 73 61 | 76 65 20 61 6e 64 20 6c | that sa|ve and l|
|00000f60| 6f 61 64 20 74 68 69 6e | 67 73 0a 58 20 74 5f 65 |oad thin|gs.X t_e|
|00000f70| 6d 61 69 6c 2e 63 20 20 | 20 20 20 20 20 20 20 20 |mail.c | |
|00000f80| 20 20 20 20 20 20 20 20 | 31 09 54 72 61 6e 73 70 | |1.Transp|
|00000f90| 6f 72 74 20 72 6f 75 74 | 69 6e 65 2c 20 62 61 73 |ort rout|ine, bas|
|00000fa0| 65 64 20 6f 6e 20 6d 61 | 69 6c 0a 58 20 76 61 72 |ed on ma|il.X var|
|00000fb0| 73 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.c | |
|00000fc0| 20 20 20 20 20 20 20 20 | 32 09 41 6c 6c 20 67 6c | |2.All gl|
|00000fd0| 6f 62 61 6c 20 76 61 72 | 69 61 62 6c 65 73 2e 0a |obal var|iables..|
|00000fe0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00000ff0| 65 73 74 20 31 34 35 30 | 20 2d 6e 65 20 60 77 63 |est 1450| -ne `wc|
|00001000| 20 2d 63 20 3c 27 4d 41 | 4e 49 46 45 53 54 27 60 | -c <'MA|NIFEST'`|
|00001010| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00001020| 73 68 61 72 3a 20 5c 22 | 27 4d 41 4e 49 46 45 53 |shar: \"|'MANIFES|
|00001030| 54 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |T'\" unp|acked wi|
|00001040| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00001050| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 4d 41 4e 49 |i.# end |of 'MANI|
|00001060| 46 45 53 54 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |FEST'.fi|.if test|
|00001070| 20 2d 66 20 27 4d 61 6b | 65 66 69 6c 65 27 20 2d | -f 'Mak|efile' -|
|00001080| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00001090| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000010a0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000010b0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000010c0| 66 69 6c 65 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |file \"'|Makefile|
|000010d0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|000010e0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000010f0| 22 27 4d 61 6b 65 66 69 | 6c 65 27 5c 22 20 5c 28 |"'Makefi|le'\" \(|
|00001100| 33 32 30 31 20 63 68 61 | 72 61 63 74 65 72 73 5c |3201 cha|racters\|
|00001110| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00001120| 27 4d 61 6b 65 66 69 6c | 65 27 20 3c 3c 27 45 4e |'Makefil|e' <<'EN|
|00001130| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 20 4d 61 |D_OF_FIL|E'.X# Ma|
|00001140| 6b 65 66 69 6c 65 20 66 | 6f 72 20 6c 64 62 09 38 |kefile f|or ldb.8|
|00001150| 2f 33 2f 39 31 0a 58 23 | 0a 58 23 20 43 6f 70 79 |/3/91.X#|.X# Copy|
|00001160| 72 69 67 68 74 20 31 39 | 39 31 20 20 50 65 72 72 |right 19|91 Perr|
|00001170| 79 20 52 2e 20 52 6f 73 | 73 0a 58 23 0a 58 23 20 |y R. Ros|s.X#.X# |
|00001180| 50 65 72 6d 69 73 73 69 | 6f 6e 20 74 6f 20 75 73 |Permissi|on to us|
|00001190| 65 2c 20 63 6f 70 79 2c | 20 6d 6f 64 69 66 79 2c |e, copy,| modify,|
|000011a0| 20 61 6e 64 20 64 69 73 | 74 72 69 62 75 74 65 20 | and dis|tribute |
|000011b0| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 61 6e |this sof|tware an|
|000011c0| 64 20 69 74 73 0a 58 23 | 20 64 6f 63 75 6d 65 6e |d its.X#| documen|
|000011d0| 74 61 74 69 6f 6e 20 77 | 69 74 68 6f 75 74 20 66 |tation w|ithout f|
|000011e0| 65 65 20 69 73 20 68 65 | 72 65 62 79 20 67 72 61 |ee is he|reby gra|
|000011f0| 6e 74 65 64 2c 20 73 75 | 62 6a 65 63 74 20 74 6f |nted, su|bject to|
|00001200| 20 74 68 65 20 72 65 73 | 74 72 69 63 74 69 6f 6e | the res|triction|
|00001210| 73 0a 58 23 20 64 65 74 | 61 69 6c 65 64 20 69 6e |s.X# det|ailed in|
|00001220| 20 74 68 65 20 52 45 41 | 44 4d 45 20 66 69 6c 65 | the REA|DME file|
|00001230| 2c 20 77 68 69 63 68 20 | 69 73 20 69 6e 63 6c 75 |, which |is inclu|
|00001240| 64 65 64 20 68 65 72 65 | 20 62 79 20 72 65 66 65 |ded here| by refe|
|00001250| 72 65 6e 63 65 2e 0a 58 | 23 20 41 6e 79 20 6f 74 |rence..X|# Any ot|
|00001260| 68 65 72 20 75 73 65 20 | 72 65 71 75 69 72 65 73 |her use |requires|
|00001270| 20 77 72 69 74 74 65 6e | 20 70 65 72 6d 69 73 73 | written| permiss|
|00001280| 69 6f 6e 20 66 72 6f 6d | 20 74 68 65 20 61 75 74 |ion from| the aut|
|00001290| 68 6f 72 2e 20 20 54 68 | 69 73 20 73 6f 66 74 77 |hor. Th|is softw|
|000012a0| 61 72 65 0a 58 23 20 69 | 73 20 64 69 73 74 72 69 |are.X# i|s distri|
|000012b0| 62 75 74 65 64 20 22 61 | 73 20 69 73 22 20 77 69 |buted "a|s is" wi|
|000012c0| 74 68 6f 75 74 20 61 6e | 79 20 77 61 72 72 61 6e |thout an|y warran|
|000012d0| 74 79 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 61 6e |ty, incl|uding an|
|000012e0| 79 20 69 6d 70 6c 69 65 | 64 0a 58 23 20 77 61 72 |y implie|d.X# war|
|000012f0| 72 61 6e 74 69 65 73 20 | 6f 66 20 6d 65 72 63 68 |ranties |of merch|
|00001300| 61 6e 74 61 62 69 6c 69 | 74 79 20 6f 72 20 66 69 |antabili|ty or fi|
|00001310| 74 6e 65 73 73 20 66 6f | 72 20 61 20 70 61 72 74 |tness fo|r a part|
|00001320| 69 63 75 6c 61 72 20 70 | 75 72 70 6f 73 65 2e 0a |icular p|urpose..|
|00001330| 58 23 20 54 68 65 20 61 | 75 74 68 6f 72 20 73 68 |X# The a|uthor sh|
|00001340| 61 6c 6c 20 6e 6f 74 20 | 62 65 20 6c 69 61 62 6c |all not |be liabl|
|00001350| 65 20 66 6f 72 20 61 6e | 79 20 64 61 6d 61 67 65 |e for an|y damage|
|00001360| 73 20 72 65 73 75 6c 74 | 69 6e 67 20 66 72 6f 6d |s result|ing from|
|00001370| 20 74 68 65 0a 58 23 20 | 75 73 65 20 6f 66 20 74 | the.X# |use of t|
|00001380| 68 69 73 20 73 6f 66 74 | 77 61 72 65 2e 20 20 42 |his soft|ware. B|
|00001390| 79 20 75 73 69 6e 67 20 | 74 68 69 73 20 73 6f 66 |y using |this sof|
|000013a0| 74 77 61 72 65 2c 20 74 | 68 65 20 75 73 65 72 20 |tware, t|he user |
|000013b0| 61 67 72 65 65 73 0a 58 | 23 20 74 6f 20 74 68 65 |agrees.X|# to the|
|000013c0| 73 65 20 74 65 72 6d 73 | 2e 0a 58 0a 58 23 23 23 |se terms|..X.X###|
|000013d0| 20 49 4e 53 54 41 4c 4c | 41 54 49 4f 4e 20 4f 50 | INSTALL|ATION OP|
|000013e0| 54 49 4f 4e 53 20 23 23 | 23 0a 58 23 20 49 66 20 |TIONS ##|#.X# If |
|000013f0| 79 6f 75 72 20 68 6f 73 | 74 20 75 73 65 73 20 61 |your hos|t uses a|
|00001400| 6e 20 61 6e 63 69 65 6e | 74 20 76 65 72 73 69 6f |n ancien|t versio|
|00001410| 6e 20 6f 66 20 63 75 72 | 73 65 73 20 28 65 2e 67 |n of cur|ses (e.g|
|00001420| 2e 20 56 41 58 2d 43 2c | 20 53 65 71 75 65 6e 74 |. VAX-C,| Sequent|
|00001430| 29 2c 0a 58 23 20 75 6e | 63 6f 6d 6d 65 6e 74 20 |),.X# un|comment |
|00001440| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|00001450| 6e 65 2e 20 20 54 6f 20 | 74 65 6c 6c 20 69 66 20 |ne. To |tell if |
|00001460| 79 6f 75 20 6e 65 65 64 | 20 74 68 69 73 20 6f 70 |you need| this op|
|00001470| 74 69 6f 6e 2c 0a 58 23 | 20 66 69 72 73 74 20 74 |tion,.X#| first t|
|00001480| 72 79 20 63 6f 6d 70 69 | 6c 69 6e 67 20 77 69 74 |ry compi|ling wit|
|00001490| 68 6f 75 74 20 69 74 20 | 61 6e 64 20 73 65 65 20 |hout it |and see |
|000014a0| 69 66 20 79 6f 75 72 20 | 6c 69 6e 6b 65 72 20 63 |if your |linker c|
|000014b0| 6f 6d 70 6c 61 69 6e 73 | 0a 58 23 20 61 62 6f 75 |omplains|.X# abou|
|000014c0| 74 20 63 62 72 65 61 6b | 28 29 20 61 6e 64 20 6e |t cbreak|() and n|
|000014d0| 6f 63 62 72 65 61 6b 28 | 29 20 6e 6f 74 20 62 65 |ocbreak(|) not be|
|000014e0| 69 6e 67 20 64 65 66 69 | 6e 65 64 2e 20 20 49 66 |ing defi|ned. If|
|000014f0| 20 69 74 20 64 6f 65 73 | 2c 0a 58 23 20 79 6f 75 | it does|,.X# you|
|00001500| 20 6e 65 65 64 20 74 68 | 69 73 20 6f 70 74 69 6f | need th|is optio|
|00001510| 6e 2e 0a 58 43 44 45 46 | 53 3d 0a 58 23 20 43 44 |n..XCDEF|S=.X# CD|
|00001520| 45 46 53 3d 2d 44 4f 4c | 44 5f 43 55 52 53 45 53 |EFS=-DOL|D_CURSES|
|00001530| 0a 58 0a 58 23 20 55 6e | 63 6f 6d 6d 65 6e 74 20 |.X.X# Un|comment |
|00001540| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6c 69 |the foll|owing li|
|00001550| 6e 65 73 20 6f 6e 6c 79 | 20 69 66 20 79 6f 75 20 |nes only| if you |
|00001560| 61 72 65 20 75 73 69 6e | 67 20 45 75 6e 69 63 65 |are usin|g Eunice|
|00001570| 2e 0a 58 23 20 49 66 20 | 79 6f 75 20 64 6f 6e 27 |..X# If |you don'|
|00001580| 74 20 6b 6e 6f 77 20 77 | 68 61 74 20 69 74 20 69 |t know w|hat it i|
|00001590| 73 2c 20 62 65 6c 69 65 | 76 65 20 6d 65 2c 20 79 |s, belie|ve me, y|
|000015a0| 6f 75 27 72 65 20 6e 6f | 74 20 75 73 69 6e 67 20 |ou're no|t using |
|000015b0| 69 74 2e 0a 58 55 4e 49 | 58 54 4f 56 4d 53 3d 74 |it..XUNI|XTOVMS=t|
|000015c0| 72 75 65 0a 58 56 4d 53 | 54 4f 55 4e 49 58 3d 74 |rue.XVMS|TOUNIX=t|
|000015d0| 72 75 65 0a 58 23 20 55 | 4e 49 58 54 4f 56 4d 53 |rue.X# U|NIXTOVMS|
|000015e0| 3d 75 6e 69 78 74 6f 76 | 6d 73 0a 58 23 20 56 4d |=unixtov|ms.X# VM|
|000015f0| 53 54 4f 55 4e 49 58 3d | 76 6d 73 74 6f 75 6e 69 |STOUNIX=|vmstouni|
|00001600| 78 0a 58 0a 58 23 20 50 | 75 74 20 74 68 65 20 6e |x.X.X# P|ut the n|
|00001610| 61 6d 65 20 6f 66 20 74 | 68 65 20 66 72 6f 6e 74 |ame of t|he front|
|00001620| 2d 65 6e 64 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |-end you| want to|
|00001630| 20 63 6f 6d 70 69 6c 65 | 20 69 6e 20 68 65 72 65 | compile| in here|
|00001640| 2e 0a 58 23 20 4e 4f 54 | 45 3a 20 74 68 65 72 65 |..X# NOT|E: there|
|00001650| 20 69 73 20 63 75 72 72 | 65 6e 74 6c 79 20 6f 6e | is curr|ently on|
|00001660| 6c 79 20 6f 6e 65 20 61 | 76 61 69 6c 61 62 6c 65 |ly one a|vailable|
|00001670| 20 66 72 6f 6e 74 2d 65 | 6e 64 20 28 63 75 72 73 | front-e|nd (curs|
|00001680| 65 73 29 2e 0a 58 46 45 | 5f 46 49 4c 45 3d 66 65 |es)..XFE|_FILE=fe|
|00001690| 5f 63 75 72 73 65 73 0a | 58 0a 58 23 20 50 75 74 |_curses.|X.X# Put|
|000016a0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000016b0| 20 74 72 61 6e 73 70 6f | 72 74 20 79 6f 75 20 77 | transpo|rt you w|
|000016c0| 61 6e 74 20 74 6f 20 63 | 6f 6d 70 69 6c 65 20 69 |ant to c|ompile i|
|000016d0| 6e 20 68 65 72 65 2e 0a | 58 23 20 4e 4f 54 45 3a |n here..|X# NOTE:|
|000016e0| 20 74 68 65 72 65 20 69 | 73 20 63 75 72 72 65 6e | there i|s curren|
|000016f0| 74 6c 79 20 6f 6e 6c 79 | 20 6f 6e 65 20 61 76 61 |tly only| one ava|
|00001700| 69 6c 61 62 6c 65 20 74 | 72 61 6e 73 70 6f 72 74 |ilable t|ransport|
|00001710| 20 28 65 6d 61 69 6c 29 | 2e 0a 58 54 5f 46 49 4c | (email)|..XT_FIL|
|00001720| 45 3d 74 5f 65 6d 61 69 | 6c 0a 58 0a 58 23 20 50 |E=t_emai|l.X.X# P|
|00001730| 75 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |ut the n|ame of t|
|00001740| 68 65 20 64 69 63 65 20 | 72 6f 6c 6c 65 72 20 79 |he dice |roller y|
|00001750| 6f 75 20 77 61 6e 74 20 | 74 6f 20 63 6f 6d 70 69 |ou want |to compi|
|00001760| 6c 65 20 69 6e 20 68 65 | 72 65 2e 0a 58 23 20 49 |le in he|re..X# I|
|00001770| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 77 72 |f you wa|nt to wr|
|00001780| 69 74 65 20 79 6f 75 72 | 20 6f 77 6e 20 64 69 63 |ite your| own dic|
|00001790| 65 20 72 6f 6c 6c 65 72 | 2c 20 79 6f 75 20 63 61 |e roller|, you ca|
|000017a0| 6e 2e 20 20 49 20 77 6f | 75 6c 64 0a 58 23 20 70 |n. I wo|uld.X# p|
|000017b0| 72 65 66 65 72 20 70 65 | 6f 70 6c 65 20 61 6c 6c |refer pe|ople all|
|000017c0| 20 75 73 65 64 20 74 68 | 65 20 73 61 6d 65 20 6f | used th|e same o|
|000017d0| 6e 65 2c 20 73 69 6e 63 | 65 20 74 68 61 74 20 69 |ne, sinc|e that i|
|000017e0| 73 20 6d 6f 72 65 20 66 | 61 69 72 2c 0a 58 23 20 |s more f|air,.X# |
|000017f0| 62 75 74 20 61 73 20 6c | 6f 6e 67 20 61 73 20 69 |but as l|ong as i|
|00001800| 74 20 69 73 20 72 65 61 | 6c 6c 79 20 61 20 72 61 |t is rea|lly a ra|
|00001810| 6e 64 6f 6d 20 6e 75 6d | 62 65 72 20 67 65 6e 65 |ndom num|ber gene|
|00001820| 72 61 74 6f 72 2c 20 79 | 6f 75 27 72 65 20 6f 6b |rator, y|ou're ok|
|00001830| 2e 0a 58 23 20 49 66 20 | 79 6f 75 20 70 75 74 20 |..X# If |you put |
|00001840| 69 6e 20 61 20 66 61 6b | 65 20 64 69 63 65 20 72 |in a fak|e dice r|
|00001850| 6f 6c 6c 65 72 20 28 65 | 2e 67 2e 20 6f 6e 65 20 |oller (e|.g. one |
|00001860| 74 68 61 74 20 61 73 6b | 73 20 79 6f 75 20 77 68 |that ask|s you wh|
|00001870| 61 74 0a 58 23 20 72 6f | 6c 6c 20 79 6f 75 20 77 |at.X# ro|ll you w|
|00001880| 61 6e 74 29 2c 20 79 6f | 75 20 61 72 65 20 69 6e |ant), yo|u are in|
|00001890| 20 76 69 6f 6c 61 74 69 | 6f 6e 20 6f 66 20 74 68 | violati|on of th|
|000018a0| 65 20 63 6f 70 79 72 69 | 67 68 74 2e 20 20 52 65 |e copyri|ght. Re|
|000018b0| 61 64 0a 58 23 20 74 68 | 65 20 52 45 41 44 4d 45 |ad.X# th|e README|
|000018c0| 20 66 69 6c 65 20 66 6f | 72 20 6d 6f 72 65 20 69 | file fo|r more i|
|000018d0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0a 58 52 5f 46 |nformati|on..XR_F|
|000018e0| 49 4c 45 3d 72 5f 78 72 | 61 6e 64 0a 58 0a 58 23 |ILE=r_xr|and.X.X#|
|000018f0| 20 50 75 74 20 63 6f 6d | 70 69 6c 65 72 20 66 6c | Put com|piler fl|
|00001900| 61 67 73 20 68 65 72 65 | 2e 0a 58 43 46 4c 41 47 |ags here|..XCFLAG|
|00001910| 53 3d 2d 4f 20 24 28 43 | 44 45 46 53 29 0a 58 4c |S=-O $(C|DEFS).XL|
|00001920| 49 4e 54 46 4c 41 47 53 | 3d 0a 58 0a 58 23 20 50 |INTFLAGS|=.X.X# P|
|00001930| 61 67 65 20 6c 65 6e 67 | 74 68 20 74 6f 20 66 6f |age leng|th to fo|
|00001940| 72 6d 61 74 20 6d 61 6e | 75 61 6c 20 77 69 74 68 |rmat man|ual with|
|00001950| 2e 20 20 36 32 20 66 6f | 72 20 56 4d 53 20 6f 72 |. 62 fo|r VMS or|
|00001960| 20 45 75 6e 69 63 65 2c | 20 36 36 20 66 6f 72 20 | Eunice,| 66 for |
|00001970| 6d 6f 73 74 20 6f 74 68 | 65 72 73 2e 0a 58 50 41 |most oth|ers..XPA|
|00001980| 47 45 4c 45 4e 3d 36 36 | 0a 58 0a 58 23 23 23 20 |GELEN=66|.X.X### |
|00001990| 45 4e 44 20 4f 46 20 49 | 4e 53 54 41 4c 4c 41 54 |END OF I|NSTALLAT|
|000019a0| 49 4f 4e 20 4f 50 54 49 | 4f 4e 53 20 23 23 23 0a |ION OPTI|ONS ###.|
|000019b0| 58 0a 58 43 46 49 4c 45 | 53 3d 09 62 6f 61 72 64 |X.XCFILE|S=.board|
|000019c0| 2e 63 20 67 61 6d 65 2e | 63 20 6d 61 69 6e 2e 63 |.c game.|c main.c|
|000019d0| 20 6d 69 73 63 2e 63 20 | 6d 6f 76 65 2e 63 20 70 | misc.c |move.c p|
|000019e0| 72 6f 63 65 73 73 2e 63 | 20 72 63 76 6f 70 2e 63 |rocess.c| rcvop.c|
|000019f0| 20 63 6f 6e 74 72 6f 6c | 2e 63 20 5c 0a 58 09 63 | control|.c \.X.c|
|00001a00| 68 65 63 6b 2e 63 20 72 | 65 61 64 6d 61 69 6c 2e |heck.c r|eadmail.|
|00001a10| 63 20 73 61 76 65 2e 63 | 20 76 61 72 73 2e 63 20 |c save.c| vars.c |
|00001a20| 24 28 46 45 5f 46 49 4c | 45 29 2e 63 20 24 28 54 |$(FE_FIL|E).c $(T|
|00001a30| 5f 46 49 4c 45 29 2e 63 | 20 24 28 52 5f 46 49 4c |_FILE).c| $(R_FIL|
|00001a40| 45 29 2e 63 0a 58 48 46 | 49 4c 45 53 3d 6c 64 62 |E).c.XHF|ILES=ldb|
|00001a50| 2e 68 20 70 61 74 63 68 | 6c 65 76 65 6c 2e 68 0a |.h patch|level.h.|
|00001a60| 58 4f 46 49 4c 45 53 3d | 09 62 6f 61 72 64 2e 6f |XOFILES=|.board.o|
|00001a70| 20 67 61 6d 65 2e 6f 20 | 6d 61 69 6e 2e 6f 20 6d | game.o |main.o m|
|00001a80| 69 73 63 2e 6f 20 6d 6f | 76 65 2e 6f 20 70 72 6f |isc.o mo|ve.o pro|
|00001a90| 63 65 73 73 2e 6f 20 72 | 63 76 6f 70 2e 6f 20 63 |cess.o r|cvop.o c|
|00001aa0| 6f 6e 74 72 6f 6c 2e 6f | 20 5c 0a 58 09 63 68 65 |ontrol.o| \.X.che|
|00001ab0| 63 6b 2e 6f 20 72 65 61 | 64 6d 61 69 6c 2e 6f 20 |ck.o rea|dmail.o |
|00001ac0| 73 61 76 65 2e 6f 20 76 | 61 72 73 2e 6f 20 24 28 |save.o v|ars.o $(|
|00001ad0| 46 45 5f 46 49 4c 45 29 | 2e 6f 20 24 28 54 5f 46 |FE_FILE)|.o $(T_F|
|00001ae0| 49 4c 45 29 2e 6f 20 24 | 28 52 5f 46 49 4c 45 29 |ILE).o $|(R_FILE)|
|00001af0| 2e 6f 0a 58 53 48 41 52 | 46 49 4c 45 53 3d 4d 41 |.o.XSHAR|FILES=MA|
|00001b00| 4e 49 46 45 53 54 20 52 | 45 41 44 4d 45 20 4d 61 |NIFEST R|EADME Ma|
|00001b10| 6b 65 66 69 6c 65 20 24 | 28 43 46 49 4c 45 53 29 |kefile $|(CFILES)|
|00001b20| 20 24 28 48 46 49 4c 45 | 53 29 20 6d 61 6b 65 6c | $(HFILE|S) makel|
|00001b30| 64 62 2e 63 6f 6d 20 6c | 64 62 2e 6d 61 6e 0a 58 |db.com l|db.man.X|
|00001b40| 0a 58 6c 64 62 3a 20 24 | 28 4f 46 49 4c 45 53 29 |.Xldb: $|(OFILES)|
|00001b50| 0a 58 09 63 63 20 24 28 | 43 46 4c 41 47 53 29 20 |.X.cc $(|CFLAGS) |
|00001b60| 2d 73 20 2d 6f 20 6c 64 | 62 20 24 28 4f 46 49 4c |-s -o ld|b $(OFIL|
|00001b70| 45 53 29 20 2d 6c 63 75 | 72 73 65 73 20 2d 6c 74 |ES) -lcu|rses -lt|
|00001b80| 65 72 6d 63 61 70 0a 58 | 0a 58 61 6c 6c 3a 20 6c |ermcap.X|.Xall: l|
|00001b90| 64 62 20 6c 64 62 2e 64 | 6f 63 0a 58 0a 58 6c 64 |db ldb.d|oc.X.Xld|
|00001ba0| 62 2e 64 6f 63 3a 20 6c | 64 62 2e 6d 61 6e 0a 58 |b.doc: l|db.man.X|
|00001bb0| 09 6e 72 6f 66 66 20 2d | 72 54 24 28 50 41 47 45 |.nroff -|rT$(PAGE|
|00001bc0| 4c 45 4e 29 20 2d 6d 61 | 6e 20 6c 64 62 2e 6d 61 |LEN) -ma|n ldb.ma|
|00001bd0| 6e 20 3e 6c 64 62 2e 64 | 6f 63 0a 58 09 24 28 55 |n >ldb.d|oc.X.$(U|
|00001be0| 4e 49 58 54 4f 56 4d 53 | 29 20 6c 64 62 2e 64 6f |NIXTOVMS|) ldb.do|
|00001bf0| 63 0a 58 0a 58 6c 64 62 | 2e 64 6f 63 36 30 3a 20 |c.X.Xldb|.doc60: |
|00001c00| 6c 64 62 2e 6d 61 6e 0a | 58 09 6e 72 6f 66 66 20 |ldb.man.|X.nroff |
|00001c10| 2d 72 54 36 30 20 2d 6d | 61 6e 20 6c 64 62 2e 6d |-rT60 -m|an ldb.m|
|00001c20| 61 6e 20 3e 6c 64 62 2e | 64 6f 63 36 30 0a 58 09 |an >ldb.|doc60.X.|
|00001c30| 24 28 55 4e 49 58 54 4f | 56 4d 53 29 20 6c 64 62 |$(UNIXTO|VMS) ldb|
|00001c40| 2e 64 6f 63 36 30 0a 58 | 0a 58 6c 64 62 2e 64 6f |.doc60.X|.Xldb.do|
|00001c50| 63 36 32 3a 20 6c 64 62 | 2e 6d 61 6e 0a 58 09 6e |c62: ldb|.man.X.n|
|00001c60| 72 6f 66 66 20 2d 72 54 | 36 32 20 2d 6d 61 6e 20 |roff -rT|62 -man |
|00001c70| 6c 64 62 2e 6d 61 6e 20 | 3e 6c 64 62 2e 64 6f 63 |ldb.man |>ldb.doc|
|00001c80| 36 32 0a 58 09 24 28 55 | 4e 49 58 54 4f 56 4d 53 |62.X.$(U|NIXTOVMS|
|00001c90| 29 20 6c 64 62 2e 64 6f | 63 36 32 0a 58 0a 58 6c |) ldb.do|c62.X.Xl|
|00001ca0| 64 62 2e 64 6f 63 36 36 | 3a 20 6c 64 62 2e 6d 61 |db.doc66|: ldb.ma|
|00001cb0| 6e 0a 58 09 6e 72 6f 66 | 66 20 2d 72 54 36 36 20 |n.X.nrof|f -rT66 |
|00001cc0| 2d 6d 61 6e 20 6c 64 62 | 2e 6d 61 6e 20 3e 6c 64 |-man ldb|.man >ld|
|00001cd0| 62 2e 64 6f 63 36 36 0a | 58 09 24 28 55 4e 49 58 |b.doc66.|X.$(UNIX|
|00001ce0| 54 4f 56 4d 53 29 20 6c | 64 62 2e 64 6f 63 36 36 |TOVMS) l|db.doc66|
|00001cf0| 0a 58 0a 58 6c 69 6e 74 | 3a 20 2e 58 58 58 0a 58 |.X.Xlint|: .XXX.X|
|00001d00| 09 6c 69 6e 74 20 24 28 | 4c 49 4e 54 46 4c 41 47 |.lint $(|LINTFLAG|
|00001d10| 53 29 20 24 28 43 46 49 | 4c 45 53 29 20 3e 20 6c |S) $(CFI|LES) > l|
|00001d20| 69 6e 74 2e 6f 75 74 0a | 58 0a 58 63 6c 65 61 6e |int.out.|X.Xclean|
|00001d30| 3a 20 2e 58 58 58 0a 58 | 09 72 6d 20 2d 66 20 24 |: .XXX.X|.rm -f $|
|00001d40| 28 4f 46 49 4c 45 53 29 | 20 6c 64 62 20 2a 2e 6f |(OFILES)| ldb *.o|
|00001d50| 62 6a 20 6c 64 62 2e 65 | 78 65 20 6d 61 6b 65 2e |bj ldb.e|xe make.|
|00001d60| 6f 75 74 20 2e 6d 6b 20 | 6c 69 6e 74 2e 6f 75 74 |out .mk |lint.out|
|00001d70| 20 4d 41 4e 49 46 45 53 | 54 2e 42 41 4b 0a 58 0a | MANIFES|T.BAK.X.|
|00001d80| 58 73 68 61 72 3a 20 24 | 28 53 48 41 52 46 49 4c |Xshar: $|(SHARFIL|
|00001d90| 45 53 29 0a 58 09 24 28 | 56 4d 53 54 4f 55 4e 49 |ES).X.$(|VMSTOUNI|
|00001da0| 58 29 20 24 28 53 48 41 | 52 46 49 4c 45 53 29 0a |X) $(SHA|RFILES).|
|00001db0| 58 09 6d 61 6b 65 6b 69 | 74 20 2d 6d 0a 58 0a 58 |X.makeki|t -m.X.X|
|00001dc0| 74 61 67 73 3a 20 2e 58 | 58 58 0a 58 09 63 74 61 |tags: .X|XX.X.cta|
|00001dd0| 67 73 20 24 28 43 46 49 | 4c 45 53 29 0a 58 09 73 |gs $(CFI|LES).X.s|
|00001de0| 65 64 20 27 73 2f 4d 6d | 61 69 6e 2f 6d 61 69 6e |ed 's/Mm|ain/main|
|00001df0| 2f 27 20 3c 74 61 67 73 | 20 7c 20 73 6f 72 74 20 |/' <tags| | sort |
|00001e00| 3e 2e 74 61 67 73 0a 58 | 09 6d 76 20 2e 74 61 67 |>.tags.X|.mv .tag|
|00001e10| 73 20 74 61 67 73 0a 58 | 0a 58 2e 58 58 58 3a 0a |s tags.X|.X.XXX:.|
|00001e20| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00001e30| 65 73 74 20 33 32 30 31 | 20 2d 6e 65 20 60 77 63 |est 3201| -ne `wc|
|00001e40| 20 2d 63 20 3c 27 4d 61 | 6b 65 66 69 6c 65 27 60 | -c <'Ma|kefile'`|
|00001e50| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00001e60| 73 68 61 72 3a 20 5c 22 | 27 4d 61 6b 65 66 69 6c |shar: \"|'Makefil|
|00001e70| 65 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |e'\" unp|acked wi|
|00001e80| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00001e90| 69 0a 63 68 6d 6f 64 20 | 2b 78 20 27 4d 61 6b 65 |i.chmod |+x 'Make|
|00001ea0| 66 69 6c 65 27 0a 23 20 | 65 6e 64 20 6f 66 20 27 |file'.# |end of '|
|00001eb0| 4d 61 6b 65 66 69 6c 65 | 27 0a 66 69 0a 69 66 20 |Makefile|'.fi.if |
|00001ec0| 74 65 73 74 20 2d 66 20 | 27 52 45 41 44 4d 45 27 |test -f |'README'|
|00001ed0| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00001ee0| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00001ef0| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|00001f00| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|00001f10| 67 20 66 69 6c 65 20 5c | 22 27 52 45 41 44 4d 45 |g file \|"'README|
|00001f20| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00001f30| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00001f40| 22 27 52 45 41 44 4d 45 | 27 5c 22 20 5c 28 34 39 |"'README|'\" \(49|
|00001f50| 30 37 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |07 chara|cters\).|
|00001f60| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 52 |sed "s/^|X//" >'R|
|00001f70| 45 41 44 4d 45 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |EADME' <|<'END_OF|
|00001f80| 5f 46 49 4c 45 27 0a 58 | 09 09 4c 6f 6e 67 20 44 |_FILE'.X|..Long D|
|00001f90| 69 73 74 61 6e 63 65 20 | 42 61 63 6b 67 61 6d 6d |istance |Backgamm|
|00001fa0| 6f 6e 0a 58 09 09 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |on.X..--|--------|
|00001fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 58 |--------|------.X|
|00001fc0| 0a 58 09 54 68 69 73 20 | 69 73 20 61 20 70 72 6f |.X.This |is a pro|
|00001fd0| 67 72 61 6d 20 74 68 61 | 74 20 6c 65 74 73 20 74 |gram tha|t lets t|
|00001fe0| 77 6f 20 70 65 6f 70 6c | 65 20 65 61 73 69 6c 79 |wo peopl|e easily|
|00001ff0| 20 70 6c 61 79 20 62 61 | 63 6b 67 61 6d 6d 6f 6e | play ba|ckgammon|
|00002000| 0a 58 62 79 20 65 2d 6d | 61 69 6c 2e 20 20 49 74 |.Xby e-m|ail. It|
|00002010| 20 63 75 72 72 65 6e 74 | 6c 79 20 72 75 6e 73 20 | current|ly runs |
|00002020| 6f 6e 6c 79 20 6f 6e 20 | 63 68 61 72 61 63 74 65 |only on |characte|
|00002030| 72 2d 6f 72 69 65 6e 74 | 65 64 20 74 65 72 6d 69 |r-orient|ed termi|
|00002040| 6e 61 6c 73 0a 58 28 6f | 72 20 65 6d 75 6c 61 74 |nals.X(o|r emulat|
|00002050| 6f 72 73 20 74 68 65 72 | 65 6f 66 29 20 75 6e 64 |ors ther|eof) und|
|00002060| 65 72 20 74 68 65 20 63 | 75 72 73 65 73 20 70 61 |er the c|urses pa|
|00002070| 63 6b 61 67 65 2e 0a 58 | 0a 58 09 54 6f 20 62 75 |ckage..X|.X.To bu|
|00002080| 69 6c 64 20 6c 64 62 2c | 20 63 72 65 61 74 65 20 |ild ldb,| create |
|00002090| 61 20 64 69 72 65 63 74 | 6f 72 79 2c 20 63 6f 70 |a direct|ory, cop|
|000020a0| 79 20 61 6c 6c 20 74 68 | 65 20 70 61 72 74 73 20 |y all th|e parts |
|000020b0| 69 6e 74 6f 0a 58 74 68 | 61 74 20 64 69 72 65 63 |into.Xth|at direc|
|000020c0| 74 6f 72 79 2c 20 73 74 | 72 69 70 20 74 68 65 20 |tory, st|rip the |
|000020d0| 75 73 65 6e 65 74 20 6f | 72 20 6d 61 69 6c 20 68 |usenet o|r mail h|
|000020e0| 65 61 64 65 72 73 20 77 | 69 74 68 20 61 20 74 65 |eaders w|ith a te|
|000020f0| 78 74 20 65 64 69 74 6f | 72 2c 0a 58 61 6e 64 20 |xt edito|r,.Xand |
|00002100| 65 78 65 63 75 74 65 20 | 74 68 65 6d 20 77 69 74 |execute |them wit|
|00002110| 68 20 61 20 73 68 65 6c | 6c 20 28 65 2e 67 2e 20 |h a shel|l (e.g. |
|00002120| 73 68 20 50 61 72 74 31 | 3b 20 73 68 20 50 61 72 |sh Part1|; sh Par|
|00002130| 74 32 3b 20 2e 2e 2e 29 | 2e 0a 58 54 68 65 20 69 |t2; ...)|..XThe i|
|00002140| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 6f 70 74 69 |nstallat|ion opti|
|00002150| 6f 6e 73 20 61 72 65 20 | 64 6f 63 75 6d 65 6e 74 |ons are |document|
|00002160| 65 64 20 69 6e 20 74 68 | 65 20 4d 61 6b 65 66 69 |ed in th|e Makefi|
|00002170| 6c 65 2e 20 20 54 68 65 | 20 6f 6e 6c 79 0a 58 6f |le. The| only.Xo|
|00002180| 6e 65 20 6f 66 20 61 6e | 79 20 69 6d 70 6f 72 74 |ne of an|y import|
|00002190| 61 6e 63 65 20 69 73 20 | 74 68 65 20 6f 6e 65 20 |ance is |the one |
|000021a0| 74 68 61 74 20 61 6c 6c | 6f 77 73 20 74 68 65 20 |that all|ows the |
|000021b0| 4f 4c 44 5f 43 55 52 53 | 45 53 20 73 79 6d 62 6f |OLD_CURS|ES symbo|
|000021c0| 6c 0a 58 74 6f 20 62 65 | 20 64 65 66 69 6e 65 64 |l.Xto be| defined|
|000021d0| 2e 20 20 49 66 20 79 6f | 75 20 67 65 74 20 6c 69 |. If yo|u get li|
|000021e0| 6e 6b 65 72 20 65 72 72 | 6f 72 73 20 63 6f 6d 70 |nker err|ors comp|
|000021f0| 6c 61 69 6e 69 6e 67 20 | 61 62 6f 75 74 20 63 62 |laining |about cb|
|00002200| 72 65 61 6b 28 29 0a 58 | 61 6e 64 20 6e 6f 63 62 |reak().X|and nocb|
|00002210| 72 65 61 6b 28 29 2c 20 | 79 6f 75 20 77 69 6c 6c |reak(), |you will|
|00002220| 20 6e 65 65 64 20 74 6f | 20 65 6e 61 62 6c 65 20 | need to| enable |
|00002230| 74 68 69 73 20 6f 70 74 | 69 6f 6e 2e 20 20 49 66 |this opt|ion. If|
|00002240| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 0a 58 6e 65 | your sy|stem.Xne|
|00002250| 65 64 73 20 74 68 69 73 | 2c 20 61 6e 64 20 79 6f |eds this|, and yo|
|00002260| 75 20 6b 6e 6f 77 20 61 | 20 75 6e 69 71 75 65 20 |u know a| unique |
|00002270| 73 79 6d 62 6f 6c 20 79 | 6f 75 72 20 70 72 65 70 |symbol y|our prep|
|00002280| 72 6f 63 65 73 73 6f 72 | 20 70 72 65 64 65 66 69 |rocessor| predefi|
|00002290| 6e 65 73 2c 0a 58 73 65 | 6e 64 20 69 74 20 74 6f |nes,.Xse|nd it to|
|000022a0| 20 6d 65 20 61 6e 64 20 | 49 27 6c 6c 20 69 6e 63 | me and |I'll inc|
|000022b0| 6c 75 64 65 20 69 74 20 | 69 6e 20 66 75 74 75 72 |lude it |in futur|
|000022c0| 65 20 72 65 6c 65 61 73 | 65 73 2e 0a 58 0a 58 09 |e releas|es..X.X.|
|000022d0| 53 75 67 67 65 73 74 69 | 6f 6e 73 20 61 6e 64 20 |Suggesti|ons and |
|000022e0| 70 72 6f 62 6c 65 6d 73 | 20 61 72 65 20 63 68 65 |problems| are che|
|000022f0| 65 72 66 75 6c 6c 79 20 | 61 63 63 65 70 74 65 64 |erfully |accepted|
|00002300| 2c 20 61 6c 6c 20 74 68 | 65 20 6d 6f 72 65 0a 58 |, all th|e more.X|
|00002310| 73 6f 20 77 68 65 6e 20 | 61 63 63 6f 6d 70 61 6e |so when |accompan|
|00002320| 69 65 64 20 62 79 20 61 | 70 70 72 6f 70 72 69 61 |ied by a|ppropria|
|00002330| 74 65 20 70 61 74 63 68 | 65 73 2c 20 69 6e 20 61 |te patch|es, in a|
|00002340| 6e 79 20 66 6f 72 6d 61 | 74 20 74 68 65 20 70 61 |ny forma|t the pa|
|00002350| 74 63 68 0a 58 70 72 6f | 67 72 61 6d 20 75 6e 64 |tch.Xpro|gram und|
|00002360| 65 72 73 74 61 6e 64 73 | 20 28 65 2e 67 2e 20 63 |erstands| (e.g. c|
|00002370| 6f 6e 74 65 78 74 20 64 | 69 66 66 29 2e 20 20 45 |ontext d|iff). E|
|00002380| 2d 6d 61 69 6c 20 74 6f | 20 72 6f 73 73 40 65 6d |-mail to| ross@em|
|00002390| 66 37 38 30 2e 64 65 6e | 2e 6d 6d 63 2e 63 6f 6d |f780.den|.mmc.com|
|000023a0| 2e 0a 58 0a 58 09 54 68 | 65 20 66 69 72 73 74 20 |..X.X.Th|e first |
|000023b0| 74 69 6d 65 20 6c 64 62 | 20 69 73 20 72 75 6e 2c |time ldb| is run,|
|000023c0| 20 69 74 20 77 69 6c 6c | 20 63 72 65 61 74 65 20 | it will| create |
|000023d0| 61 20 66 69 6c 65 20 69 | 6e 20 79 6f 75 72 20 68 |a file i|n your h|
|000023e0| 6f 6d 65 0a 58 64 69 72 | 65 63 74 6f 72 79 20 63 |ome.Xdir|ectory c|
|000023f0| 61 6c 6c 65 64 20 22 2e | 6c 64 62 72 63 22 2e 20 |alled ".|ldbrc". |
|00002400| 20 49 66 20 74 68 69 73 | 20 6e 61 6d 65 20 69 73 | If this| name is|
|00002410| 20 69 6e 63 6f 6e 76 65 | 6e 69 65 6e 74 2c 20 64 | inconve|nient, d|
|00002420| 65 66 69 6e 65 20 74 68 | 65 0a 58 65 6e 76 69 72 |efine th|e.Xenvir|
|00002430| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 20 |onment v|ariable |
|00002440| 4c 44 42 52 43 20 74 6f | 20 62 65 20 74 68 65 20 |LDBRC to| be the |
|00002450| 6e 61 6d 65 20 79 6f 75 | 20 77 61 6e 74 20 62 65 |name you| want be|
|00002460| 66 6f 72 65 20 72 75 6e | 6e 69 6e 67 20 69 74 0a |fore run|ning it.|
|00002470| 58 74 68 65 20 66 69 72 | 73 74 20 74 69 6d 65 20 |Xthe fir|st time |
|00002480| 28 61 6e 64 20 61 6c 6c | 20 74 69 6d 65 73 20 61 |(and all| times a|
|00002490| 66 74 65 72 20 74 68 61 | 74 29 2e 20 20 4c 64 62 |fter tha|t). Ldb|
|000024a0| 20 77 69 6c 6c 20 61 73 | 6b 20 66 6f 72 20 79 6f | will as|k for yo|
|000024b0| 75 72 0a 58 70 65 72 73 | 6f 6e 61 6c 2c 20 68 75 |ur.Xpers|onal, hu|
|000024c0| 6d 61 6e 2d 74 79 70 65 | 20 6e 61 6d 65 20 61 6e |man-type| name an|
|000024d0| 64 20 79 6f 75 72 20 65 | 2d 6d 61 69 6c 20 61 64 |d your e|-mail ad|
|000024e0| 64 72 65 73 73 2e 20 20 | 41 6c 6c 20 6f 74 68 65 |dress. |All othe|
|000024f0| 72 20 6f 70 74 69 6f 6e | 73 0a 58 77 69 6c 6c 20 |r option|s.Xwill |
|00002500| 62 65 20 73 65 74 20 74 | 6f 20 74 68 65 69 72 20 |be set t|o their |
|00002510| 64 65 66 61 75 6c 74 73 | 2c 20 61 73 20 65 78 70 |defaults|, as exp|
|00002520| 6c 61 69 6e 65 64 20 69 | 6e 20 74 68 65 20 6d 61 |lained i|n the ma|
|00002530| 6e 75 61 6c 2e 0a 58 0a | 58 09 54 6f 20 73 74 61 |nual..X.|X.To sta|
|00002540| 72 74 20 61 20 67 61 6d | 65 2c 20 74 79 70 65 3a |rt a gam|e, type:|
|00002550| 0a 58 09 09 6c 64 62 20 | 2d 73 74 61 72 74 20 6f |.X..ldb |-start o|
|00002560| 70 70 6f 6e 65 6e 74 27 | 73 2d 65 6d 61 69 6c 2d |pponent'|s-email-|
|00002570| 61 64 64 72 65 73 73 0a | 58 09 61 6e 64 20 65 76 |address.|X.and ev|
|00002580| 65 72 79 74 68 69 6e 67 | 20 69 73 20 61 75 74 6f |erything| is auto|
|00002590| 6d 61 74 69 63 20 66 72 | 6f 6d 20 74 68 65 72 65 |matic fr|om there|
|000025a0| 2e 20 20 59 6f 75 20 6d | 61 79 20 68 61 76 65 20 |. You m|ay have |
|000025b0| 74 6f 20 65 78 63 68 61 | 6e 67 65 0a 58 73 65 76 |to excha|nge.Xsev|
|000025c0| 65 72 61 6c 20 6d 61 69 | 6c 20 6d 65 73 73 61 67 |eral mai|l messag|
|000025d0| 65 73 20 62 65 66 6f 72 | 65 20 79 6f 75 20 61 72 |es befor|e you ar|
|000025e0| 65 20 72 65 61 64 79 20 | 74 6f 20 70 6c 61 79 2c |e ready |to play,|
|000025f0| 20 73 69 6e 63 65 20 79 | 6f 75 72 20 6c 64 62 20 | since y|our ldb |
|00002600| 68 61 73 20 74 6f 0a 58 | 64 6f 20 74 68 65 20 69 |has to.X|do the i|
|00002610| 6e 69 74 69 61 6c 20 72 | 6f 6c 6c 20 77 69 74 68 |nitial r|oll with|
|00002620| 20 74 68 65 20 72 65 6d | 6f 74 65 20 6c 64 62 2c | the rem|ote ldb,|
|00002630| 20 61 6e 64 20 69 66 20 | 74 68 65 72 65 20 69 73 | and if |there is|
|00002640| 20 61 20 74 69 65 2c 20 | 74 68 65 0a 58 69 6e 69 | a tie, |the.Xini|
|00002650| 74 69 61 6c 20 72 6f 6c | 6c 20 69 73 20 72 65 70 |tial rol|l is rep|
|00002660| 65 61 74 65 64 2e 20 20 | 45 76 65 6e 74 75 61 6c |eated. |Eventual|
|00002670| 6c 79 2c 20 79 6f 75 20 | 77 69 6c 6c 20 73 65 65 |ly, you |will see|
|00002680| 20 61 20 62 6f 61 72 64 | 20 64 72 61 77 6e 20 6f | a board| drawn o|
|00002690| 6e 0a 58 74 68 65 20 73 | 63 72 65 65 6e 2e 20 20 |n.Xthe s|creen. |
|000026a0| 54 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 61 72 65 |The comm|ands are|
|000026b0| 20 69 6e 20 74 68 65 20 | 62 6f 74 74 6f 6d 20 72 | in the |bottom r|
|000026c0| 69 67 68 74 20 63 6f 72 | 6e 65 72 2e 20 20 54 68 |ight cor|ner. Th|
|000026d0| 65 20 6d 6f 76 65 73 20 | 62 79 0a 58 79 6f 75 20 |e moves |by.Xyou |
|000026e0| 61 6e 64 20 79 6f 75 72 | 20 6f 70 70 6f 6e 65 6e |and your| opponen|
|000026f0| 74 20 61 72 65 20 61 62 | 6f 76 65 20 74 68 61 74 |t are ab|ove that|
|00002700| 2c 20 6f 6e 20 74 68 65 | 20 72 69 67 68 74 20 73 |, on the| right s|
|00002710| 69 64 65 20 6f 66 20 74 | 68 65 20 73 63 72 65 65 |ide of t|he scree|
|00002720| 6e 2c 20 61 6e 64 0a 58 | 74 68 65 20 62 6f 74 74 |n, and.X|the bott|
|00002730| 6f 6d 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |om of th|e screen|
|00002740| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 70 6c 61 63 | contain|s a plac|
|00002750| 65 20 66 6f 72 20 79 6f | 75 20 74 6f 20 65 6e 63 |e for yo|u to enc|
|00002760| 6c 6f 73 65 20 61 20 32 | 2d 6c 69 6e 65 0a 58 6d |lose a 2|-line.Xm|
|00002770| 65 73 73 61 67 65 20 77 | 69 74 68 20 65 61 63 68 |essage w|ith each|
|00002780| 20 6d 6f 76 65 2e 20 20 | 54 68 69 73 20 69 73 20 | move. |This is |
|00002790| 75 73 65 66 75 6c 20 66 | 6f 72 20 74 61 75 6e 74 |useful f|or taunt|
|000027a0| 69 6e 67 2c 20 70 6c 65 | 61 64 69 6e 67 2c 20 65 |ing, ple|ading, e|
|000027b0| 74 63 2e 0a 58 59 6f 75 | 20 77 69 6c 6c 20 6e 65 |tc..XYou| will ne|
|000027c0| 65 64 20 74 6f 20 70 72 | 65 73 73 20 27 72 27 20 |ed to pr|ess 'r' |
|000027d0| 74 6f 20 72 6f 6c 6c 20 | 74 68 65 20 64 69 63 65 |to roll |the dice|
|000027e0| 2c 20 74 68 65 6e 20 70 | 72 65 73 73 20 74 68 65 |, then p|ress the|
|000027f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 65 20 72 | number |of the r|
|00002800| 6f 6c 6c 0a 58 79 6f 75 | 20 77 61 6e 74 20 74 6f |oll.Xyou| want to|
|00002810| 20 75 73 65 20 66 6f 6c | 6c 6f 77 65 64 20 62 79 | use fol|lowed by|
|00002820| 20 74 68 65 20 70 6f 69 | 6e 74 20 79 6f 75 20 77 | the poi|nt you w|
|00002830| 61 6e 74 20 74 6f 20 6d | 6f 76 65 20 66 72 6f 6d |ant to m|ove from|
|00002840| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 0a |. For e|xample,.|
|00002850| 58 69 66 20 79 6f 75 20 | 72 6f 6c 6c 20 35 20 32 |Xif you |roll 5 2|
|00002860| 2c 20 61 6e 64 20 79 6f | 75 20 77 61 6e 74 20 74 |, and yo|u want t|
|00002870| 6f 20 6d 6f 76 65 20 74 | 68 65 20 70 69 65 63 65 |o move t|he piece|
|00002880| 20 6f 6e 20 74 68 65 20 | 31 31 20 70 6f 69 6e 74 | on the |11 point|
|00002890| 20 35 2c 20 70 72 65 73 | 73 0a 58 35 20 31 20 31 | 5, pres|s.X5 1 1|
|000028a0| 2e 20 20 59 6f 75 20 64 | 6f 6e 27 74 20 6e 65 65 |. You d|on't nee|
|000028b0| 64 20 74 6f 20 68 69 74 | 20 72 65 74 75 72 6e 2c |d to hit| return,|
|000028c0| 20 62 75 74 20 69 66 20 | 74 68 65 20 70 6f 69 6e | but if |the poin|
|000028d0| 74 20 6e 75 6d 62 65 72 | 20 69 73 20 31 20 64 69 |t number| is 1 di|
|000028e0| 67 69 74 2c 0a 58 79 6f | 75 20 77 69 6c 6c 20 6e |git,.Xyo|u will n|
|000028f0| 65 65 64 20 74 6f 20 74 | 79 70 65 20 73 6f 6d 65 |eed to t|ype some|
|00002900| 20 6e 6f 6e 2d 6e 75 6d | 65 72 69 63 20 64 69 67 | non-num|eric dig|
|00002910| 69 74 20 61 66 74 65 72 | 20 69 74 20 74 6f 20 66 |it after| it to f|
|00002920| 69 6e 69 73 68 20 74 68 | 65 0a 58 32 20 63 68 61 |inish th|e.X2 cha|
|00002930| 72 61 63 74 65 72 73 2e | 20 20 41 66 74 65 72 20 |racters.| After |
|00002940| 79 6f 75 20 68 61 76 65 | 20 75 73 65 64 20 6f 6e |you have| used on|
|00002950| 65 20 6f 66 20 79 6f 75 | 72 20 72 6f 6c 6c 73 2c |e of you|r rolls,|
|00002960| 20 74 68 65 72 65 20 61 | 72 65 20 33 20 73 68 6f | there a|re 3 sho|
|00002970| 72 74 63 75 74 73 0a 58 | 79 6f 75 20 63 61 6e 20 |rtcuts.X|you can |
|00002980| 75 73 65 20 66 6f 72 20 | 74 68 65 20 72 65 6d 61 |use for |the rema|
|00002990| 69 6e 64 65 72 20 6f 66 | 20 79 6f 75 72 20 72 6f |inder of| your ro|
|000029a0| 6c 6c 3a 0a 58 09 3c 73 | 70 61 63 65 20 62 61 72 |ll:.X.<s|pace bar|
|000029b0| 3e 09 43 6f 6e 74 69 6e | 75 65 73 20 74 68 65 20 |>.Contin|ues the |
|000029c0| 6c 61 73 74 20 6d 6f 76 | 65 2e 20 20 54 68 65 20 |last mov|e. The |
|000029d0| 70 69 65 63 65 20 79 6f | 75 20 6c 61 73 74 20 6d |piece yo|u last m|
|000029e0| 6f 76 65 64 0a 58 09 09 | 09 69 73 20 6d 6f 76 65 |oved.X..|.is move|
|000029f0| 64 20 62 79 20 74 68 65 | 20 61 6d 6f 75 6e 74 20 |d by the| amount |
|00002a00| 6f 66 20 74 68 65 20 6f | 74 68 65 72 2f 6e 65 78 |of the o|ther/nex|
|00002a10| 74 20 72 6f 6c 6c 2e 0a | 58 09 3c 72 65 74 75 72 |t roll..|X.<retur|
|00002a20| 6e 3e 09 52 65 70 65 61 | 74 20 74 68 65 20 6c 61 |n>.Repea|t the la|
|00002a30| 73 74 20 6d 6f 76 65 2e | 20 20 54 68 65 20 6f 74 |st move.| The ot|
|00002a40| 68 65 72 2f 6e 65 78 74 | 20 72 6f 6c 6c 20 69 73 |her/next| roll is|
|00002a50| 20 61 70 70 6c 69 65 64 | 0a 58 09 09 09 74 6f 20 | applied|.X...to |
|00002a60| 74 68 65 20 73 61 6d 65 | 20 70 6f 69 6e 74 20 79 |the same| point y|
|00002a70| 6f 75 20 6d 6f 76 65 64 | 20 66 72 6f 6d 20 6c 61 |ou moved| from la|
|00002a80| 73 74 20 74 69 6d 65 2e | 0a 58 09 70 09 09 4d 61 |st time.|.X.p..Ma|
|00002a90| 6b 65 20 70 6f 69 6e 74 | 2e 20 20 54 68 69 73 20 |ke point|. This |
|00002aa0| 67 65 74 73 20 61 20 6c | 69 74 74 6c 65 20 74 72 |gets a l|ittle tr|
|00002ab0| 69 63 6b 79 2e 20 20 4c | 64 62 20 61 74 74 65 6d |icky. L|db attem|
|00002ac0| 70 74 73 0a 58 09 09 09 | 74 6f 20 75 73 65 20 74 |pts.X...|to use t|
|00002ad0| 68 65 20 6f 74 68 65 72 | 2f 6e 65 78 74 20 72 6f |he other|/next ro|
|00002ae0| 6c 6c 20 74 6f 20 6d 6f | 76 65 20 6f 6e 65 20 6f |ll to mo|ve one o|
|00002af0| 66 20 79 6f 75 72 20 70 | 69 65 63 65 73 0a 58 09 |f your p|ieces.X.|
|00002b00| 09 09 73 6f 20 74 68 61 | 74 20 69 74 20 65 6e 64 |..so tha|t it end|
|00002b10| 73 20 75 70 20 6f 6e 20 | 74 68 65 20 73 61 6d 65 |s up on |the same|
|00002b20| 20 70 6f 69 6e 74 20 61 | 73 20 79 6f 75 72 20 6c | point a|s your l|
|00002b30| 61 73 74 20 6d 6f 76 65 | 0a 58 09 09 09 65 6e 64 |ast move|.X...end|
|00002b40| 65 64 20 6f 6e 2e 20 20 | 54 68 61 74 20 69 73 2c |ed on. |That is,|
|00002b50| 20 69 66 20 79 6f 75 20 | 72 6f 6c 6c 20 35 20 32 | if you |roll 5 2|
|00002b60| 20 61 6e 64 20 75 73 65 | 20 74 68 65 20 35 0a 58 | and use| the 5.X|
|00002b70| 09 09 09 74 6f 20 6d 6f | 76 65 20 66 72 6f 6d 20 |...to mo|ve from |
|00002b80| 74 68 65 20 36 20 70 6f | 69 6e 74 20 74 6f 20 74 |the 6 po|int to t|
|00002b90| 68 65 20 31 31 20 70 6f | 69 6e 74 2c 20 61 6e 64 |he 11 po|int, and|
|00002ba0| 20 68 69 74 20 22 70 22 | 2c 0a 58 09 09 09 6c 64 | hit "p"|,.X...ld|
|00002bb0| 62 20 77 69 6c 6c 20 6d | 6f 76 65 20 6f 6e 65 20 |b will m|ove one |
|00002bc0| 6f 66 20 79 6f 75 72 20 | 70 69 65 63 65 73 20 66 |of your |pieces f|
|00002bd0| 72 6f 6d 20 74 68 65 20 | 39 20 70 6f 69 6e 74 20 |rom the |9 point |
|00002be0| 74 6f 0a 58 09 09 09 74 | 68 65 20 31 31 20 70 6f |to.X...t|he 11 po|
|00002bf0| 69 6e 74 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |int to m|ake the |
|00002c00| 31 31 20 70 6f 69 6e 74 | 2e 20 20 54 68 69 73 20 |11 point|. This |
|00002c10| 61 73 73 75 6d 65 73 2c | 0a 58 09 09 09 6f 66 20 |assumes,|.X...of |
|00002c20| 63 6f 75 72 73 65 2c 20 | 74 68 61 74 20 79 6f 75 |course, |that you|
|00002c30| 20 68 61 76 65 20 61 20 | 70 69 65 63 65 20 6f 6e | have a |piece on|
|00002c40| 20 74 68 65 20 39 20 70 | 6f 69 6e 74 2e 0a 58 0a | the 9 p|oint..X.|
|00002c50| 58 09 4c 64 62 20 63 68 | 65 63 6b 73 20 79 6f 75 |X.Ldb ch|ecks you|
|00002c60| 72 20 6d 6f 76 65 73 20 | 66 6f 72 20 61 20 6e 75 |r moves |for a nu|
|00002c70| 6d 62 65 72 20 6f 66 20 | 63 6f 6d 6d 6f 6e 20 65 |mber of |common e|
|00002c80| 72 72 6f 72 73 2e 20 20 | 54 68 65 73 65 20 0a 58 |rrors. |These .X|
|00002c90| 61 72 65 20 6c 69 73 74 | 65 64 20 69 6e 20 74 68 |are list|ed in th|
|00002ca0| 65 20 6d 61 6e 75 61 6c | 2e 0a 58 0a 58 09 46 6f |e manual|..X.X.Fo|
|00002cb0| 72 20 6d 6f 72 65 20 6f | 70 74 69 6f 6e 73 2c 20 |r more o|ptions, |
|00002cc0| 72 65 61 64 20 74 68 65 | 20 6d 61 6e 75 61 6c 20 |read the| manual |
|00002cd0| 61 6e 64 20 74 68 65 20 | 63 6f 6d 6d 65 6e 74 73 |and the |comments|
|00002ce0| 20 61 74 20 74 68 65 20 | 74 6f 70 0a 58 6f 66 20 | at the |top.Xof |
|00002cf0| 6d 61 69 6e 2e 63 2e 0a | 58 0a 58 09 47 6f 6f 64 |main.c..|X.X.Good|
|00002d00| 20 6c 75 63 6b 21 0a 58 | 0a 58 09 09 09 09 09 09 | luck!.X|.X......|
|00002d10| 50 65 72 72 79 20 52 2e | 20 52 6f 73 73 0a 58 09 |Perry R.| Ross.X.|
|00002d20| 09 09 09 09 09 72 6f 73 | 73 40 65 6d 66 37 38 30 |.....ros|s@emf780|
|00002d30| 2e 64 65 6e 2e 6d 6d 63 | 2e 63 6f 6d 0a 58 0a 58 |.den.mmc|.com.X.X|
|00002d40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002d80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 58 0a |--------|-----.X.|
|00002d90| 58 09 52 65 61 6c 6c 79 | 20 53 63 61 72 79 20 61 |X.Really| Scary a|
|00002da0| 6e 64 20 48 6f 70 65 66 | 75 6c 6c 79 20 42 75 6c |nd Hopef|ully Bul|
|00002db0| 6c 65 74 70 72 6f 6f 66 | 20 4c 65 67 61 6c 20 53 |letproof| Legal S|
|00002dc0| 74 61 74 65 6d 65 6e 74 | 3a 0a 58 0a 58 54 68 69 |tatement|:.X.XThi|
|00002dd0| 73 20 73 6f 66 74 77 61 | 72 65 20 69 73 20 63 6f |s softwa|re is co|
|00002de0| 70 79 72 69 67 68 74 20 | 31 39 39 31 20 62 79 20 |pyright |1991 by |
|00002df0| 50 65 72 72 79 20 52 2e | 20 52 6f 73 73 2e 20 20 |Perry R.| Ross. |
|00002e00| 50 65 72 6d 69 73 73 69 | 6f 6e 20 74 6f 20 75 73 |Permissi|on to us|
|00002e10| 65 2c 0a 58 63 6f 70 79 | 2c 20 6d 6f 64 69 66 79 |e,.Xcopy|, modify|
|00002e20| 2c 20 61 6e 64 20 72 65 | 64 69 73 74 72 69 62 75 |, and re|distribu|
|00002e30| 74 65 20 69 74 20 69 73 | 20 67 72 61 6e 74 65 64 |te it is| granted|
|00002e40| 20 70 72 6f 76 69 64 65 | 64 3a 0a 58 09 28 31 29 | provide|d:.X.(1)|
|00002e50| 20 49 74 20 69 73 20 6e | 6f 74 20 73 6f 6c 64 2e | It is n|ot sold.|
|00002e60| 0a 58 09 28 32 29 20 54 | 68 69 73 20 6e 6f 74 69 |.X.(2) T|his noti|
|00002e70| 63 65 20 61 63 63 6f 6d | 70 61 6e 69 65 73 20 61 |ce accom|panies a|
|00002e80| 6c 6c 20 63 6f 70 69 65 | 73 2c 20 61 6e 64 20 69 |ll copie|s, and i|
|00002e90| 73 20 6b 65 70 74 20 69 | 6e 74 61 63 74 2e 0a 58 |s kept i|ntact..X|
|00002ea0| 09 28 33 29 20 55 73 65 | 72 73 20 64 6f 20 6e 6f |.(3) Use|rs do no|
|00002eb0| 74 20 63 68 65 61 74 20 | 62 79 20 61 6e 79 20 6d |t cheat |by any m|
|00002ec0| 65 74 68 6f 64 2c 20 69 | 6e 63 6c 75 64 69 6e 67 |ethod, i|ncluding|
|00002ed0| 20 62 75 74 20 6e 6f 74 | 20 6c 69 6d 69 74 65 64 | but not| limited|
|00002ee0| 20 74 6f 3a 0a 58 09 09 | 41 2e 20 6d 6f 64 69 66 | to:.X..|A. modif|
|00002ef0| 79 69 6e 67 20 74 68 65 | 20 72 6f 6c 6c 20 67 65 |ying the| roll ge|
|00002f00| 6e 65 72 61 74 65 64 20 | 62 79 20 74 68 65 20 72 |nerated |by the r|
|00002f10| 61 6e 64 6f 6d 20 6e 75 | 6d 62 65 72 20 67 65 6e |andom nu|mber gen|
|00002f20| 65 72 61 74 6f 72 2c 0a | 58 09 09 42 2e 20 6d 6f |erator,.|X..B. mo|
|00002f30| 64 69 66 79 69 6e 67 20 | 74 68 65 20 63 6f 64 65 |difying |the code|
|00002f40| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 61 6e 79 20 | to prov|ide any |
|00002f50| 72 6f 6c 6c 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |roll oth|er than |
|00002f60| 74 68 61 74 0a 58 09 09 | 20 20 20 67 65 6e 65 72 |that.X..| gener|
|00002f70| 61 74 65 64 20 62 79 20 | 61 20 62 6f 6e 61 2d 66 |ated by |a bona-f|
|00002f80| 69 64 65 20 72 61 6e 64 | 6f 6d 20 6e 75 6d 62 65 |ide rand|om numbe|
|00002f90| 72 20 67 65 6e 65 72 61 | 74 6f 72 2c 0a 58 09 09 |r genera|tor,.X..|
|00002fa0| 43 2e 20 74 61 6b 69 6e | 67 20 61 64 76 61 6e 74 |C. takin|g advant|
|00002fb0| 61 67 65 20 6f 66 20 61 | 6e 79 20 6e 6f 6e 2d 72 |age of a|ny non-r|
|00002fc0| 61 6e 64 6f 6d 6e 65 73 | 73 20 69 6e 20 61 20 72 |andomnes|s in a r|
|00002fd0| 61 6e 64 6f 6d 0a 58 09 | 09 20 20 20 6e 75 6d 62 |andom.X.|. numb|
|00002fe0| 65 72 20 67 65 6e 65 72 | 61 74 6f 72 20 74 6f 20 |er gener|ator to |
|00002ff0| 70 72 65 64 69 63 74 20 | 75 70 63 6f 6d 69 6e 67 |predict |upcoming|
|00003000| 20 72 6f 6c 6c 73 2c 0a | 58 09 09 44 2e 20 63 68 | rolls,.|X..D. ch|
|00003010| 61 6e 67 69 6e 67 20 74 | 68 65 20 63 6f 6e 74 65 |anging t|he conte|
|00003020| 6e 74 73 20 6f 66 20 61 | 6e 20 69 6e 63 6f 6d 69 |nts of a|n incomi|
|00003030| 6e 67 20 6d 65 73 73 61 | 67 65 20 6f 72 20 6f 66 |ng messa|ge or of|
|00003040| 20 74 68 65 0a 58 09 09 | 20 20 20 2e 6c 64 62 64 | the.X..| .ldbd|
|00003050| 61 74 61 20 66 69 6c 65 | 20 74 6f 20 6d 6f 64 69 |ata file| to modi|
|00003060| 66 79 20 74 68 65 20 6e | 6f 72 6d 61 6c 20 70 72 |fy the n|ormal pr|
|00003070| 6f 67 72 65 73 73 69 6f | 6e 20 6f 66 20 61 0a 58 |ogressio|n of a.X|
|00003080| 09 09 20 20 20 67 61 6d | 65 20 69 6e 20 61 6e 79 |.. gam|e in any|
|00003090| 20 77 61 79 2c 20 6f 72 | 0a 58 09 09 45 2e 20 67 | way, or|.X..E. g|
|000030a0| 65 6e 65 72 61 74 69 6e | 67 20 61 20 72 6f 6c 6c |eneratin|g a roll|
|000030b0| 20 62 65 66 6f 72 65 20 | 6f 66 66 65 72 69 6e 67 | before |offering|
|000030c0| 20 74 6f 20 64 6f 75 62 | 6c 65 2e 0a 58 09 20 20 | to doub|le..X. |
|000030d0| 20 50 65 72 73 6f 6e 73 | 20 67 75 69 6c 74 79 20 | Persons| guilty |
|000030e0| 6f 66 20 63 68 65 61 74 | 69 6e 67 20 69 6e 20 61 |of cheat|ing in a|
|000030f0| 6e 79 20 77 61 79 20 77 | 68 69 6c 65 20 75 73 69 |ny way w|hile usi|
|00003100| 6e 67 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |ng this |software|
|00003110| 0a 58 09 20 20 20 61 72 | 65 20 64 65 6e 69 65 64 |.X. ar|e denied|
|00003120| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 75 | permiss|ion to u|
|00003130| 73 65 20 6f 72 20 64 69 | 73 74 72 69 62 75 74 65 |se or di|stribute|
|00003140| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 0a 58 | this so|ftware.X|
|00003150| 09 20 20 20 69 6e 20 70 | 65 72 70 65 74 75 69 74 |. in p|erpetuit|
|00003160| 79 2e 20 20 45 78 63 6c | 75 64 65 64 20 66 72 6f |y. Excl|uded fro|
|00003170| 6d 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |m the de|finition|
|00003180| 20 6f 66 20 63 68 65 61 | 74 69 6e 67 20 69 73 0a | of chea|ting is.|
|00003190| 58 09 20 20 20 61 6e 79 | 20 61 63 74 69 6f 6e 20 |X. any| action |
|000031a0| 77 68 6f 73 65 20 69 6e | 74 65 6e 74 69 6f 6e 20 |whose in|tention |
|000031b0| 69 73 20 74 6f 20 74 65 | 73 74 20 6f 72 20 64 65 |is to te|st or de|
|000031c0| 62 75 67 20 74 68 69 73 | 20 73 6f 66 74 77 61 72 |bug this| softwar|
|000031d0| 65 2c 0a 58 09 20 20 20 | 61 73 20 6c 6f 6e 67 20 |e,.X. |as long |
|000031e0| 61 73 20 74 68 65 20 6f | 70 70 6f 6e 65 6e 74 20 |as the o|pponent |
|000031f0| 69 73 20 61 77 61 72 65 | 20 74 68 61 74 20 74 68 |is aware| that th|
|00003200| 65 73 65 20 61 63 74 69 | 6f 6e 73 20 61 72 65 20 |ese acti|ons are |
|00003210| 62 65 69 6e 67 0a 58 09 | 20 20 20 70 65 72 66 6f |being.X.| perfo|
|00003220| 72 6d 65 64 2c 20 61 6e | 64 20 74 68 65 20 67 61 |rmed, an|d the ga|
|00003230| 6d 65 20 69 73 20 63 6f | 6e 73 69 64 65 72 65 64 |me is co|nsidered|
|00003240| 20 22 75 6e 6f 66 66 69 | 63 69 61 6c 22 2e 0a 58 | "unoffi|cial"..X|
|00003250| 54 68 65 20 61 62 6f 76 | 65 20 72 65 73 74 72 69 |The abov|e restri|
|00003260| 63 74 69 6f 6e 73 20 61 | 72 65 20 6d 61 64 65 20 |ctions a|re made |
|00003270| 69 6e 20 61 6c 6c 20 73 | 65 72 69 6f 75 73 6e 65 |in all s|eriousne|
|00003280| 73 73 2c 20 61 6e 64 20 | 77 69 74 68 20 65 76 65 |ss, and |with eve|
|00003290| 72 79 0a 58 69 6e 74 65 | 6e 74 69 6f 6e 20 6f 66 |ry.Xinte|ntion of|
|000032a0| 20 65 6e 66 6f 72 63 65 | 6d 65 6e 74 20 62 79 20 | enforce|ment by |
|000032b0| 61 6e 79 20 61 6e 64 20 | 61 6c 6c 20 6c 65 67 61 |any and |all lega|
|000032c0| 6c 20 6d 65 61 6e 73 20 | 77 68 65 72 65 20 70 72 |l means |where pr|
|000032d0| 61 63 74 69 63 61 6c 2e | 0a 58 0a 58 28 53 6f 75 |actical.|.X.X(Sou|
|000032e0| 6e 64 73 20 61 6c 6d 6f | 73 74 20 61 73 20 67 6f |nds almo|st as go|
|000032f0| 6f 64 20 61 73 20 74 68 | 65 20 72 65 61 6c 20 74 |od as th|e real t|
|00003300| 68 69 6e 67 2c 20 64 6f | 65 73 6e 27 74 20 69 74 |hing, do|esn't it|
|00003310| 3f 29 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |?).END_O|F_FILE.i|
|00003320| 66 20 74 65 73 74 20 34 | 39 30 37 20 2d 6e 65 20 |f test 4|907 -ne |
|00003330| 60 77 63 20 2d 63 20 3c | 27 52 45 41 44 4d 45 27 |`wc -c <|'README'|
|00003340| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00003350| 20 73 68 61 72 3a 20 5c | 22 27 52 45 41 44 4d 45 | shar: \|"'README|
|00003360| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00003370| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00003380| 0a 63 68 6d 6f 64 20 2b | 78 20 27 52 45 41 44 4d |.chmod +|x 'READM|
|00003390| 45 27 0a 23 20 65 6e 64 | 20 6f 66 20 27 52 45 41 |E'.# end| of 'REA|
|000033a0| 44 4d 45 27 0a 66 69 0a | 69 66 20 74 65 73 74 20 |DME'.fi.|if test |
|000033b0| 2d 66 20 27 62 6f 61 72 | 64 2e 63 27 20 2d 61 20 |-f 'boar|d.c' -a |
|000033c0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000033d0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000033e0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000033f0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00003400| 6c 65 20 5c 22 27 62 6f | 61 72 64 2e 63 27 5c 22 |le \"'bo|ard.c'\"|
|00003410| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00003420| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 62 | Extract|ing \"'b|
|00003430| 6f 61 72 64 2e 63 27 5c | 22 20 5c 28 32 31 39 35 |oard.c'\|" \(2195|
|00003440| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00003450| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 62 6f 61 |d "s/^X/|/" >'boa|
|00003460| 72 64 2e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |rd.c' <<|'END_OF_|
|00003470| 46 49 4c 45 27 0a 58 2f | 2a 20 62 6f 61 72 64 2e |FILE'.X/|* board.|
|00003480| 63 09 09 38 2f 33 2f 39 | 31 0a 58 20 2a 0a 58 20 |c..8/3/9|1.X *.X |
|00003490| 2a 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 39 31 |* Copyri|ght 1991|
|000034a0| 20 20 50 65 72 72 79 20 | 52 2e 20 52 6f 73 73 0a | Perry |R. Ross.|
|000034b0| 58 20 2a 0a 58 20 2a 20 | 50 65 72 6d 69 73 73 69 |X *.X * |Permissi|
|000034c0| 6f 6e 20 74 6f 20 75 73 | 65 2c 20 63 6f 70 79 2c |on to us|e, copy,|
|000034d0| 20 6d 6f 64 69 66 79 2c | 20 61 6e 64 20 64 69 73 | modify,| and dis|
|000034e0| 74 72 69 62 75 74 65 20 | 74 68 69 73 20 73 6f 66 |tribute |this sof|
|000034f0| 74 77 61 72 65 20 61 6e | 64 20 69 74 73 0a 58 20 |tware an|d its.X |
|00003500| 2a 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |* docume|ntation |
|00003510| 77 69 74 68 6f 75 74 20 | 66 65 65 20 69 73 20 68 |without |fee is h|
|00003520| 65 72 65 62 79 20 67 72 | 61 6e 74 65 64 2c 20 73 |ereby gr|anted, s|
|00003530| 75 62 6a 65 63 74 20 74 | 6f 20 74 68 65 20 72 65 |ubject t|o the re|
|00003540| 73 74 72 69 63 74 69 6f | 6e 73 0a 58 20 2a 20 64 |strictio|ns.X * d|
|00003550| 65 74 61 69 6c 65 64 20 | 69 6e 20 74 68 65 20 52 |etailed |in the R|
|00003560| 45 41 44 4d 45 20 66 69 | 6c 65 2c 20 77 68 69 63 |EADME fi|le, whic|
|00003570| 68 20 69 73 20 69 6e 63 | 6c 75 64 65 64 20 68 65 |h is inc|luded he|
|00003580| 72 65 20 62 79 20 72 65 | 66 65 72 65 6e 63 65 2e |re by re|ference.|
|00003590| 0a 58 20 2a 20 41 6e 79 | 20 6f 74 68 65 72 20 75 |.X * Any| other u|
|000035a0| 73 65 20 72 65 71 75 69 | 72 65 73 20 77 72 69 74 |se requi|res writ|
|000035b0| 74 65 6e 20 70 65 72 6d | 69 73 73 69 6f 6e 20 66 |ten perm|ission f|
|000035c0| 72 6f 6d 20 74 68 65 20 | 61 75 74 68 6f 72 2e 20 |rom the |author. |
|000035d0| 20 54 68 69 73 20 73 6f | 66 74 77 61 72 65 0a 58 | This so|ftware.X|
|000035e0| 20 2a 20 69 73 20 64 69 | 73 74 72 69 62 75 74 65 | * is di|stribute|
|000035f0| 64 20 22 61 73 20 69 73 | 22 20 77 69 74 68 6f 75 |d "as is|" withou|
|00003600| 74 20 61 6e 79 20 77 61 | 72 72 61 6e 74 79 2c 20 |t any wa|rranty, |
|00003610| 69 6e 63 6c 75 64 69 6e | 67 20 61 6e 79 20 69 6d |includin|g any im|
|00003620| 70 6c 69 65 64 0a 58 20 | 2a 20 77 61 72 72 61 6e |plied.X |* warran|
|00003630| 74 69 65 73 20 6f 66 20 | 6d 65 72 63 68 61 6e 74 |ties of |merchant|
|00003640| 61 62 69 6c 69 74 79 20 | 6f 72 20 66 69 74 6e 65 |ability |or fitne|
|00003650| 73 73 20 66 6f 72 20 61 | 20 70 61 72 74 69 63 75 |ss for a| particu|
|00003660| 6c 61 72 20 70 75 72 70 | 6f 73 65 2e 0a 58 20 2a |lar purp|ose..X *|
|00003670| 20 54 68 65 20 61 75 74 | 68 6f 72 20 73 68 61 6c | The aut|hor shal|
|00003680| 6c 20 6e 6f 74 20 62 65 | 20 6c 69 61 62 6c 65 20 |l not be| liable |
|00003690| 66 6f 72 20 61 6e 79 20 | 64 61 6d 61 67 65 73 20 |for any |damages |
|000036a0| 72 65 73 75 6c 74 69 6e | 67 20 66 72 6f 6d 20 74 |resultin|g from t|
|000036b0| 68 65 0a 58 20 2a 20 75 | 73 65 20 6f 66 20 74 68 |he.X * u|se of th|
|000036c0| 69 73 20 73 6f 66 74 77 | 61 72 65 2e 20 20 42 79 |is softw|are. By|
|000036d0| 20 75 73 69 6e 67 20 74 | 68 69 73 20 73 6f 66 74 | using t|his soft|
|000036e0| 77 61 72 65 2c 20 74 68 | 65 20 75 73 65 72 20 61 |ware, th|e user a|
|000036f0| 67 72 65 65 73 0a 58 20 | 2a 20 74 6f 20 74 68 65 |grees.X |* to the|
|00003700| 73 65 20 74 65 72 6d 73 | 2e 0a 58 20 2a 2f 0a 58 |se terms|..X */.X|
|00003710| 0a 58 23 69 6e 63 6c 75 | 64 65 20 22 6c 64 62 2e |.X#inclu|de "ldb.|
|00003720| 68 22 0a 58 0a 58 2f 2a | 2d 2d 2d 2d 2d 2d 2d 2d |h".X.X/*|--------|
|00003730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 58 |--------|------.X|
|00003770| 20 2a 09 6e 65 77 62 6f | 61 72 64 20 2d 2d 20 73 | *.newbo|ard -- s|
|00003780| 65 74 20 75 70 20 61 20 | 62 6f 61 72 64 20 61 72 |et up a |board ar|
|00003790| 72 61 79 20 66 6f 72 20 | 61 20 6e 65 77 20 67 61 |ray for |a new ga|
|000037a0| 6d 65 0a 58 20 2a 0a 58 | 20 2a 20 54 68 69 73 20 |me.X *.X| * This |
|000037b0| 66 75 6e 63 74 69 6f 6e | 20 69 6e 69 74 69 61 6c |function| initial|
|000037c0| 69 7a 65 73 20 61 20 62 | 6f 61 72 64 20 61 72 72 |izes a b|oard arr|
|000037d0| 61 79 20 73 6f 20 74 68 | 61 74 20 69 74 20 69 73 |ay so th|at it is|
|000037e0| 20 73 65 74 20 75 70 0a | 58 20 2a 20 70 72 6f 70 | set up.|X * prop|
|000037f0| 65 72 6c 79 20 66 6f 72 | 20 61 20 6e 65 77 20 67 |erly for| a new g|
|00003800| 61 6d 65 2e 20 20 49 74 | 20 69 73 20 70 61 73 73 |ame. It| is pass|
|00003810| 65 64 20 74 77 6f 20 63 | 68 61 72 61 63 74 65 72 |ed two c|haracter|
|00003820| 73 20 74 68 61 74 20 61 | 72 65 0a 58 20 2a 20 75 |s that a|re.X * u|
|00003830| 73 65 64 20 74 6f 20 64 | 72 61 77 20 74 68 65 20 |sed to d|raw the |
|00003840| 70 69 65 63 65 73 20 66 | 6f 72 20 74 68 65 20 62 |pieces f|or the b|
|00003850| 6f 61 72 64 2e 20 20 43 | 31 20 69 73 20 74 68 65 |oard. C|1 is the|
|00003860| 20 63 6f 6c 6f 72 20 66 | 6f 72 20 74 68 65 0a 58 | color f|or the.X|
|00003870| 20 2a 20 75 70 62 6f 75 | 6e 64 20 70 6c 61 79 65 | * upbou|nd playe|
|00003880| 72 2c 20 61 6e 64 20 63 | 32 20 69 73 20 74 68 65 |r, and c|2 is the|
|00003890| 20 63 6f 6c 6f 72 20 66 | 6f 72 20 74 68 65 20 64 | color f|or the d|
|000038a0| 6f 77 6e 62 6f 75 6e 64 | 20 70 6c 61 79 65 72 2e |ownbound| player.|
|000038b0| 0a 58 20 2a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X *----|--------|
|000038c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000038d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000038e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000038f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 58 20 2a 2f 0a |--------|--.X */.|
|00003900| 58 0a 58 6e 65 77 62 6f | 61 72 64 28 62 2c 63 31 |X.Xnewbo|ard(b,c1|
|00003910| 2c 63 32 29 0a 58 62 6f | 61 72 64 20 62 3b 0a 58 |,c2).Xbo|ard b;.X|
|00003920| 63 68 61 72 20 63 31 2c | 20 63 32 3b 0a 58 7b 0a |char c1,| c2;.X{.|
|00003930| 58 69 6e 74 20 69 3b 0a | 58 0a 58 66 6f 72 20 28 |Xint i;.|X.Xfor (|
|00003940| 69 20 3d 20 30 3b 20 69 | 20 3c 20 42 4f 41 52 44 |i = 0; i| < BOARD|
|00003950| 53 49 5a 45 3b 20 69 2b | 2b 29 20 7b 0a 58 09 62 |SIZE; i+|+) {.X.b|
|00003960| 5b 69 5d 2e 71 74 79 20 | 3d 20 30 3b 09 09 09 2f |[i].qty |= 0;.../|
|00003970| 2a 20 69 6e 69 74 20 74 | 6f 20 65 6d 70 74 79 20 |* init t|o empty |
|00003980| 2a 2f 0a 58 09 62 5b 69 | 5d 2e 63 6f 6c 6f 72 20 |*/.X.b[i|].color |
|00003990| 3d 20 27 78 27 3b 09 09 | 2f 2a 20 69 6e 69 74 20 |= 'x';..|/* init |
|000039a0| 74 6f 20 69 6e 76 61 6c | 69 64 20 63 6f 6c 6f 72 |to inval|id color|
|000039b0| 20 2a 2f 0a 58 09 7d 0a | 58 62 5b 31 5d 2e 71 74 | */.X.}.|Xb[1].qt|
|000039c0| 79 20 3d 20 32 3b 09 09 | 09 09 2f 2a 20 32 20 63 |y = 2;..|../* 2 c|
|000039d0| 31 27 73 20 6f 6e 20 31 | 20 70 6f 69 6e 74 20 2a |1's on 1| point *|
|000039e0| 2f 0a 58 62 5b 31 5d 2e | 63 6f 6c 6f 72 20 3d 20 |/.Xb[1].|color = |
|000039f0| 63 31 3b 0a 58 62 5b 36 | 5d 2e 71 74 79 20 3d 20 |c1;.Xb[6|].qty = |
|00003a00| 35 3b 09 09 09 09 2f 2a | 20 35 20 63 32 27 73 20 |5;..../*| 5 c2's |
|00003a10| 6f 6e 20 36 20 70 6f 69 | 6e 74 20 2a 2f 0a 58 62 |on 6 poi|nt */.Xb|
|00003a20| 5b 36 5d 2e 63 6f 6c 6f | 72 20 3d 20 63 32 3b 0a |[6].colo|r = c2;.|
|00003a30| 58 62 5b 38 5d 2e 71 74 | 79 20 3d 20 33 3b 09 09 |Xb[8].qt|y = 3;..|
|00003a40| 09 09 2f 2a 20 33 20 63 | 32 27 73 20 6f 6e 20 38 |../* 3 c|2's on 8|
|00003a50| 20 70 6f 69 6e 74 20 2a | 2f 0a 58 62 5b 38 5d 2e | point *|/.Xb[8].|
|00003a60| 63 6f 6c 6f 72 20 3d 20 | 63 32 3b 0a 58 62 5b 31 |color = |c2;.Xb[1|
|00003a70| 32 5d 2e 71 74 79 20 3d | 20 35 3b 09 09 09 09 2f |2].qty =| 5;..../|
|00003a80| 2a 20 35 20 63 31 27 73 | 20 6f 6e 20 31 32 20 70 |* 5 c1's| on 12 p|
|00003a90| 6f 69 6e 74 20 2a 2f 0a | 58 62 5b 31 32 5d 2e 63 |oint */.|Xb[12].c|
|00003aa0| 6f 6c 6f 72 20 3d 20 63 | 31 3b 0a 58 62 5b 31 33 |olor = c|1;.Xb[13|
|00003ab0| 5d 2e 71 74 79 20 3d 20 | 35 3b 09 09 09 09 2f 2a |].qty = |5;..../*|
|00003ac0| 20 35 20 63 32 27 73 20 | 6f 6e 20 31 33 20 70 6f | 5 c2's |on 13 po|
|00003ad0| 69 6e 74 20 2a 2f 0a 58 | 62 5b 31 33 5d 2e 63 6f |int */.X|b[13].co|
|00003ae0| 6c 6f 72 20 3d 20 63 32 | 3b 0a 58 62 5b 31 37 5d |lor = c2|;.Xb[17]|
|00003af0| 2e 71 74 79 20 3d 20 33 | 3b 09 09 09 09 2f 2a 20 |.qty = 3|;..../* |
|00003b00| 33 20 63 31 27 73 20 6f | 6e 20 31 37 20 70 6f 69 |3 c1's o|n 17 poi|
|00003b10| 6e 74 20 2a 2f 0a 58 62 | 5b 31 37 5d 2e 63 6f 6c |nt */.Xb|[17].col|
|00003b20| 6f 72 20 3d 20 63 31 3b | 0a 58 62 5b 31 39 5d 2e |or = c1;|.Xb[19].|
|00003b30| 71 74 79 20 3d 20 35 3b | 09 09 09 09 2f 2a 20 35 |qty = 5;|..../* 5|
|00003b40| 20 63 31 27 73 20 6f 6e | 20 31 39 20 70 6f 69 6e | c1's on| 19 poin|
|00003b50| 74 20 2a 2f 0a 58 62 5b | 31 39 5d 2e 63 6f 6c 6f |t */.Xb[|19].colo|
|00003b60| 72 20 3d 20 63 31 3b 0a | 58 62 5b 32 34 5d 2e 71 |r = c1;.|Xb[24].q|
|00003b70| 74 79 20 3d 20 32 3b 09 | 09 09 09 2f 2a 20 32 20 |ty = 2;.|.../* 2 |
|00003b80| 63 32 27 73 20 6f 6e 20 | 32 34 20 70 6f 69 6e 74 |c2's on |24 point|
|00003b90| 20 2a 2f 0a 58 62 5b 32 | 34 5d 2e 63 6f 6c 6f 72 | */.Xb[2|4].color|
|00003ba0| 20 3d 20 63 32 3b 0a 58 | 7d 0a 58 0a 58 0a 58 2f | = c2;.X|}.X.X.X/|
|00003bb0| 2a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*-------|--------|
|00003bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003bf0| 2d 2d 2d 2d 2d 2d 2d 0a | 58 20 2a 09 63 6f 70 79 |-------.|X *.copy|
|00003c00| 62 6f 61 72 64 20 2d 2d | 20 6d 61 6b 65 20 61 20 |board --| make a |
|00003c10| 63 6f 70 79 20 61 20 62 | 6f 61 72 64 20 61 72 72 |copy a b|oard arr|
|00003c20| 61 79 0a 58 20 2a 0a 58 | 20 2a 20 54 68 69 73 20 |ay.X *.X| * This |
|00003c30| 69 73 20 61 20 63 6f 6e | 76 65 6e 69 65 6e 63 65 |is a con|venience|
|00003c40| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 63 | functio|n that c|
|00003c50| 6f 70 69 65 73 20 61 6e | 20 65 6e 74 69 72 65 20 |opies an| entire |
|00003c60| 62 6f 61 72 64 2e 20 54 | 68 65 0a 58 20 2a 20 73 |board. T|he.X * s|
|00003c70| 6f 75 72 63 65 20 69 73 | 20 67 69 76 65 6e 20 61 |ource is| given a|
|00003c80| 73 20 22 66 22 2c 20 61 | 6e 64 20 74 68 65 20 64 |s "f", a|nd the d|
|00003c90| 65 73 74 69 6e 61 74 69 | 6f 6e 20 61 73 20 22 74 |estinati|on as "t|
|00003ca0| 22 2e 0a 58 20 2a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |"..X *--|--------|
|00003cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003cc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003cd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ce0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 20 2a |--------|----.X *|
|00003cf0| 2f 0a 58 0a 58 63 6f 70 | 79 62 6f 61 72 64 28 66 |/.X.Xcop|yboard(f|
|00003d00| 2c 74 29 0a 58 62 6f 61 | 72 64 20 66 2c 20 74 3b |,t).Xboa|rd f, t;|
|00003d10| 0a 58 7b 0a 58 69 6e 74 | 20 69 3b 0a 58 0a 58 66 |.X{.Xint| i;.X.Xf|
|00003d20| 6f 72 20 28 69 20 3d 20 | 30 3b 20 69 20 3c 20 42 |or (i = |0; i < B|
|00003d30| 4f 41 52 44 53 49 5a 45 | 3b 20 69 2b 2b 29 0a 58 |OARDSIZE|; i++).X|
|00003d40| 09 74 5b 69 5d 20 3d 20 | 66 5b 69 5d 3b 0a 58 7d |.t[i] = |f[i];.X}|
|00003d50| 0a 45 4e 44 5f 4f 46 5f | 46 49 4c 45 0a 69 66 20 |.END_OF_|FILE.if |
|00003d60| 74 65 73 74 20 32 31 39 | 35 20 2d 6e 65 20 60 77 |test 219|5 -ne `w|
|00003d70| 63 20 2d 63 20 3c 27 62 | 6f 61 72 64 2e 63 27 60 |c -c <'b|oard.c'`|
|00003d80| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00003d90| 73 68 61 72 3a 20 5c 22 | 27 62 6f 61 72 64 2e 63 |shar: \"|'board.c|
|00003da0| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00003db0| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00003dc0| 0a 63 68 6d 6f 64 20 2b | 78 20 27 62 6f 61 72 64 |.chmod +|x 'board|
|00003dd0| 2e 63 27 0a 23 20 65 6e | 64 20 6f 66 20 27 62 6f |.c'.# en|d of 'bo|
|00003de0| 61 72 64 2e 63 27 0a 66 | 69 0a 69 66 20 74 65 73 |ard.c'.f|i.if tes|
|00003df0| 74 20 2d 66 20 27 63 68 | 65 63 6b 2e 63 27 20 2d |t -f 'ch|eck.c' -|
|00003e00| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00003e10| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00003e20| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00003e30| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00003e40| 66 69 6c 65 20 5c 22 27 | 63 68 65 63 6b 2e 63 27 |file \"'|check.c'|
|00003e50| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00003e60| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00003e70| 27 63 68 65 63 6b 2e 63 | 27 5c 22 20 5c 28 35 33 |'check.c|'\" \(53|
|00003e80| 30 30 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |00 chara|cters\).|
|00003e90| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 63 |sed "s/^|X//" >'c|
|00003ea0| 68 65 63 6b 2e 63 27 20 | 3c 3c 27 45 4e 44 5f 4f |heck.c' |<<'END_O|
|00003eb0| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 09 63 68 65 63 |F_FILE'.|X/*.chec|
|00003ec0| 6b 2e 63 09 09 31 30 2f | 32 39 2f 39 31 0a 58 20 |k.c..10/|29/91.X |
|00003ed0| 2a 0a 58 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |*.X * Co|pyright |
|00003ee0| 31 39 39 31 20 20 50 65 | 72 72 79 20 52 2e 20 52 |1991 Pe|rry R. R|
|00003ef0| 6f 73 73 0a 58 20 2a 0a | 58 20 2a 20 50 65 72 6d |oss.X *.|X * Perm|
|00003f00| 69 73 73 69 6f 6e 20 74 | 6f 20 75 73 65 2c 20 63 |ission t|o use, c|
|00003f10| 6f 70 79 2c 20 6d 6f 64 | 69 66 79 2c 20 61 6e 64 |opy, mod|ify, and|
|00003f20| 20 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 | distrib|ute this|
|00003f30| 20 73 6f 66 74 77 61 72 | 65 20 61 6e 64 20 69 74 | softwar|e and it|
|00003f40| 73 0a 58 20 2a 20 64 6f | 63 75 6d 65 6e 74 61 74 |s.X * do|cumentat|
|00003f50| 69 6f 6e 20 77 69 74 68 | 6f 75 74 20 66 65 65 20 |ion with|out fee |
|00003f60| 69 73 20 68 65 72 65 62 | 79 20 67 72 61 6e 74 65 |is hereb|y grante|
|00003f70| 64 2c 20 73 75 62 6a 65 | 63 74 20 74 6f 20 74 68 |d, subje|ct to th|
|00003f80| 65 20 72 65 73 74 72 69 | 63 74 69 6f 6e 73 0a 58 |e restri|ctions.X|
|00003f90| 20 2a 20 64 65 74 61 69 | 6c 65 64 20 69 6e 20 74 | * detai|led in t|
|00003fa0| 68 65 20 52 45 41 44 4d | 45 20 66 69 6c 65 2c 20 |he READM|E file, |
|00003fb0| 77 68 69 63 68 20 69 73 | 20 69 6e 63 6c 75 64 65 |which is| include|
|00003fc0| 64 20 68 65 72 65 20 62 | 79 20 72 65 66 65 72 65 |d here b|y refere|
|00003fd0| 6e 63 65 2e 0a 58 20 2a | 20 41 6e 79 20 6f 74 68 |nce..X *| Any oth|
|00003fe0| 65 72 20 75 73 65 20 72 | 65 71 75 69 72 65 73 20 |er use r|equires |
|00003ff0| 77 72 69 74 74 65 6e 20 | 70 65 72 6d 69 73 73 69 |written |permissi|
|00004000| 6f 6e 20 66 72 6f 6d 20 | 74 68 65 20 61 75 74 68 |on from |the auth|
|00004010| 6f 72 2e 20 20 54 68 69 | 73 20 73 6f 66 74 77 61 |or. Thi|s softwa|
|00004020| 72 65 0a 58 20 2a 20 69 | 73 20 64 69 73 74 72 69 |re.X * i|s distri|
|00004030| 62 75 74 65 64 20 22 61 | 73 20 69 73 22 20 77 69 |buted "a|s is" wi|
|00004040| 74 68 6f 75 74 20 61 6e | 79 20 77 61 72 72 61 6e |thout an|y warran|
|00004050| 74 79 2c 20 69 6e 63 6c | 75 64 69 6e 67 20 61 6e |ty, incl|uding an|
|00004060| 79 20 69 6d 70 6c 69 65 | 64 0a 58 20 2a 20 77 61 |y implie|d.X * wa|
|00004070| 72 72 61 6e 74 69 65 73 | 20 6f 66 20 6d 65 72 63 |rranties| of merc|
|00004080| 68 61 6e 74 61 62 69 6c | 69 74 79 20 6f 72 20 66 |hantabil|ity or f|
|00004090| 69 74 6e 65 73 73 20 66 | 6f 72 20 61 20 70 61 72 |itness f|or a par|
|000040a0| 74 69 63 75 6c 61 72 20 | 70 75 72 70 6f 73 65 2e |ticular |purpose.|
|000040b0| 0a 58 20 2a 20 54 68 65 | 20 61 75 74 68 6f 72 20 |.X * The| author |
|000040c0| 73 68 61 6c 6c 20 6e 6f | 74 20 62 65 20 6c 69 61 |shall no|t be lia|
|000040d0| 62 6c 65 20 66 6f 72 20 | 61 6e 79 20 64 61 6d 61 |ble for |any dama|
|000040e0| 67 65 73 20 72 65 73 75 | 6c 74 69 6e 67 20 66 72 |ges resu|lting fr|
|000040f0| 6f 6d 20 74 68 65 0a 58 | 20 2a 20 75 73 65 20 6f |om the.X| * use o|
|00004100| 66 20 74 68 69 73 20 73 | 6f 66 74 77 61 72 65 2e |f this s|oftware.|
|00004110| 20 20 42 79 20 75 73 69 | 6e 67 20 74 68 69 73 20 | By usi|ng this |
|00004120| 73 6f 66 74 77 61 72 65 | 2c 20 74 68 65 20 75 73 |software|, the us|
|00004130| 65 72 20 61 67 72 65 65 | 73 0a 58 20 2a 20 74 6f |er agree|s.X * to|
|00004140| 20 74 68 65 73 65 20 74 | 65 72 6d 73 2e 0a 58 20 | these t|erms..X |
|00004150| 2a 2f 0a 58 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |*/.X.X#i|nclude "|
|00004160| 6c 64 62 2e 68 22 0a 58 | 0a 58 2f 2a 3d 3d 3d 3d |ldb.h".X|.X/*====|
|00004170| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004180| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000041a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000041b0| 3d 3d 0a 58 20 2a 20 54 | 68 69 73 20 66 69 6c 65 |==.X * T|his file|
|000041c0| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 66 75 | contain|s the fu|
|000041d0| 6e 63 74 69 6f 6e 73 20 | 74 68 61 74 20 63 68 65 |nctions |that che|
|000041e0| 63 6b 20 66 6f 72 20 75 | 6e 75 73 65 64 20 6d 6f |ck for u|nused mo|
|000041f0| 76 65 73 2e 0a 58 20 2a | 3d 3d 3d 3d 3d 3d 3d 3d |ves..X *|========|
|00004200| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004210| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004220| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004230| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 58 |========|======.X|
|00004240| 20 2a 2f 0a 58 0a 58 0a | 58 50 52 49 56 41 54 45 | */.X.X.|XPRIVATE|
|00004250| 20 69 6e 74 20 6d 61 78 | 75 73 65 64 2c 20 68 69 | int max|used, hi|
|00004260| 75 73 65 64 2c 20 6e 6c | 65 67 61 6c 3b 0a 58 0a |used, nl|egal;.X.|
|00004270| 58 73 74 72 75 63 74 20 | 6c 65 67 61 6c 20 2a 72 |Xstruct |legal *r|
|00004280| 6d 6c 65 67 61 6c 28 29 | 3b 0a 58 0a 58 0a 58 6c |mlegal()|;.X.X.Xl|
|00004290| 65 67 61 6c 6d 6f 76 65 | 73 28 67 29 0a 58 73 74 |egalmove|s(g).Xst|
|000042a0| 72 75 63 74 20 67 61 6d | 65 20 2a 67 3b 0a 58 7b |ruct gam|e *g;.X{|
|000042b0| 0a 58 73 74 72 75 63 74 | 20 67 61 6d 65 20 74 6d |.Xstruct| game tm|
|000042c0| 70 3b 0a 58 69 6e 74 20 | 69 3b 0a 58 73 74 72 75 |p;.Xint |i;.Xstru|
|000042d0| 63 74 20 6c 65 67 61 6c | 20 2a 6c 3b 0a 58 0a 58 |ct legal| *l;.X.X|
|000042e0| 74 6d 70 20 3d 20 2a 67 | 3b 09 09 09 2f 2a 20 77 |tmp = *g|;.../* w|
|000042f0| 65 20 64 6f 6e 27 74 20 | 77 61 6e 74 20 74 6f 20 |e don't |want to |
|00004300| 63 68 61 6e 67 65 20 61 | 63 74 75 61 6c 20 67 61 |change a|ctual ga|
|00004310| 6d 65 20 2a 2f 0a 58 66 | 6f 72 20 28 69 20 3d 20 |me */.Xf|or (i = |
|00004320| 30 3b 20 69 20 3c 20 34 | 3b 20 74 6d 70 2e 6d 76 |0; i < 4|; tmp.mv|
|00004330| 73 5b 69 2b 2b 5d 2e 70 | 74 20 3d 20 2d 31 29 3b |s[i++].p|t = -1);|
|00004340| 09 2f 2a 20 6d 61 72 6b | 20 61 6c 6c 20 75 6e 75 |./* mark| all unu|
|00004350| 73 65 64 20 2a 2f 0a 58 | 6d 61 78 75 73 65 64 20 |sed */.X|maxused |
|00004360| 3d 20 2d 31 3b 09 09 09 | 2f 2a 20 69 6e 69 74 20 |= -1;...|/* init |
|00004370| 74 6f 20 6e 6f 74 20 61 | 6c 6c 20 75 73 65 64 20 |to not a|ll used |
|00004380| 2a 2f 0a 58 68 69 75 73 | 65 64 20 3d 20 30 3b 09 |*/.Xhius|ed = 0;.|
|00004390| 09 09 2f 2a 20 69 6e 69 | 74 20 74 6f 20 30 20 2a |../* ini|t to 0 *|
|000043a0| 2f 0a 58 6e 6c 65 67 61 | 6c 20 3d 20 30 3b 09 09 |/.Xnlega|l = 0;..|
|000043b0| 09 2f 2a 20 69 6e 69 74 | 20 74 6f 20 6e 6f 20 6c |./* init| to no l|
|000043c0| 65 67 61 6c 20 6d 6f 76 | 65 73 2a 2f 0a 58 6c 68 |egal mov|es*/.Xlh|
|000043d0| 65 61 64 20 3d 20 4e 55 | 4c 4c 3b 0a 58 6c 74 61 |ead = NU|LL;.Xlta|
|000043e0| 69 6c 20 3d 20 4e 55 4c | 4c 3b 0a 58 69 66 20 28 |il = NUL|L;.Xif (|
|000043f0| 74 6d 70 2e 6d 76 73 5b | 30 5d 2e 72 6f 6c 6c 20 |tmp.mvs[|0].roll |
|00004400| 3d 3d 20 74 6d 70 2e 6d | 76 73 5b 31 5d 2e 72 6f |== tmp.m|vs[1].ro|
|00004410| 6c 6c 29 0a 58 09 73 63 | 61 6e 6d 76 73 28 26 74 |ll).X.sc|anmvs(&t|
|00004420| 6d 70 2c 30 2c 33 29 3b | 09 2f 2a 20 74 68 65 72 |mp,0,3);|./* ther|
|00004430| 65 20 69 73 20 6f 6e 6c | 79 20 6f 6e 65 20 6f 72 |e is onl|y one or|
|00004440| 64 65 72 69 6e 67 20 2a | 2f 0a 58 65 6c 73 65 20 |dering *|/.Xelse |
|00004450| 7b 0a 58 09 73 63 61 6e | 6d 76 73 28 26 74 6d 70 |{.X.scan|mvs(&tmp|
|00004460| 2c 30 2c 31 29 3b 09 09 | 2f 2a 20 73 63 61 6e 20 |,0,1);..|/* scan |
|00004470| 66 6f 72 20 6f 6e 65 20 | 6f 72 64 65 72 69 6e 67 |for one |ordering|
|00004480| 20 2a 2f 0a 58 09 69 20 | 3d 20 74 6d 70 2e 6d 76 | */.X.i |= tmp.mv|
|00004490| 73 5b 30 5d 2e 72 6f 6c | 6c 3b 09 2f 2a 20 72 65 |s[0].rol|l;./* re|
|000044a0| 76 65 72 73 65 20 72 6f | 6c 6c 73 20 2a 2f 0a 58 |verse ro|lls */.X|
|000044b0| 09 74 6d 70 2e 6d 76 73 | 5b 30 5d 2e 72 6f 6c 6c |.tmp.mvs|[0].roll|
|000044c0| 20 3d 20 74 6d 70 2e 6d | 76 73 5b 31 5d 2e 72 6f | = tmp.m|vs[1].ro|
|000044d0| 6c 6c 3b 0a 58 09 74 6d | 70 2e 6d 76 73 5b 31 5d |ll;.X.tm|p.mvs[1]|
|000044e0| 2e 72 6f 6c 6c 20 3d 20 | 69 3b 0a 58 09 66 6f 72 |.roll = |i;.X.for|
|000044f0| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 20 34 3b 20 | (i = 0;| i < 4; |
|00004500| 74 6d 70 2e 6d 76 73 5b | 69 2b 2b 5d 2e 70 74 20 |tmp.mvs[|i++].pt |
|00004510| 3d 20 2d 31 29 3b 09 2f | 2a 20 6d 61 72 6b 20 61 |= -1);./|* mark a|
|00004520| 6c 6c 20 75 6e 75 73 65 | 64 20 2a 2f 0a 58 09 73 |ll unuse|d */.X.s|
|00004530| 63 61 6e 6d 76 73 28 26 | 74 6d 70 2c 30 2c 31 29 |canmvs(&|tmp,0,1)|
|00004540| 3b 09 09 2f 2a 20 73 63 | 61 6e 20 66 6f 72 20 6f |;../* sc|an for o|
|00004550| 74 68 65 72 20 6f 72 64 | 65 72 69 6e 67 20 2a 2f |ther ord|ering */|
|00004560| 0a 58 09 7d 0a 58 74 72 | 69 6d 75 6e 75 73 65 64 |.X.}.Xtr|imunused|
|00004570| 28 29 3b 0a 58 74 72 69 | 6d 6c 6f 77 75 73 65 64 |();.Xtri|mlowused|
|00004580| 28 29 3b 0a 58 74 72 69 | 6d 65 71 75 61 6c 28 29 |();.Xtri|mequal()|
|00004590| 3b 0a 58 67 2d 3e 6d 61 | 78 75 73 65 64 20 3d 20 |;.Xg->ma|xused = |
|000045a0| 6d 61 78 75 73 65 64 3b | 0a 58 67 2d 3e 68 69 75 |maxused;|.Xg->hiu|
|000045b0| 73 65 64 20 3d 20 68 69 | 75 73 65 64 3b 0a 58 69 |sed = hi|used;.Xi|
|000045c0| 66 20 28 6e 6c 65 67 61 | 6c 20 3d 3d 20 30 29 20 |f (nlega|l == 0) |
|000045d0| 7b 0a 58 09 69 66 20 28 | 67 2d 3e 64 69 73 70 6d |{.X.if (|g->dispm|
|000045e0| 73 67 20 21 3d 20 4e 55 | 4c 4c 29 0a 58 09 09 66 |sg != NU|LL).X..f|
|000045f0| 72 65 65 28 67 2d 3e 64 | 69 73 70 6d 73 67 29 3b |ree(g->d|ispmsg);|
|00004600| 0a 58 09 67 2d 3e 64 69 | 73 70 6d 73 67 20 3d 20 |.X.g->di|spmsg = |
|00004610| 73 61 76 65 28 22 59 6f | 75 20 64 6f 6e 27 74 20 |save("Yo|u don't |
|00004620| 68 61 76 65 20 61 6e 79 | 20 6c 65 67 61 6c 20 6d |have any| legal m|
|00004630| 6f 76 65 73 2e 22 29 3b | 0a 58 09 7d 0a 58 65 6c |oves.");|.X.}.Xel|
|00004640| 73 65 20 69 66 20 28 6e | 6c 65 67 61 6c 20 3d 3d |se if (n|legal ==|
|00004650| 20 31 29 20 7b 0a 58 09 | 69 66 20 28 67 2d 3e 64 | 1) {.X.|if (g->d|
|00004660| 69 73 70 6d 73 67 20 21 | 3d 20 4e 55 4c 4c 29 0a |ispmsg !|= NULL).|
|00004670| 58 09 09 66 72 65 65 28 | 67 2d 3e 64 69 73 70 6d |X..free(|g->dispm|
|00004680| 73 67 29 3b 0a 58 09 67 | 2d 3e 64 69 73 70 6d 73 |sg);.X.g|->dispms|
|00004690| 67 20 3d 20 73 61 76 65 | 28 22 59 6f 75 20 6f 6e |g = save|("You on|
|000046a0| 6c 79 20 68 61 76 65 20 | 6f 6e 65 20 6c 65 67 61 |ly have |one lega|
|000046b0| 6c 20 6d 6f 76 65 2e 22 | 29 3b 0a 58 09 69 66 20 |l move."|);.X.if |
|000046c0| 28 2a 72 63 2e 61 75 74 | 6f 6d 6f 76 65 20 3d 3d |(*rc.aut|omove ==|
|000046d0| 20 27 79 27 29 20 7b 0a | 58 09 09 69 66 20 28 20 | 'y') {.|X..if ( |
|000046e0| 28 6c 68 65 61 64 2d 3e | 6e 6d 6f 76 65 3d 3d 30 |(lhead->|nmove==0|
|000046f0| 29 20 26 26 20 28 6c 68 | 65 61 64 2d 3e 6d 76 73 |) && (lh|ead->mvs|
|00004700| 5b 30 5d 2e 72 6f 6c 6c | 21 3d 67 2d 3e 6d 76 73 |[0].roll|!=g->mvs|
|00004710| 5b 30 5d 2e 72 6f 6c 6c | 29 29 0a 58 09 09 09 67 |[0].roll|)).X...g|
|00004720| 2d 3e 6d 76 73 5b 31 5d | 20 3d 20 67 2d 3e 6d 76 |->mvs[1]| = g->mv|
|00004730| 73 5b 30 5d 3b 0a 58 09 | 09 66 6f 72 20 28 69 20 |s[0];.X.|.for (i |
|00004740| 3d 20 30 3b 20 69 20 3c | 3d 20 6c 68 65 61 64 2d |= 0; i <|= lhead-|
|00004750| 3e 6e 6d 6f 76 65 3b 20 | 69 2b 2b 29 20 7b 0a 58 |>nmove; |i++) {.X|
|00004760| 09 09 09 67 2d 3e 6d 76 | 73 5b 69 5d 20 3d 20 6c |...g->mv|s[i] = l|
|00004770| 68 65 61 64 2d 3e 6d 76 | 73 5b 69 5d 3b 0a 58 09 |head->mv|s[i];.X.|
|00004780| 09 09 61 70 70 6c 79 28 | 67 2c 31 2c 69 2c 30 2c |..apply(|g,1,i,0,|
|00004790| 4e 55 4c 4c 29 3b 0a 58 | 09 09 09 7d 0a 58 09 09 |NULL);.X|...}.X..|
|000047a0| 7d 0a 58 09 7d 0a 58 0a | 58 09 2f 2a 20 77 65 20 |}.X.}.X.|X./* we |
|000047b0| 68 61 76 65 20 6e 6f 20 | 75 73 65 20 66 6f 72 20 |have no |use for |
|000047c0| 74 68 65 20 6c 65 67 61 | 6c 20 6d 6f 76 65 73 20 |the lega|l moves |
|000047d0| 6c 69 73 74 2c 20 73 6f | 20 66 72 65 65 20 69 74 |list, so| free it|
|000047e0| 20 2a 2f 0a 58 09 2f 2a | 20 6d 61 79 62 65 20 69 | */.X./*| maybe i|
|000047f0| 6e 20 74 68 65 20 66 75 | 74 75 72 65 20 77 65 20 |n the fu|ture we |
|00004800| 77 69 6c 6c 20 68 61 76 | 65 20 61 20 75 73 65 20 |will hav|e a use |
|00004810| 66 6f 72 20 69 74 20 2a | 2f 0a 58 0a 58 66 6f 72 |for it *|/.X.Xfor|
|00004820| 20 28 6c 20 3d 20 6c 68 | 65 61 64 3b 20 6c 20 21 | (l = lh|ead; l !|
|00004830| 3d 20 4e 55 4c 4c 3b 20 | 6c 20 3d 20 6c 2d 3e 6e |= NULL; |l = l->n|
|00004840| 65 78 74 29 0a 58 09 66 | 72 65 65 28 6c 29 3b 0a |ext).X.f|ree(l);.|
|00004850| 58 6c 68 65 61 64 20 3d | 20 4e 55 4c 4c 3b 0a 58 |Xlhead =| NULL;.X|
|00004860| 6c 74 61 69 6c 20 3d 20 | 4e 55 4c 4c 3b 0a 58 7d |ltail = |NULL;.X}|
|00004870| 0a 58 0a 58 0a 58 73 63 | 61 6e 6d 76 73 28 67 2c |.X.X.Xsc|anmvs(g,|
|00004880| 6d 6e 2c 6d 61 78 29 0a | 58 73 74 72 75 63 74 20 |mn,max).|Xstruct |
|00004890| 67 61 6d 65 20 2a 67 3b | 0a 58 7b 0a 58 69 6e 74 |game *g;|.X{.Xint|
|000048a0| 20 69 3b 0a 58 62 6f 61 | 72 64 20 73 76 3b 0a 58 | i;.Xboa|rd sv;.X|
|000048b0| 0a 58 63 6f 70 79 62 6f | 61 72 64 28 67 2d 3e 62 |.Xcopybo|ard(g->b|
|000048c0| 6f 61 72 64 2c 73 76 29 | 3b 0a 58 66 6f 72 20 28 |oard,sv)|;.Xfor (|
|000048d0| 69 20 3d 20 30 3b 20 69 | 20 3c 3d 20 32 34 3b 20 |i = 0; i| <= 24; |
|000048e0| 69 2b 2b 29 20 7b 0a 58 | 09 69 66 20 28 69 20 3d |i++) {.X|.if (i =|
|000048f0| 3d 20 30 29 0a 58 09 09 | 67 2d 3e 6d 76 73 5b 6d |= 0).X..|g->mvs[m|
|00004900| 6e 5d 2e 70 74 20 3d 20 | 42 41 52 50 54 28 67 2d |n].pt = |BARPT(g-|
|00004910| 3e 6d 79 64 69 72 29 3b | 0a 58 09 65 6c 73 65 0a |>mydir);|.X.else.|
|00004920| 58 09 09 67 2d 3e 6d 76 | 73 5b 6d 6e 5d 2e 70 74 |X..g->mv|s[mn].pt|
|00004930| 20 3d 20 69 3b 0a 58 09 | 69 66 20 28 61 70 70 6c | = i;.X.|if (appl|
|00004940| 79 28 67 2c 31 2c 6d 6e | 2c 30 2c 4e 55 4c 4c 29 |y(g,1,mn|,0,NULL)|
|00004950| 20 3c 20 30 29 09 2f 2a | 20 63 61 6e 27 74 20 6d | < 0)./*| can't m|
|00004960| 6f 76 65 20 66 72 6f 6d | 20 74 68 69 73 20 70 74 |ove from| this pt|
|00004970| 20 2a 2f 0a 58 09 09 63 | 6f 6e 74 69 6e 75 65 3b | */.X..c|ontinue;|
|00004980| 0a 58 09 61 64 64 6c 65 | 67 61 6c 28 6d 6e 2c 67 |.X.addle|gal(mn,g|
|00004990| 2d 3e 6d 76 73 5b 6d 6e | 5d 2e 72 6f 6c 6c 2c 67 |->mvs[mn|].roll,g|
|000049a0| 2d 3e 6d 76 73 5b 6d 6e | 5d 2e 70 74 29 3b 0a 58 |->mvs[mn|].pt);.X|
|000049b0| 09 69 66 20 28 6d 6e 20 | 3c 20 6d 61 78 29 0a 58 |.if (mn |< max).X|
|000049c0| 09 09 73 63 61 6e 6d 76 | 73 28 67 2c 6d 6e 2b 31 |..scanmv|s(g,mn+1|
|000049d0| 2c 6d 61 78 29 3b 0a 58 | 09 63 6f 70 79 62 6f 61 |,max);.X|.copyboa|
|000049e0| 72 64 28 73 76 2c 67 2d | 3e 62 6f 61 72 64 29 3b |rd(sv,g-|>board);|
|000049f0| 0a 58 09 7d 0a 58 7d 0a | 58 0a 58 0a 58 61 64 64 |.X.}.X}.|X.X.Xadd|
|00004a00| 6c 65 67 61 6c 28 6d 6e | 2c 72 2c 70 74 29 0a 58 |legal(mn|,r,pt).X|
|00004a10| 69 6e 74 20 6d 6e 2c 20 | 72 2c 20 70 74 3b 0a 58 |int mn, |r, pt;.X|
|00004a20| 7b 0a 58 69 6e 74 20 69 | 3b 0a 58 73 74 72 75 63 |{.Xint i|;.Xstruc|
|00004a30| 74 20 6c 65 67 61 6c 20 | 2a 6e 3b 0a 58 0a 58 69 |t legal |*n;.X.Xi|
|00004a40| 66 20 28 20 28 6e 20 3d | 20 28 73 74 72 75 63 74 |f ( (n =| (struct|
|00004a50| 20 6c 65 67 61 6c 20 2a | 29 20 63 61 6c 6c 6f 63 | legal *|) calloc|
|00004a60| 28 73 69 7a 65 6f 66 28 | 73 74 72 75 63 74 20 6c |(sizeof(|struct l|
|00004a70| 65 67 61 6c 29 2c 31 29 | 29 20 3d 3d 20 4e 55 4c |egal),1)|) == NUL|
|00004a80| 4c 29 20 7b 0a 58 09 46 | 65 46 69 6e 69 73 68 53 |L) {.X.F|eFinishS|
|00004a90| 65 73 73 69 6f 6e 28 29 | 3b 0a 58 09 54 46 69 6e |ession()|;.X.TFin|
|00004aa0| 69 73 68 53 65 73 73 69 | 6f 6e 28 29 3b 0a 58 09 |ishSessi|on();.X.|
|00004ab0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00004ac0| 4f 75 74 20 6f 66 20 6d | 65 6d 6f 72 79 21 5c 6e |Out of m|emory!\n|
|00004ad0| 22 29 3b 0a 58 09 65 78 | 69 74 28 31 29 3b 0a 58 |");.X.ex|it(1);.X|
|00004ae0| 09 7d 0a 58 63 6c 65 61 | 72 6d 76 73 28 6e 2d 3e |.}.Xclea|rmvs(n->|
|00004af0| 6d 76 73 29 3b 0a 58 69 | 66 20 28 6c 74 61 69 6c |mvs);.Xi|f (ltail|
|00004b00| 20 21 3d 20 4e 55 4c 4c | 29 0a 58 09 66 6f 72 20 | != NULL|).X.for |
|00004b10| 28 69 20 3d 20 30 3b 20 | 69 20 3c 20 6d 6e 3b 20 |(i = 0; |i < mn; |
|00004b20| 69 2b 2b 29 09 09 2f 2a | 20 63 6f 70 79 20 70 72 |i++)../*| copy pr|
|00004b30| 65 66 69 78 20 66 72 6f | 6d 20 70 72 65 76 20 6d |efix fro|m prev m|
|00004b40| 6f 76 65 20 2a 2f 0a 58 | 09 09 6e 2d 3e 6d 76 73 |ove */.X|..n->mvs|
|00004b50| 5b 69 5d 20 3d 20 6c 74 | 61 69 6c 2d 3e 6d 76 73 |[i] = lt|ail->mvs|
|00004b60| 5b 69 5d 3b 0a 58 6e 2d | 3e 6d 76 73 5b 6d 6e 5d |[i];.Xn-|>mvs[mn]|
|00004b70| 2e 72 6f 6c 6c 20 3d 20 | 72 3b 0a 58 6e 2d 3e 6d |.roll = |r;.Xn->m|
|00004b80| 76 73 5b 6d 6e 5d 2e 70 | 74 20 3d 20 70 74 3b 0a |vs[mn].p|t = pt;.|
|00004b90| 58 6e 2d 3e 6e 65 78 74 | 20 3d 20 4e 55 4c 4c 3b |Xn->next| = NULL;|
|00004ba0| 0a 58 69 66 20 28 6c 68 | 65 61 64 20 3d 3d 20 4e |.Xif (lh|ead == N|
|00004bb0| 55 4c 4c 29 20 7b 0a 58 | 09 6e 2d 3e 70 72 65 76 |ULL) {.X|.n->prev|
|00004bc0| 20 3d 20 4e 55 4c 4c 3b | 0a 58 09 6c 68 65 61 64 | = NULL;|.X.lhead|
|00004bd0| 20 3d 20 6e 3b 0a 58 09 | 6c 74 61 69 6c 20 3d 20 | = n;.X.|ltail = |
|00004be0| 6e 3b 0a 58 09 7d 0a 58 | 65 6c 73 65 20 7b 0a 58 |n;.X.}.X|else {.X|
|00004bf0| 09 6e 2d 3e 70 72 65 76 | 20 3d 20 6c 74 61 69 6c |.n->prev| = ltail|
|00004c00| 3b 0a 58 09 6c 74 61 69 | 6c 2d 3e 6e 65 78 74 20 |;.X.ltai|l->next |
|00004c10| 3d 20 6e 3b 0a 58 09 6c | 74 61 69 6c 20 3d 20 6e |= n;.X.l|tail = n|
|00004c20| 3b 0a 58 09 7d 0a 58 6e | 2d 3e 68 69 6d 6f 76 65 |;.X.}.Xn|->himove|
|00004c30| 20 3d 20 30 3b 0a 58 66 | 6f 72 20 28 69 20 3d 20 | = 0;.Xf|or (i = |
|00004c40| 30 3b 20 69 20 3c 3d 20 | 6d 6e 3b 20 69 2b 2b 29 |0; i <= |mn; i++)|
|00004c50| 0a 58 09 69 66 20 28 6e | 2d 3e 6d 76 73 5b 69 5d |.X.if (n|->mvs[i]|
|00004c60| 2e 72 6f 6c 6c 20 3e 20 | 6e 2d 3e 68 69 6d 6f 76 |.roll > |n->himov|
|00004c70| 65 29 0a 58 09 09 6e 2d | 3e 68 69 6d 6f 76 65 20 |e).X..n-|>himove |
|00004c80| 3d 20 6e 2d 3e 6d 76 73 | 5b 69 5d 2e 72 6f 6c 6c |= n->mvs|[i].roll|
|00004c90| 3b 0a 58 69 66 20 28 6d | 6e 20 3e 20 6d 61 78 75 |;.Xif (m|n > maxu|
|00004ca0| 73 65 64 29 09 09 2f 2a | 20 6b 65 65 70 20 74 72 |sed)../*| keep tr|
|00004cb0| 61 63 6b 20 6f 66 20 77 | 68 65 74 68 65 72 20 69 |ack of w|hether i|
|00004cc0| 74 20 69 73 20 70 6f 73 | 73 69 62 6c 65 20 2a 2f |t is pos|sible */|
|00004cd0| 0a 58 09 6d 61 78 75 73 | 65 64 20 3d 20 6d 6e 3b |.X.maxus|ed = mn;|
|00004ce0| 09 2f 2a 20 74 6f 20 75 | 73 65 20 61 6c 6c 20 6f |./* to u|se all o|
|00004cf0| 66 20 74 68 65 20 72 6f | 6c 6c 73 20 2a 2f 0a 58 |f the ro|lls */.X|
|00004d00| 6e 6c 65 67 61 6c 2b 2b | 3b 0a 58 6e 2d 3e 6e 6d |nlegal++|;.Xn->nm|
|00004d10| 6f 76 65 20 3d 20 6d 6e | 3b 0a 58 7d 0a 58 0a 58 |ove = mn|;.X}.X.X|
|00004d20| 0a 58 74 72 69 6d 75 6e | 75 73 65 64 28 29 0a 58 |.Xtrimun|used().X|
|00004d30| 7b 0a 58 73 74 72 75 63 | 74 20 6c 65 67 61 6c 20 |{.Xstruc|t legal |
|00004d40| 2a 6c 3b 0a 58 0a 58 6c | 20 3d 20 6c 68 65 61 64 |*l;.X.Xl| = lhead|
|00004d50| 3b 0a 58 77 68 69 6c 65 | 20 28 6c 20 21 3d 20 4e |;.Xwhile| (l != N|
|00004d60| 55 4c 4c 29 20 7b 0a 58 | 09 69 66 20 28 6c 2d 3e |ULL) {.X|.if (l->|
|00004d70| 6e 6d 6f 76 65 20 3c 20 | 6d 61 78 75 73 65 64 29 |nmove < |maxused)|
|00004d80| 0a 58 09 09 6c 20 3d 20 | 72 6d 6c 65 67 61 6c 28 |.X..l = |rmlegal(|
|00004d90| 6c 29 3b 0a 58 09 65 6c | 73 65 0a 58 09 09 6c 20 |l);.X.el|se.X..l |
|00004da0| 3d 20 6c 2d 3e 6e 65 78 | 74 3b 0a 58 09 7d 0a 58 |= l->nex|t;.X.}.X|
|00004db0| 7d 0a 58 0a 58 0a 58 74 | 72 69 6d 6c 6f 77 75 73 |}.X.X.Xt|rimlowus|
|00004dc0| 65 64 28 29 0a 58 7b 0a | 58 73 74 72 75 63 74 20 |ed().X{.|Xstruct |
|00004dd0| 6c 65 67 61 6c 20 2a 6c | 3b 0a 58 0a 58 6c 20 3d |legal *l|;.X.Xl =|
|00004de0| 20 6c 68 65 61 64 3b 0a | 58 77 68 69 6c 65 20 28 | lhead;.|Xwhile (|
|00004df0| 6c 20 21 3d 20 4e 55 4c | 4c 29 20 7b 0a 58 09 69 |l != NUL|L) {.X.i|
|00004e00| 66 20 28 6c 2d 3e 68 69 | 6d 6f 76 65 20 3c 20 68 |f (l->hi|move < h|
|00004e10| 69 75 73 65 64 29 0a 58 | 09 09 6c 20 3d 20 72 6d |iused).X|..l = rm|
|00004e20| 6c 65 67 61 6c 28 6c 29 | 3b 0a 58 09 65 6c 73 65 |legal(l)|;.X.else|
|00004e30| 0a 58 09 09 6c 20 3d 20 | 6c 2d 3e 6e 65 78 74 3b |.X..l = |l->next;|
|00004e40| 0a 58 09 7d 0a 58 7d 0a | 58 0a 58 0a 58 74 72 69 |.X.}.X}.|X.X.Xtri|
|00004e50| 6d 65 71 75 61 6c 28 29 | 0a 58 7b 0a 58 73 74 72 |mequal()|.X{.Xstr|
|00004e60| 75 63 74 20 6c 65 67 61 | 6c 20 2a 6c 2c 20 2a 70 |uct lega|l *l, *p|
|00004e70| 3b 0a 58 73 74 72 75 63 | 74 20 6d 76 20 6d 31 5b |;.Xstruc|t mv m1[|
|00004e80| 34 5d 2c 20 6d 32 5b 34 | 5d 3b 0a 58 69 6e 74 20 |4], m2[4|];.Xint |
|00004e90| 69 2c 20 6e 3b 0a 58 0a | 58 66 6f 72 20 28 6c 20 |i, n;.X.|Xfor (l |
|00004ea0| 3d 20 6c 68 65 61 64 3b | 20 6c 20 21 3d 20 4e 55 |= lhead;| l != NU|
|00004eb0| 4c 4c 3b 20 6c 20 3d 20 | 6c 2d 3e 6e 65 78 74 29 |LL; l = |l->next)|
|00004ec0| 20 7b 0a 58 09 65 78 74 | 72 61 63 74 6d 76 73 28 | {.X.ext|ractmvs(|
|00004ed0| 6c 2c 6d 31 29 3b 0a 58 | 09 6e 20 3d 20 6c 2d 3e |l,m1);.X|.n = l->|
|00004ee0| 6e 6d 6f 76 65 3b 0a 58 | 09 70 20 3d 20 6c 2d 3e |nmove;.X|.p = l->|
|00004ef0| 6e 65 78 74 3b 0a 58 09 | 77 68 69 6c 65 20 28 70 |next;.X.|while (p|
|00004f00| 20 21 3d 20 4e 55 4c 4c | 29 20 7b 0a 58 09 09 69 | != NULL|) {.X..i|
|00004f10| 66 20 28 70 2d 3e 6e 6d | 6f 76 65 20 21 3d 20 6e |f (p->nm|ove != n|
|00004f20| 29 20 7b 0a 58 09 09 09 | 70 20 3d 20 70 2d 3e 6e |) {.X...|p = p->n|
|00004f30| 65 78 74 3b 0a 58 09 09 | 09 63 6f 6e 74 69 6e 75 |ext;.X..|.continu|
|00004f40| 65 3b 0a 58 09 09 09 7d | 0a 58 09 09 65 78 74 72 |e;.X...}|.X..extr|
|00004f50| 61 63 74 6d 76 73 28 70 | 2c 6d 32 29 3b 0a 58 09 |actmvs(p|,m2);.X.|
|00004f60| 09 66 6f 72 20 28 69 20 | 3d 20 30 3b 20 69 20 3c |.for (i |= 0; i <|
|00004f70| 3d 20 6e 3b 20 69 2b 2b | 29 0a 58 09 09 09 69 66 |= n; i++|).X...if|
|00004f80| 20 28 28 6d 31 5b 69 5d | 2e 72 6f 6c 6c 20 21 3d | ((m1[i]|.roll !=|
|00004f90| 20 6d 32 5b 69 5d 2e 72 | 6f 6c 6c 29 7c 7c 28 6d | m2[i].r|oll)||(m|
|00004fa0| 31 5b 69 5d 2e 70 74 20 | 21 3d 20 6d 32 5b 69 5d |1[i].pt |!= m2[i]|
|00004fb0| 2e 70 74 29 29 0a 58 09 | 09 09 09 62 72 65 61 6b |.pt)).X.|...break|
|00004fc0| 3b 0a 58 09 09 69 66 20 | 28 69 20 3c 3d 20 6e 29 |;.X..if |(i <= n)|
|00004fd0| 0a 58 09 09 09 70 20 3d | 20 70 2d 3e 6e 65 78 74 |.X...p =| p->next|
|00004fe0| 3b 0a 58 09 09 65 6c 73 | 65 0a 58 09 09 09 70 20 |;.X..els|e.X...p |
|00004ff0| 3d 20 72 6d 6c 65 67 61 | 6c 28 70 29 3b 0a 58 09 |= rmlega|l(p);.X.|
|00005000| 09 7d 0a 58 09 7d 0a 58 | 7d 0a 58 0a 58 0a 58 73 |.}.X.}.X|}.X.X.Xs|
|00005010| 74 72 75 63 74 20 6c 65 | 67 61 6c 20 2a 72 6d 6c |truct le|gal *rml|
|00005020| 65 67 61 6c 28 6c 29 0a | 58 73 74 72 75 63 74 20 |egal(l).|Xstruct |
|00005030| 6c 65 67 61 6c 20 2a 6c | 3b 0a 58 7b 0a 58 73 74 |legal *l|;.X{.Xst|
|00005040| 72 75 63 74 20 6c 65 67 | 61 6c 20 2a 74 3b 0a 58 |ruct leg|al *t;.X|
|00005050| 0a 58 74 20 3d 20 6c 3b | 0a 58 69 66 20 28 6c 20 |.Xt = l;|.Xif (l |
|00005060| 3d 3d 20 6c 68 65 61 64 | 29 20 7b 0a 58 09 6c 68 |== lhead|) {.X.lh|
|00005070| 65 61 64 20 3d 20 6c 2d | 3e 6e 65 78 74 3b 0a 58 |ead = l-|>next;.X|
|00005080| 09 6c 20 3d 20 6c 68 65 | 61 64 3b 0a 58 09 7d 0a |.l = lhe|ad;.X.}.|
|00005090| 58 65 6c 73 65 20 7b 0a | 58 09 69 66 20 28 20 28 |Xelse {.|X.if ( (|
|000050a0| 6c 2d 3e 70 72 65 76 2d | 3e 6e 65 78 74 20 3d 20 |l->prev-|>next = |
|000050b0| 6c 2d 3e 6e 65 78 74 29 | 20 21 3d 20 4e 55 4c 4c |l->next)| != NULL|
|000050c0| 29 0a 58 09 09 6c 2d 3e | 6e 65 78 74 2d 3e 70 72 |).X..l->|next->pr|
|000050d0| 65 76 20 3d 20 6c 2d 3e | 70 72 65 76 3b 0a 58 09 |ev = l->|prev;.X.|
|000050e0| 6c 20 3d 20 6c 2d 3e 6e | 65 78 74 3b 0a 58 09 7d |l = l->n|ext;.X.}|
|000050f0| 0a 58 66 72 65 65 28 74 | 29 3b 0a 58 6e 6c 65 67 |.Xfree(t|);.Xnleg|
|00005100| 61 6c 2d 2d 3b 0a 58 72 | 65 74 75 72 6e 28 6c 29 |al--;.Xr|eturn(l)|
|00005110| 3b 0a 58 7d 0a 58 0a 58 | 0a 58 65 78 74 72 61 63 |;.X}.X.X|.Xextrac|
|00005120| 74 6d 76 73 28 6c 2c 6d | 29 0a 58 73 74 72 75 63 |tmvs(l,m|).Xstruc|
|00005130| 74 20 6c 65 67 61 6c 20 | 2a 6c 3b 0a 58 73 74 72 |t legal |*l;.Xstr|
|00005140| 75 63 74 20 6d 76 20 2a | 6d 3b 0a 58 7b 0a 58 69 |uct mv *|m;.X{.Xi|
|00005150| 6e 74 20 69 2c 20 6e 2c | 20 73 3b 0a 58 73 74 72 |nt i, n,| s;.Xstr|
|00005160| 75 63 74 20 6d 76 20 74 | 6d 70 3b 0a 58 0a 58 63 |uct mv t|mp;.X.Xc|
|00005170| 6c 65 61 72 6d 76 73 28 | 6d 29 3b 0a 58 66 6f 72 |learmvs(|m);.Xfor|
|00005180| 20 28 69 20 3d 20 30 3b | 20 69 20 3c 3d 20 6c 2d | (i = 0;| i <= l-|
|00005190| 3e 6e 6d 6f 76 65 3b 20 | 69 2b 2b 29 09 09 2f 2a |>nmove; |i++)../*|
|000051a0| 20 65 78 74 72 61 63 74 | 20 74 68 65 20 6d 6f 76 | extract| the mov|
|000051b0| 65 73 20 2a 2f 0a 58 09 | 6d 5b 69 5d 20 3d 20 6c |es */.X.|m[i] = l|
|000051c0| 2d 3e 6d 76 73 5b 69 5d | 3b 0a 58 6e 20 3d 20 6c |->mvs[i]|;.Xn = l|
|000051d0| 2d 3e 6e 6d 6f 76 65 3b | 0a 58 64 6f 20 7b 09 09 |->nmove;|.Xdo {..|
|000051e0| 09 2f 2a 20 73 6f 72 74 | 20 62 79 20 69 6e 63 72 |./* sort| by incr|
|000051f0| 65 61 73 69 6e 67 20 72 | 6f 6c 6c 20 74 68 65 6e |easing r|oll then|
|00005200| 20 69 6e 63 72 65 61 73 | 69 6e 67 20 70 6f 69 6e | increas|ing poin|
|00005210| 74 20 2a 2f 0a 58 09 73 | 20 3d 20 30 3b 0a 58 09 |t */.X.s| = 0;.X.|
|00005220| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|00005230| 6e 3b 20 69 2b 2b 29 20 | 7b 09 09 2f 2a 20 6c 6f |n; i++) |{../* lo|
|00005240| 6e 67 20 6c 69 76 65 20 | 62 75 62 62 6c 65 73 6f |ng live |bubbleso|
|00005250| 72 74 20 2a 2f 0a 58 09 | 09 69 66 20 28 6d 5b 69 |rt */.X.|.if (m[i|
|00005260| 5d 2e 72 6f 6c 6c 20 3c | 20 6d 5b 69 2b 31 5d 2e |].roll <| m[i+1].|
|00005270| 72 6f 6c 6c 29 0a 58 09 | 09 09 63 6f 6e 74 69 6e |roll).X.|..contin|
|00005280| 75 65 3b 0a 58 09 09 65 | 6c 73 65 20 69 66 20 28 |ue;.X..e|lse if (|
|00005290| 20 28 6d 5b 69 5d 2e 72 | 6f 6c 6c 20 3d 3d 20 6d | (m[i].r|oll == m|
|000052a0| 5b 69 2b 31 5d 2e 72 6f | 6c 6c 29 20 26 26 20 28 |[i+1].ro|ll) && (|
|000052b0| 6d 5b 69 5d 2e 70 74 20 | 3c 20 6d 5b 69 2b 31 5d |m[i].pt |< m[i+1]|
|000052c0| 2e 70 74 29 20 29 0a 58 | 09 09 09 63 6f 6e 74 69 |.pt) ).X|...conti|
|000052d0| 6e 75 65 3b 0a 58 09 09 | 74 6d 70 20 3d 20 6d 5b |nue;.X..|tmp = m[|
|000052e0| 69 5d 3b 0a 58 09 09 6d | 5b 69 5d 20 3d 20 6d 5b |i];.X..m|[i] = m[|
|000052f0| 69 2b 31 5d 3b 0a 58 09 | 09 6d 5b 69 2b 31 5d 20 |i+1];.X.|.m[i+1] |
|00005300| 3d 20 74 6d 70 3b 0a 58 | 09 09 73 20 3d 20 31 3b |= tmp;.X|..s = 1;|
|00005310| 0a 58 09 09 7d 0a 58 09 | 6e 2d 2d 3b 0a 58 09 7d |.X..}.X.|n--;.X.}|
|00005320| 20 77 68 69 6c 65 20 28 | 73 29 3b 0a 58 7d 0a 58 | while (|s);.X}.X|
|00005330| 0a 58 0a 58 63 68 65 63 | 6b 75 73 65 64 28 67 29 |.X.Xchec|kused(g)|
|00005340| 0a 58 73 74 72 75 63 74 | 20 67 61 6d 65 20 2a 67 |.Xstruct| game *g|
|00005350| 3b 0a 58 7b 0a 58 69 6e | 74 20 68 2c 20 69 3b 0a |;.X{.Xin|t h, i;.|
|00005360| 58 0a 58 68 20 3d 20 30 | 3b 0a 58 66 6f 72 20 28 |X.Xh = 0|;.Xfor (|
|00005370| 69 20 3d 20 30 3b 20 69 | 20 3c 3d 20 67 2d 3e 6d |i = 0; i| <= g->m|
|00005380| 61 78 75 73 65 64 3b 20 | 69 2b 2b 29 20 7b 0a 58 |axused; |i++) {.X|
|00005390| 09 69 66 20 28 67 2d 3e | 6d 76 73 5b 69 5d 2e 70 |.if (g->|mvs[i].p|
|000053a0| 74 20 3c 20 30 29 20 7b | 0a 58 09 09 46 65 4d 65 |t < 0) {|.X..FeMe|
|000053b0| 73 73 61 67 65 28 22 59 | 6f 75 20 6c 65 66 74 20 |ssage("Y|ou left |
|000053c0| 61 20 72 6f 6c 6c 20 75 | 6e 75 73 65 64 2e 22 29 |a roll u|nused.")|
|000053d0| 3b 0a 58 09 09 72 65 74 | 75 72 6e 28 31 29 3b 0a |;.X..ret|urn(1);.|
|000053e0| 58 09 09 7d 0a 58 09 69 | 66 20 28 68 20 3c 20 67 |X..}.X.i|f (h < g|
|000053f0| 2d 3e 6d 76 73 5b 69 5d | 2e 72 6f 6c 6c 29 0a 58 |->mvs[i]|.roll).X|
|00005400| 09 09 68 20 3d 20 67 2d | 3e 6d 76 73 5b 69 5d 2e |..h = g-|>mvs[i].|
|00005410| 72 6f 6c 6c 3b 0a 58 09 | 7d 0a 58 69 66 20 28 67 |roll;.X.|}.Xif (g|
|00005420| 2d 3e 68 69 75 73 65 64 | 20 3e 20 68 29 20 7b 0a |->hiused| > h) {.|
|00005430| 58 09 46 65 4d 65 73 73 | 61 67 65 28 22 59 6f 75 |X.FeMess|age("You|
|00005440| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 68 69 67 | can use| the hig|
|00005450| 68 65 72 20 72 6f 6c 6c | 2e 22 29 3b 0a 58 09 72 |her roll|.");.X.r|
|00005460| 65 74 75 72 6e 28 31 29 | 3b 0a 58 09 7d 0a 58 72 |eturn(1)|;.X.}.Xr|
|00005470| 65 74 75 72 6e 28 30 29 | 3b 0a 58 7d 0a 45 4e 44 |eturn(0)|;.X}.END|
|00005480| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|00005490| 20 35 33 30 30 20 2d 6e | 65 20 60 77 63 20 2d 63 | 5300 -n|e `wc -c|
|000054a0| 20 3c 27 63 68 65 63 6b | 2e 63 27 60 3b 20 74 68 | <'check|.c'`; th|
|000054b0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000054c0| 3a 20 5c 22 27 63 68 65 | 63 6b 2e 63 27 5c 22 20 |: \"'che|ck.c'\" |
|000054d0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000054e0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 63 68 6d |ong size|!.fi.chm|
|000054f0| 6f 64 20 2b 78 20 27 63 | 68 65 63 6b 2e 63 27 0a |od +x 'c|heck.c'.|
|00005500| 23 20 65 6e 64 20 6f 66 | 20 27 63 68 65 63 6b 2e |# end of| 'check.|
|00005510| 63 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |c'.fi.if| test -f|
|00005520| 20 27 63 6f 6e 74 72 6f | 6c 2e 63 27 20 2d 61 20 | 'contro|l.c' -a |
|00005530| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00005540| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00005550| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00005560| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00005570| 6c 65 20 5c 22 27 63 6f | 6e 74 72 6f 6c 2e 63 27 |le \"'co|ntrol.c'|
|00005580| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00005590| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000055a0| 27 63 6f 6e 74 72 6f 6c | 2e 63 27 5c 22 20 5c 28 |'control|.c'\" \(|
|000055b0| 33 35 31 39 20 63 68 61 | 72 61 63 74 65 72 73 5c |3519 cha|racters\|
|000055c0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|000055d0| 27 63 6f 6e 74 72 6f 6c | 2e 63 27 20 3c 3c 27 45 |'control|.c' <<'E|
|000055e0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2f 2a 09 |ND_OF_FI|LE'.X/*.|
|000055f0| 63 6f 6e 74 72 6f 6c 2e | 63 09 09 39 2f 31 32 2f |control.|c..9/12/|
|00005600| 39 31 0a 58 20 2a 0a 58 | 20 2a 20 43 6f 70 79 72 |91.X *.X| * Copyr|
|00005610| 69 67 68 74 20 31 39 39 | 31 20 20 50 65 72 72 79 |ight 199|1 Perry|
|00005620| 20 52 2e 20 52 6f 73 73 | 0a 58 20 2a 0a 58 20 2a | R. Ross|.X *.X *|
|00005630| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 75 | Permiss|ion to u|
|00005640| 73 65 2c 20 63 6f 70 79 | 2c 20 6d 6f 64 69 66 79 |se, copy|, modify|
|00005650| 2c 20 61 6e 64 20 64 69 | 73 74 72 69 62 75 74 65 |, and di|stribute|
|00005660| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 20 61 | this so|ftware a|
|00005670| 6e 64 20 69 74 73 0a 58 | 20 2a 20 64 6f 63 75 6d |nd its.X| * docum|
|00005680| 65 6e 74 61 74 69 6f 6e | 20 77 69 74 68 6f 75 74 |entation| without|
|00005690| 20 66 65 65 20 69 73 20 | 68 65 72 65 62 79 20 67 | fee is |hereby g|
|000056a0| 72 61 6e 74 65 64 2c 20 | 73 75 62 6a 65 63 74 20 |ranted, |subject |
|000056b0| 74 6f 20 74 68 65 20 72 | 65 73 74 72 69 63 74 69 |to the r|estricti|
|000056c0| 6f 6e 73 0a 58 20 2a 20 | 64 65 74 61 69 6c 65 64 |ons.X * |detailed|
|000056d0| 20 69 6e 20 74 68 65 20 | 52 45 41 44 4d 45 20 66 | in the |README f|
|000056e0| 69 6c 65 2c 20 77 68 69 | 63 68 20 69 73 20 69 6e |ile, whi|ch is in|
|000056f0| 63 6c 75 64 65 64 20 68 | 65 72 65 20 62 79 20 72 |cluded h|ere by r|
|00005700| 65 66 65 72 65 6e 63 65 | 2e 0a 58 20 2a 20 41 6e |eference|..X * An|
|00005710| 79 20 6f 74 68 65 72 20 | 75 73 65 20 72 65 71 75 |y other |use requ|
|00005720| 69 72 65 73 20 77 72 69 | 74 74 65 6e 20 70 65 72 |ires wri|tten per|
|00005730| 6d 69 73 73 69 6f 6e 20 | 66 72 6f 6d 20 74 68 65 |mission |from the|
|00005740| 20 61 75 74 68 6f 72 2e | 20 20 54 68 69 73 20 73 | author.| This s|
|00005750| 6f 66 74 77 61 72 65 0a | 58 20 2a 20 69 73 20 64 |oftware.|X * is d|
|00005760| 69 73 74 72 69 62 75 74 | 65 64 20 22 61 73 20 69 |istribut|ed "as i|
|00005770| 73 22 20 77 69 74 68 6f | 75 74 20 61 6e 79 20 77 |s" witho|ut any w|
|00005780| 61 72 72 61 6e 74 79 2c | 20 69 6e 63 6c 75 64 69 |arranty,| includi|
|00005790| 6e 67 20 61 6e 79 20 69 | 6d 70 6c 69 65 64 0a 58 |ng any i|mplied.X|
|000057a0| 20 2a 20 77 61 72 72 61 | 6e 74 69 65 73 20 6f 66 | * warra|nties of|
|000057b0| 20 6d 65 72 63 68 61 6e | 74 61 62 69 6c 69 74 79 | merchan|tability|
|000057c0| 20 6f 72 20 66 69 74 6e | 65 73 73 20 66 6f 72 20 | or fitn|ess for |
|000057d0| 61 20 70 61 72 74 69 63 | 75 6c 61 72 20 70 75 72 |a partic|ular pur|
|000057e0| 70 6f 73 65 2e 0a 58 20 | 2a 20 54 68 65 20 61 75 |pose..X |* The au|
|000057f0| 74 68 6f 72 20 73 68 61 | 6c 6c 20 6e 6f 74 20 62 |thor sha|ll not b|
|00005800| 65 20 6c 69 61 62 6c 65 | 20 66 6f 72 20 61 6e 79 |e liable| for any|
|00005810| 20 64 61 6d 61 67 65 73 | 20 72 65 73 75 6c 74 69 | damages| resulti|
|00005820| 6e 67 20 66 72 6f 6d 20 | 74 68 65 0a 58 20 2a 20 |ng from |the.X * |
|00005830| 75 73 65 20 6f 66 20 74 | 68 69 73 20 73 6f 66 74 |use of t|his soft|
|00005840| 77 61 72 65 2e 20 20 42 | 79 20 75 73 69 6e 67 20 |ware. B|y using |
|00005850| 74 68 69 73 20 73 6f 66 | 74 77 61 72 65 2c 20 74 |this sof|tware, t|
|00005860| 68 65 20 75 73 65 72 20 | 61 67 72 65 65 73 0a 58 |he user |agrees.X|
|00005870| 20 2a 20 74 6f 20 74 68 | 65 73 65 20 74 65 72 6d | * to th|ese term|
|00005880| 73 2e 0a 58 20 2a 2f 0a | 58 0a 58 23 69 6e 63 6c |s..X */.|X.X#incl|
|00005890| 75 64 65 20 22 6c 64 62 | 2e 68 22 0a 58 0a 58 2f |ude "ldb|.h".X.X/|
|000058a0| 2a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*-------|--------|
|000058b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000058e0| 2d 2d 2d 2d 2d 2d 2d 0a | 58 20 2a 09 63 6f 6e 74 |-------.|X *.cont|
|000058f0| 72 6f 6c 20 2d 2d 20 63 | 6f 6e 74 72 6f 6c 20 61 |rol -- c|ontrol a|
|00005900| 20 67 61 6d 65 0a 58 20 | 2a 0a 58 20 2a 20 54 68 | game.X |*.X * Th|
|00005910| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 63 |is funct|ion is c|
|00005920| 61 6c 6c 65 64 20 74 6f | 20 70 72 6f 63 65 73 73 |alled to| process|
|00005930| 20 74 68 65 20 2d 63 6f | 6e 74 72 6f 6c 20 63 6f | the -co|ntrol co|
|00005940| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 6f 70 74 69 6f |mmand li|ne optio|
|00005950| 6e 2e 0a 58 20 2a 20 49 | 74 20 63 75 72 72 65 6e |n..X * I|t curren|
|00005960| 74 6c 79 20 61 6c 6c 6f | 77 73 20 74 68 65 20 66 |tly allo|ws the f|
|00005970| 6f 6c 6c 6f 77 69 6e 67 | 3a 0a 58 20 2a 20 20 20 |ollowing|:.X * |
|00005980| 20 2d 09 54 68 65 20 62 | 6f 61 72 64 20 6d 61 79 | -.The b|oard may|
|00005990| 20 62 65 20 69 6e 76 65 | 72 74 65 64 2e 20 20 54 | be inve|rted. T|
|000059a0| 68 65 20 70 6f 69 6e 74 | 73 20 61 72 65 20 73 74 |he point|s are st|
|000059b0| 69 6c 6c 20 6e 75 6d 62 | 65 72 65 64 20 74 68 65 |ill numb|ered the|
|000059c0| 0a 58 20 2a 09 73 61 6d | 65 2c 20 74 68 65 20 62 |.X *.sam|e, the b|
|000059d0| 6f 61 72 64 20 69 73 20 | 6d 65 72 65 6c 79 20 64 |oard is |merely d|
|000059e0| 72 61 77 6e 20 75 70 73 | 69 64 65 20 64 6f 77 6e |rawn ups|ide down|
|000059f0| 2e 20 20 54 68 69 73 20 | 63 61 6e 20 68 65 6c 70 |. This |can help|
|00005a00| 20 75 73 65 72 73 0a 58 | 20 2a 09 77 68 6f 20 61 | users.X| *.who a|
|00005a10| 72 65 20 70 6c 61 79 69 | 6e 67 20 61 20 6e 75 6d |re playi|ng a num|
|00005a20| 62 65 72 20 6f 66 20 67 | 61 6d 65 73 20 73 69 6d |ber of g|ames sim|
|00005a30| 75 6c 74 61 6e 65 6f 75 | 73 6c 79 20 62 79 20 61 |ultaneou|sly by a|
|00005a40| 6c 6c 6f 77 69 6e 67 20 | 68 69 6d 0a 58 20 2a 09 |llowing |him.X *.|
|00005a50| 74 6f 20 6d 61 6b 65 20 | 61 6c 6c 20 6f 66 20 68 |to make |all of h|
|00005a60| 69 73 20 67 61 6d 65 73 | 20 6d 6f 76 65 20 69 6e |is games| move in|
|00005a70| 20 74 68 65 20 73 61 6d | 65 20 64 69 72 65 63 74 | the sam|e direct|
|00005a80| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |ion on t|he scree|
|00005a90| 6e 2e 0a 58 20 2a 20 20 | 20 20 2d 20 54 68 65 20 |n..X * | - The |
|00005aa0| 6c 61 73 74 20 70 61 63 | 6b 65 74 20 73 65 6e 74 |last pac|ket sent|
|00005ab0| 20 6d 61 79 20 62 65 20 | 72 65 73 65 6e 74 2e 20 | may be |resent. |
|00005ac0| 20 54 68 69 73 20 69 73 | 20 75 73 65 66 75 6c 20 | This is| useful |
|00005ad0| 77 68 65 6e 20 6d 6f 76 | 65 73 0a 58 20 2a 09 61 |when mov|es.X *.a|
|00005ae0| 72 65 20 6c 6f 73 74 20 | 69 6e 20 74 68 65 20 6d |re lost |in the m|
|00005af0| 61 69 6c 2c 20 6f 72 20 | 69 66 20 70 6c 61 79 65 |ail, or |if playe|
|00005b00| 72 73 20 66 6f 72 67 65 | 74 20 77 68 6f 73 65 20 |rs forge|t whose |
|00005b10| 74 75 72 6e 20 69 74 20 | 69 73 2e 0a 58 20 2a 09 |turn it |is..X *.|
|00005b20| 4c 64 62 20 72 65 6a 65 | 63 74 73 20 70 61 63 6b |Ldb reje|cts pack|
|00005b30| 65 74 73 20 74 68 61 74 | 20 68 61 76 65 20 61 6c |ets that| have al|
|00005b40| 72 65 61 64 79 20 62 65 | 65 6e 20 72 65 63 65 69 |ready be|en recei|
|00005b50| 76 65 64 2c 20 73 6f 20 | 62 6f 74 68 0a 58 20 2a |ved, so |both.X *|
|00005b60| 09 70 6c 61 79 65 72 73 | 20 6d 61 79 20 73 69 6d |.players| may sim|
|00005b70| 70 6c 79 20 72 65 73 65 | 6e 64 20 74 68 65 69 72 |ply rese|nd their|
|00005b80| 20 6c 61 73 74 20 70 61 | 63 6b 65 74 2c 20 61 6e | last pa|cket, an|
|00005b90| 64 20 6c 64 62 20 77 69 | 6c 6c 20 64 69 73 70 6c |d ldb wi|ll displ|
|00005ba0| 61 79 0a 58 20 2a 09 74 | 68 65 20 62 6f 61 72 64 |ay.X *.t|he board|
|00005bb0| 20 74 6f 20 74 68 65 20 | 70 6c 61 79 65 72 20 77 | to the |player w|
|00005bc0| 68 6f 20 69 73 20 73 75 | 70 70 6f 73 65 64 20 74 |ho is su|pposed t|
|00005bd0| 6f 20 6d 6f 76 65 2e 0a | 58 20 2a 2d 2d 2d 2d 2d |o move..|X *-----|
|00005be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c20| 2d 0a 58 20 2a 2f 0a 58 | 0a 58 63 6f 6e 74 72 6f |-.X */.X|.Xcontro|
|00005c30| 6c 28 29 0a 58 7b 0a 58 | 72 65 67 69 73 74 65 72 |l().X{.X|register|
|00005c40| 20 73 74 72 75 63 74 20 | 67 61 6d 65 20 2a 67 3b | struct |game *g;|
|00005c50| 0a 58 73 74 61 74 69 63 | 20 63 68 61 72 20 2a 6d |.Xstatic| char *m|
|00005c60| 5b 5d 20 3d 20 7b 22 49 | 6e 76 65 72 74 22 2c 22 |[] = {"I|nvert","|
|00005c70| 52 65 73 65 6e 64 22 2c | 22 44 65 6c 65 74 65 20 |Resend",|"Delete |
|00005c80| 47 61 6d 65 22 2c 22 4e | 65 78 74 20 47 61 6d 65 |Game","N|ext Game|
|00005c90| 22 2c 22 51 75 69 74 22 | 2c 4e 55 4c 4c 7d 3b 0a |","Quit"|,NULL};.|
|00005ca0| 58 63 68 61 72 20 62 75 | 66 5b 36 30 5d 2c 20 63 |Xchar bu|f[60], c|
|00005cb0| 2c 20 64 6f 6e 65 3b 0a | 58 69 6e 74 20 6d 6f 64 |, done;.|Xint mod|
|00005cc0| 3b 0a 58 0a 58 69 66 20 | 28 67 68 65 61 64 20 3d |;.X.Xif |(ghead =|
|00005cd0| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 58 09 70 72 69 6e |= NULL) |{.X.prin|
|00005ce0| 74 66 28 22 59 6f 75 20 | 64 6f 6e 27 74 20 68 61 |tf("You |don't ha|
|00005cf0| 76 65 20 61 6e 79 20 67 | 61 6d 65 73 20 69 6e 20 |ve any g|ames in |
|00005d00| 70 72 6f 67 72 65 73 73 | 2e 5c 6e 22 29 3b 0a 58 |progress|.\n");.X|
|00005d10| 09 70 72 69 6e 74 66 28 | 22 55 73 65 20 74 68 65 |.printf(|"Use the|
|00005d20| 20 2d 73 74 61 72 74 20 | 6f 70 74 69 6f 6e 20 74 | -start |option t|
|00005d30| 6f 20 73 74 61 72 74 20 | 6f 6e 65 2e 5c 6e 22 29 |o start |one.\n")|
|00005d40| 3b 0a 58 09 75 73 61 67 | 65 28 30 29 3b 0a 58 09 |;.X.usag|e(0);.X.|
|00005d50| 65 78 69 74 28 31 29 3b | 0a 58 09 7d 0a 58 6d 6f |exit(1);|.X.}.Xmo|
|00005d60| 64 20 3d 20 30 3b 09 09 | 09 09 2f 2a 20 69 6e 69 |d = 0;..|../* ini|
|00005d70| 74 20 74 6f 20 6e 6f 20 | 6d 6f 64 73 20 2a 2f 0a |t to no |mods */.|
|00005d80| 58 46 65 49 6e 69 74 69 | 61 6c 69 7a 65 28 29 3b |XFeIniti|alize();|
|00005d90| 09 09 09 09 2f 2a 20 69 | 6e 69 74 69 61 6c 69 7a |..../* i|nitializ|
|00005da0| 65 20 66 72 6f 6e 74 20 | 65 6e 64 20 2a 2f 0a 58 |e front |end */.X|
|00005db0| 46 65 44 72 61 77 53 63 | 72 65 65 6e 28 29 3b 09 |FeDrawSc|reen();.|
|00005dc0| 09 09 09 2f 2a 20 64 72 | 61 77 20 62 6f 61 72 64 |.../* dr|aw board|
|00005dd0| 20 6f 75 74 6c 69 6e 65 | 20 2a 2f 0a 58 64 6f 6e | outline| */.Xdon|
|00005de0| 65 20 3d 20 30 3b 0a 58 | 66 6f 72 20 28 67 20 3d |e = 0;.X|for (g =|
|00005df0| 20 67 68 65 61 64 3b 20 | 28 64 6f 6e 65 20 3c 20 | ghead; |(done < |
|00005e00| 32 29 20 26 26 20 28 67 | 20 21 3d 20 4e 55 4c 4c |2) && (g| != NULL|
|00005e10| 29 3b 20 67 20 3d 20 67 | 2d 3e 6e 65 78 74 29 20 |); g = g|->next) |
|00005e20| 7b 2f 2a 20 66 6f 72 20 | 61 6c 6c 20 67 61 6d 65 |{/* for |all game|
|00005e30| 73 20 2a 2f 0a 58 09 67 | 2d 3e 63 75 72 62 64 20 |s */.X.g|->curbd |
|00005e40| 3d 20 42 44 5f 43 55 52 | 3b 09 09 2f 2a 20 6d 61 |= BD_CUR|;../* ma|
|00005e50| 6b 65 20 73 75 72 65 20 | 77 65 20 64 72 61 77 20 |ke sure |we draw |
|00005e60| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 64 20 2a |the curr|ent bd *|
|00005e70| 2f 0a 58 09 46 65 44 72 | 61 77 47 61 6d 65 28 67 |/.X.FeDr|awGame(g|
|00005e80| 29 3b 0a 58 09 46 65 44 | 72 61 77 4d 65 6e 75 28 |);.X.FeD|rawMenu(|
|00005e90| 6d 29 3b 0a 58 09 73 70 | 72 69 6e 74 66 28 62 75 |m);.X.sp|rintf(bu|
|00005ea0| 66 2c 22 43 75 72 72 65 | 6e 74 20 73 74 61 74 65 |f,"Curre|nt state|
|00005eb0| 3a 20 25 73 22 2c 73 74 | 61 74 65 73 5b 67 2d 3e |: %s",st|ates[g->|
|00005ec0| 73 74 61 74 65 5d 29 3b | 0a 58 09 46 65 4d 65 73 |state]);|.X.FeMes|
|00005ed0| 73 61 67 65 28 62 75 66 | 29 3b 0a 58 09 64 6f 6e |sage(buf|);.X.don|
|00005ee0| 65 20 3d 20 30 3b 0a 58 | 09 77 68 69 6c 65 20 28 |e = 0;.X|.while (|
|00005ef0| 21 20 64 6f 6e 65 29 20 | 7b 0a 58 09 09 63 20 3d |! done) |{.X..c =|
|00005f00| 20 46 65 4d 65 6e 75 28 | 6d 2c 30 2c 30 2c 22 20 | FeMenu(|m,0,0," |
|00005f10| 5c 6e 5c 72 22 29 3b 0a | 58 09 09 73 77 69 74 63 |\n\r");.|X..switc|
|00005f20| 68 20 28 63 29 20 7b 0a | 58 09 09 63 61 73 65 20 |h (c) {.|X..case |
|00005f30| 27 49 27 3a 09 09 09 2f | 2a 20 69 6e 76 65 72 74 |'I':.../|* invert|
|00005f40| 20 62 6f 61 72 64 20 2a | 2f 0a 58 09 09 09 67 2d | board *|/.X...g-|
|00005f50| 3e 66 6c 61 67 73 20 5e | 3d 20 46 5f 49 4e 56 45 |>flags ^|= F_INVE|
|00005f60| 52 54 3b 09 2f 2a 20 74 | 6f 67 67 6c 65 20 69 6e |RT;./* t|oggle in|
|00005f70| 76 65 72 74 20 62 69 74 | 20 2a 2f 0a 58 09 09 09 |vert bit| */.X...|
|00005f80| 46 65 44 72 61 77 47 61 | 6d 65 28 67 29 3b 09 09 |FeDrawGa|me(g);..|
|00005f90| 2f 2a 20 72 65 64 72 61 | 77 20 74 68 65 20 73 63 |/* redra|w the sc|
|00005fa0| 72 65 65 6e 20 2a 2f 0a | 58 09 09 09 6d 6f 64 2b |reen */.|X...mod+|
|00005fb0| 2b 3b 09 09 09 2f 2a 20 | 67 61 6d 65 73 20 68 61 |+;.../* |games ha|
|00005fc0| 76 65 20 62 65 65 6e 20 | 6d 6f 64 69 66 69 65 64 |ve been |modified|
|00005fd0| 20 2a 2f 0a 58 09 09 09 | 62 72 65 61 6b 3b 0a 58 | */.X...|break;.X|
|00005fe0| 09 09 63 61 73 65 20 27 | 52 27 3a 09 09 09 2f 2a |..case '|R':.../*|
|00005ff0| 20 72 65 73 65 6e 64 20 | 6c 61 73 74 20 70 61 63 | resend |last pac|
|00006000| 6b 65 74 20 2a 2f 0a 58 | 09 09 09 73 65 6e 64 70 |ket */.X|...sendp|
|00006010| 6b 74 28 67 2c 67 2d 3e | 6c 61 73 74 6f 70 29 3b |kt(g,g->|lastop);|
|00006020| 0a 58 09 09 09 46 65 4d | 65 73 73 61 67 65 28 22 |.X...FeM|essage("|
|00006030| 4c 61 73 74 20 70 61 63 | 6b 65 74 20 72 65 2d 73 |Last pac|ket re-s|
|00006040| 65 6e 74 2e 22 29 3b 0a | 58 09 09 09 62 72 65 61 |ent.");.|X...brea|
|00006050| 6b 3b 0a 58 09 09 63 61 | 73 65 20 27 44 27 3a 09 |k;.X..ca|se 'D':.|
|00006060| 09 09 2f 2a 20 64 65 6c | 65 74 65 20 67 61 6d 65 |../* del|ete game|
|00006070| 20 2a 2f 0a 58 09 09 09 | 6d 6f 64 2b 2b 3b 09 09 | */.X...|mod++;..|
|00006080| 09 2f 2a 20 67 61 6d 65 | 73 20 68 61 76 65 20 62 |./* game|s have b|
|00006090| 65 65 6e 20 6d 6f 64 69 | 66 69 65 64 20 2a 2f 0a |een modi|fied */.|
|000060a0| 58 09 09 09 69 66 20 28 | 67 2d 3e 66 6c 61 67 73 |X...if (|g->flags|
|000060b0| 20 26 20 46 5f 44 45 4c | 45 54 45 29 20 7b 09 2f | & F_DEL|ETE) {./|
|000060c0| 2a 20 75 6e 64 65 6c 65 | 74 65 20 2a 2f 0a 58 09 |* undele|te */.X.|
|000060d0| 09 09 09 67 2d 3e 66 6c | 61 67 73 20 26 3d 20 7e |...g->fl|ags &= ~|
|000060e0| 46 5f 44 45 4c 45 54 45 | 3b 0a 58 09 09 09 09 46 |F_DELETE|;.X....F|
|000060f0| 65 4d 65 73 73 61 67 65 | 28 22 47 61 6d 65 20 75 |eMessage|("Game u|
|00006100| 6e 64 65 6c 65 74 65 64 | 2e 22 29 3b 0a 58 09 09 |ndeleted|.");.X..|
|00006110| 09 09 7d 0a 58 09 09 09 | 65 6c 73 65 20 7b 0a 58 |..}.X...|else {.X|
|00006120| 09 09 09 09 67 2d 3e 66 | 6c 61 67 73 20 7c 3d 20 |....g->f|lags |= |
|00006130| 46 5f 44 45 4c 45 54 45 | 3b 09 2f 2a 20 64 65 6c |F_DELETE|;./* del|
|00006140| 65 74 65 20 2a 2f 0a 58 | 09 09 09 09 46 65 4d 65 |ete */.X|....FeMe|
|00006150| 73 73 61 67 65 28 0a 58 | 09 09 09 09 20 22 47 61 |ssage(.X|.... "Ga|
|00006160| 6d 65 20 64 65 6c 65 74 | 65 64 20 2d 2d 20 70 72 |me delet|ed -- pr|
|00006170| 65 73 73 20 44 20 61 67 | 61 69 6e 20 74 6f 20 75 |ess D ag|ain to u|
|00006180| 6e 64 65 6c 65 74 65 2e | 22 29 3b 0a 58 09 09 09 |ndelete.|");.X...|
|00006190| 09 7d 0a 58 09 09 09 62 | 72 65 61 6b 3b 0a 58 09 |.}.X...b|reak;.X.|
|000061a0| 09 63 61 73 65 20 27 51 | 27 3a 09 09 09 2f 2a 20 |.case 'Q|':.../* |
|000061b0| 65 78 69 74 20 6c 64 62 | 20 2a 2f 0a 58 09 09 09 |exit ldb| */.X...|
|000061c0| 64 6f 6e 65 20 3d 20 32 | 3b 09 09 2f 2a 20 32 20 |done = 2|;../* 2 |
|000061d0| 6d 65 61 6e 73 20 52 65 | 61 6c 6c 79 20 64 6f 6e |means Re|ally don|
|000061e0| 65 20 2a 2f 0a 58 09 09 | 09 62 72 65 61 6b 3b 0a |e */.X..|.break;.|
|000061f0| 58 09 09 63 61 73 65 20 | 27 4e 27 3a 0a 58 09 09 |X..case |'N':.X..|
|00006200| 63 61 73 65 20 27 20 27 | 3a 0a 58 09 09 63 61 73 |case ' '|:.X..cas|
|00006210| 65 20 27 5c 6e 27 3a 0a | 58 09 09 63 61 73 65 20 |e '\n':.|X..case |
|00006220| 27 5c 72 27 3a 0a 58 09 | 09 09 64 6f 6e 65 20 3d |'\r':.X.|..done =|
|00006230| 20 31 3b 09 2f 2a 20 31 | 20 6d 65 61 6e 73 20 6a | 1;./* 1| means j|
|00006240| 75 73 74 20 64 6f 6e 65 | 20 77 69 74 68 20 74 68 |ust done| with th|
|00006250| 69 73 20 67 61 6d 65 20 | 2a 2f 0a 58 09 09 09 62 |is game |*/.X...b|
|00006260| 72 65 61 6b 3b 09 09 2f | 2a 20 67 6f 20 74 6f 20 |reak;../|* go to |
|00006270| 6e 65 78 74 20 67 61 6d | 65 20 2a 2f 0a 58 09 09 |next gam|e */.X..|
|00006280| 09 7d 0a 58 09 09 7d 0a | 58 09 7d 0a 58 46 65 46 |.}.X..}.|X.}.XFeF|
|00006290| 69 6e 69 73 68 53 65 73 | 73 69 6f 6e 28 29 3b 0a |inishSes|sion();.|
|000062a0| 58 77 68 69 6c 65 20 28 | 6d 6f 64 29 20 7b 0a 58 |Xwhile (|mod) {.X|
|000062b0| 09 70 72 69 6e 74 66 28 | 22 53 61 76 65 20 63 68 |.printf(|"Save ch|
|000062c0| 61 6e 67 65 73 3f 20 5b | 79 6e 5d 3a 20 22 29 3b |anges? [|yn]: ");|
|000062d0| 0a 58 09 69 66 20 28 20 | 28 20 28 63 20 3d 20 67 |.X.if ( |( (c = g|
|000062e0| 65 74 63 68 61 72 28 29 | 29 20 3d 3d 20 27 79 27 |etchar()|) == 'y'|
|000062f0| 29 20 7c 7c 20 28 63 20 | 3d 3d 20 27 59 27 29 20 |) || (c |== 'Y') |
|00006300| 29 20 7b 0a 58 09 09 77 | 72 69 74 65 67 61 6d 65 |) {.X..w|ritegame|
|00006310| 73 28 72 63 2e 67 66 69 | 6c 65 2c 72 63 2e 67 62 |s(rc.gfi|le,rc.gb|
|00006320| 61 63 6b 75 70 29 3b 0a | 58 09 09 62 72 65 61 6b |ackup);.|X..break|
|00006330| 3b 0a 58 09 09 7d 0a 58 | 09 69 66 20 28 20 28 63 |;.X..}.X|.if ( (c|
|00006340| 20 3d 3d 20 27 6e 27 29 | 20 7c 7c 20 28 63 20 3d | == 'n')| || (c =|
|00006350| 3d 20 27 4e 27 29 20 29 | 20 7b 0a 58 09 09 70 72 |= 'N') )| {.X..pr|
|00006360| 69 6e 74 66 28 22 43 68 | 61 6e 67 65 73 20 64 69 |intf("Ch|anges di|
|00006370| 73 63 61 72 64 65 64 2e | 5c 6e 22 29 3b 0a 58 09 |scarded.|\n");.X.|
|00006380| 09 62 72 65 61 6b 3b 0a | 58 09 09 7d 0a 58 09 69 |.break;.|X..}.X.i|
|00006390| 66 20 28 20 28 63 20 21 | 3d 20 27 5c 6e 27 29 20 |f ( (c !|= '\n') |
|000063a0| 26 26 20 28 63 20 21 3d | 20 45 4f 46 29 20 29 0a |&& (c !=| EOF) ).|
|000063b0| 58 09 09 77 68 69 6c 65 | 20 28 20 28 20 28 63 20 |X..while| ( ( (c |
|000063c0| 3d 20 67 65 74 63 68 61 | 72 28 29 29 20 21 3d 20 |= getcha|r()) != |
|000063d0| 27 5c 6e 27 29 20 26 26 | 20 28 63 20 21 3d 20 45 |'\n') &&| (c != E|
|000063e0| 4f 46 29 20 29 3b 0a 58 | 09 70 72 69 6e 74 66 28 |OF) );.X|.printf(|
|000063f0| 22 50 6c 65 61 73 65 20 | 72 65 73 70 6f 6e 64 20 |"Please |respond |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.