home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / lisp / games / gomoku.elc < prev    next >
Emacs Compiled Lisp  |  1995-08-29  |  20.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
1% dexvert Combustion 2 Particle Library (other/combustion2ParticleLibrary) ext Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)
100% xdgMime text/x-emacs-lisp default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 30 31 3a 35 | 33 20 31 39 39 35 0a 3b | 14:01:5|3 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 67 61 | 6d 65 73 2f 67 6f 6d 6f |/lisp/ga|mes/gomo|
|00000090| 6b 75 2e 65 6c 0a 3b 3b | 3b 20 65 6d 61 63 73 20 |ku.el.;;|; emacs |
|000000a0| 76 65 72 73 69 6f 6e 20 | 31 39 2e 31 33 20 58 45 |version |19.13 XE|
|000000b0| 6d 61 63 73 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |macs Luc|id..;;; |
|000000c0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000d0| 20 32 2e 32 35 3b 20 31 | 2d 53 65 70 2d 39 34 2e | 2.25; 1|-Sep-94.|
|000000e0| 0a 3b 3b 3b 20 6f 70 74 | 69 6d 69 7a 61 74 69 6f |.;;; opt|imizatio|
|000000f0| 6e 20 69 73 20 6f 6e 2e | 0a 3b 3b 3b 20 74 68 69 |n is on.|.;;; thi|
|00000100| 73 20 66 69 6c 65 20 75 | 73 65 73 20 6f 70 63 6f |s file u|ses opco|
|00000110| 64 65 73 20 77 68 69 63 | 68 20 64 6f 20 6e 6f 74 |des whic|h do not|
|00000120| 20 65 78 69 73 74 20 69 | 6e 20 45 6d 61 63 73 20 | exist i|n Emacs |
|00000130| 31 38 2e 0a 0a 28 69 66 | 20 28 61 6e 64 20 28 62 |18...(if| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 6d 61 63 73 2d 76 65 72 |oundp 'e|macs-ver|
|00000150| 73 69 6f 6e 29 0a 09 20 | 28 6f 72 20 28 61 6e 64 |sion).. |(or (and|
|00000160| 20 28 62 6f 75 6e 64 70 | 20 27 65 70 6f 63 68 3a | (boundp| 'epoch:|
|00000170| 3a 76 65 72 73 69 6f 6e | 29 20 65 70 6f 63 68 3a |:version|) epoch:|
|00000180| 3a 76 65 72 73 69 6f 6e | 29 0a 09 20 20 20 20 20 |:version|).. |
|00000190| 28 73 74 72 69 6e 67 2d | 6c 65 73 73 70 20 65 6d |(string-|lessp em|
|000001a0| 61 63 73 2d 76 65 72 73 | 69 6f 6e 20 22 31 39 22 |acs-vers|ion "19"|
|000001b0| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|000001c0| 54 68 69 73 20 66 69 6c | 65 20 77 61 73 20 63 6f |This fil|e was co|
|000001d0| 6d 70 69 6c 65 64 20 66 | 6f 72 20 45 6d 61 63 73 |mpiled f|or Emacs|
|000001e0| 20 31 39 2e 22 29 29 0a | 0a 28 64 65 66 76 61 72 | 19.")).|.(defvar|
|000001f0| 20 67 6f 6d 6f 6b 75 2d | 6d 6f 64 65 2d 68 6f 6f | gomoku-|mode-hoo|
|00000200| 6b 20 6e 69 6c 20 22 5c | 0a 49 66 20 6e 6f 6e 2d |k nil "\|.If non-|
|00000210| 6e 69 6c 2c 20 69 74 73 | 20 76 61 6c 75 65 20 69 |nil, its| value i|
|00000220| 73 20 63 61 6c 6c 65 64 | 20 6f 6e 20 65 6e 74 72 |s called| on entr|
|00000230| 79 20 74 6f 20 47 6f 6d | 6f 6b 75 20 6d 6f 64 65 |y to Gom|oku mode|
|00000240| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 67 6f 6d 6f |.").(def|var gomo|
|00000250| 6b 75 2d 6d 6f 64 65 2d | 6d 61 70 20 6e 69 6c 20 |ku-mode-|map nil |
|00000260| 22 5c 0a 4c 6f 63 61 6c | 20 6b 65 79 6d 61 70 20 |"\.Local| keymap |
|00000270| 74 6f 20 75 73 65 20 69 | 6e 20 47 6f 6d 6f 6b 75 |to use i|n Gomoku|
|00000280| 20 6d 6f 64 65 2e 22 29 | 0a 28 62 79 74 65 2d 63 | mode.")|.(byte-c|
|00000290| 6f 64 65 20 22 08 84 a2 | 00 c1 20 10 c2 08 c0 5c |ode "...|.. ....\|
|000002a0| 22 88 c3 08 c4 c5 23 88 | c3 08 c6 c7 23 88 c3 08 |".....#.|....#...|
|000002b0| c8 c9 23 88 c3 08 ca cb | 23 88 c3 08 cc cd 23 88 |..#.....|#.....#.|
|000002c0| c3 08 ce cf 23 88 c3 08 | d0 d1 23 88 c3 08 d2 d3 |....#...|..#.....|
|000002d0| 23 88 c3 08 d4 d1 23 88 | c3 08 d5 d3 23 88 c3 08 |#.....#.|....#...|
|000002e0| d6 cf 23 88 c3 08 d7 cd | 23 88 c3 08 d8 d9 23 88 |..#.....|#.....#.|
|000002f0| c3 08 da d9 23 88 c3 08 | db d9 23 88 c3 08 dc d9 |....#...|..#.....|
|00000300| 23 88 c3 08 dd de 23 88 | c3 08 df e0 23 88 c3 08 |#.....#.|....#...|
|00000310| e1 e2 23 88 c3 08 e3 d3 | 23 88 c3 08 e4 d1 23 88 |..#.....|#.....#.|
|00000320| c3 08 e5 cd 23 88 c3 08 | e6 cf 23 88 c3 08 e7 d9 |....#...|..#.....|
|00000330| 23 88 c3 08 e8 d9 23 88 | c1 87 22 20 5b 67 6f 6d |#.....#.|.." [gom|
|00000340| 6f 6b 75 2d 6d 6f 64 65 | 2d 6d 61 70 20 6d 61 6b |oku-mode|-map mak|
|00000350| 65 2d 73 70 61 72 73 65 | 2d 6b 65 79 6d 61 70 20 |e-sparse|-keymap |
|00000360| 73 65 74 2d 6b 65 79 6d | 61 70 2d 6e 61 6d 65 20 |set-keym|ap-name |
|00000370| 64 65 66 69 6e 65 2d 6b | 65 79 20 22 79 22 20 67 |define-k|ey "y" g|
|00000380| 6f 6d 6f 6b 75 2d 6d 6f | 76 65 2d 6e 77 20 22 75 |omoku-mo|ve-nw "u|
|00000390| 22 20 67 6f 6d 6f 6b 75 | 2d 6d 6f 76 65 2d 6e 65 |" gomoku|-move-ne|
|000003a0| 20 22 62 22 20 67 6f 6d | 6f 6b 75 2d 6d 6f 76 65 | "b" gom|oku-move|
|000003b0| 2d 73 77 20 22 6e 22 20 | 67 6f 6d 6f 6b 75 2d 6d |-sw "n" |gomoku-m|
|000003c0| 6f 76 65 2d 73 65 20 22 | 68 22 20 67 6f 6d 6f 6b |ove-se "|h" gomok|
|000003d0| 75 2d 6d 6f 76 65 2d 6c | 65 66 74 20 22 6c 22 20 |u-move-l|eft "l" |
|000003e0| 67 6f 6d 6f 6b 75 2d 6d | 6f 76 65 2d 72 69 67 68 |gomoku-m|ove-righ|
|000003f0| 74 20 22 6a 22 20 67 6f | 6d 6f 6b 75 2d 6d 6f 76 |t "j" go|moku-mov|
|00000400| 65 2d 64 6f 77 6e 20 22 | 6b 22 20 67 6f 6d 6f 6b |e-down "|k" gomok|
|00000410| 75 2d 6d 6f 76 65 2d 75 | 70 20 22 0e 22 20 22 10 |u-move-u|p "." ".|
|00000420| 22 20 22 06 22 20 22 02 | 22 20 22 58 22 20 67 6f |" "." ".|" "X" go|
|00000430| 6d 6f 6b 75 2d 68 75 6d | 61 6e 2d 70 6c 61 79 73 |moku-hum|an-plays|
|00000440| 20 22 78 22 20 22 0d 22 | 20 22 03 70 22 20 22 03 | "x" "."| ".p" ".|
|00000450| 62 22 20 67 6f 6d 6f 6b | 75 2d 68 75 6d 61 6e 2d |b" gomok|u-human-|
|00000460| 74 61 6b 65 73 2d 62 61 | 63 6b 20 22 03 72 22 20 |takes-ba|ck ".r" |
|00000470| 67 6f 6d 6f 6b 75 2d 68 | 75 6d 61 6e 2d 72 65 73 |gomoku-h|uman-res|
|00000480| 69 67 6e 73 20 22 03 65 | 22 20 67 6f 6d 6f 6b 75 |igns ".e|" gomoku|
|00000490| 2d 65 6d 61 63 73 2d 70 | 6c 61 79 73 20 5b 75 70 |-emacs-p|lays [up|
|000004a0| 5d 20 5b 64 6f 77 6e 5d | 20 5b 6c 65 66 74 5d 20 |] [down]| [left] |
|000004b0| 5b 72 69 67 68 74 5d 20 | 5b 6b 70 5f 65 6e 74 65 |[right] |[kp_ente|
|000004c0| 72 5d 20 5b 69 6e 73 65 | 72 74 5d 5d 20 34 29 0a |r] [inse|rt]] 4).|
|000004d0| 28 66 73 65 74 20 27 67 | 6f 6d 6f 6b 75 2d 6d 6f |(fset 'g|omoku-mo|
|000004e0| 64 65 20 23 5b 6e 69 6c | 20 22 c0 11 c2 13 c4 20 |de #[nil| "..... |
|000004f0| 88 c5 0e 06 21 88 c7 c8 | 21 87 22 20 5b 67 6f 6d |....!...|!." [gom|
|00000500| 6f 6b 75 2d 6d 6f 64 65 | 20 6d 61 6a 6f 72 2d 6d |oku-mode| major-m|
|00000510| 6f 64 65 20 22 47 6f 6d | 6f 6b 75 22 20 6d 6f 64 |ode "Gom|oku" mod|
|00000520| 65 2d 6e 61 6d 65 20 67 | 6f 6d 6f 6b 75 2d 64 69 |e-name g|omoku-di|
|00000530| 73 70 6c 61 79 2d 73 74 | 61 74 69 73 74 69 63 73 |splay-st|atistics|
|00000540| 20 75 73 65 2d 6c 6f 63 | 61 6c 2d 6d 61 70 20 67 | use-loc|al-map g|
|00000550| 6f 6d 6f 6b 75 2d 6d 6f | 64 65 2d 6d 61 70 20 72 |omoku-mo|de-map r|
|00000560| 75 6e 2d 68 6f 6f 6b 73 | 20 67 6f 6d 6f 6b 75 2d |un-hooks| gomoku-|
|00000570| 6d 6f 64 65 2d 68 6f 6f | 6b 5d 20 32 20 22 5c 0a |mode-hoo|k] 2 "\.|
|00000580| 4d 61 6a 6f 72 20 6d 6f | 64 65 20 66 6f 72 20 70 |Major mo|de for p|
|00000590| 6c 61 79 69 6e 67 20 47 | 6f 6d 6f 6b 75 20 61 67 |laying G|omoku ag|
|000005a0| 61 69 6e 73 74 20 45 6d | 61 63 73 2e 0a 59 6f 75 |ainst Em|acs..You|
|000005b0| 20 61 6e 64 20 45 6d 61 | 63 73 20 70 6c 61 79 20 | and Ema|cs play |
|000005c0| 69 6e 20 74 75 72 6e 20 | 62 79 20 6d 61 72 6b 69 |in turn |by marki|
|000005d0| 6e 67 20 61 20 66 72 65 | 65 20 73 71 75 61 72 65 |ng a fre|e square|
|000005e0| 2e 20 59 6f 75 20 6d 61 | 72 6b 20 69 74 20 77 69 |. You ma|rk it wi|
|000005f0| 74 68 20 58 0a 61 6e 64 | 20 45 6d 61 63 73 20 6d |th X.and| Emacs m|
|00000600| 61 72 6b 73 20 69 74 20 | 77 69 74 68 20 4f 2e 20 |arks it |with O. |
|00000610| 54 68 65 20 77 69 6e 6e | 65 72 20 69 73 20 74 68 |The winn|er is th|
|00000620| 65 20 66 69 72 73 74 20 | 74 6f 20 67 65 74 20 66 |e first |to get f|
|00000630| 69 76 65 20 63 6f 6e 74 | 69 67 75 6f 75 73 0a 6d |ive cont|iguous.m|
|00000640| 61 72 6b 73 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 6c |arks hor|izontall|
|00000650| 79 2c 20 76 65 72 74 69 | 63 61 6c 6c 79 20 6f 72 |y, verti|cally or|
|00000660| 20 69 6e 20 64 69 61 67 | 6f 6e 61 6c 2e 0a 59 6f | in diag|onal..Yo|
|00000670| 75 20 70 6c 61 79 20 62 | 79 20 6d 6f 76 69 6e 67 |u play b|y moving|
|00000680| 20 74 68 65 20 63 75 72 | 73 6f 72 20 6f 76 65 72 | the cur|sor over|
|00000690| 20 74 68 65 20 73 71 75 | 61 72 65 20 79 6f 75 20 | the squ|are you |
|000006a0| 63 68 6f 6f 73 65 20 61 | 6e 64 20 68 69 74 74 69 |choose a|nd hitti|
|000006b0| 6e 67 20 5c 5c 5b 67 6f | 6d 6f 6b 75 2d 68 75 6d |ng \\[go|moku-hum|
|000006c0| 61 6e 2d 70 6c 61 79 73 | 5d 2e 0a 4f 74 68 65 72 |an-plays|]..Other|
|000006d0| 20 75 73 65 66 75 6c 20 | 63 6f 6d 6d 61 6e 64 73 | useful |commands|
|000006e0| 3a 0a 5c 5c 7b 67 6f 6d | 6f 6b 75 2d 6d 6f 64 65 |:.\\{gom|oku-mode|
|000006f0| 2d 6d 61 70 7d 0a 45 6e | 74 72 79 20 74 6f 20 74 |-map}.En|try to t|
|00000700| 68 69 73 20 6d 6f 64 65 | 20 63 61 6c 6c 73 20 74 |his mode| calls t|
|00000710| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 60 67 6f 6d |he value| of `gom|
|00000720| 6f 6b 75 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 27 20 69 |oku-mode|-hook' i|
|00000730| 66 20 74 68 61 74 20 76 | 61 6c 75 65 0a 69 73 20 |f that v|alue.is |
|00000740| 6e 6f 6e 2d 6e 69 6c 2e | 22 20 6e 69 6c 5d 29 0a |non-nil.|" nil]).|
|00000750| 28 64 65 66 76 61 72 20 | 67 6f 6d 6f 6b 75 2d 62 |(defvar |gomoku-b|
|00000760| 6f 61 72 64 2d 77 69 64 | 74 68 20 6e 69 6c 20 22 |oard-wid|th nil "|
|00000770| 5c 0a 4e 75 6d 62 65 72 | 20 6f 66 20 63 6f 6c 75 |\.Number| of colu|
|00000780| 6d 6e 73 20 6f 6e 20 74 | 68 65 20 47 6f 6d 6f 6b |mns on t|he Gomok|
|00000790| 75 20 62 6f 61 72 64 2e | 22 29 0a 28 64 65 66 76 |u board.|").(defv|
|000007a0| 61 72 20 67 6f 6d 6f 6b | 75 2d 62 6f 61 72 64 2d |ar gomok|u-board-|
|000007b0| 68 65 69 67 68 74 20 6e | 69 6c 20 22 5c 0a 4e 75 |height n|il "\.Nu|
|000007c0| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 6f 6e |mber of |lines on|
|000007d0| 20 74 68 65 20 47 6f 6d | 6f 6b 75 20 62 6f 61 72 | the Gom|oku boar|
|000007e0| 64 2e 22 29 0a 28 64 65 | 66 76 61 72 20 67 6f 6d |d.").(de|fvar gom|
|000007f0| 6f 6b 75 2d 62 6f 61 72 | 64 20 6e 69 6c 20 22 5c |oku-boar|d nil "\|
|00000800| 0a 56 65 63 74 6f 72 20 | 72 65 63 6f 72 64 69 6e |.Vector |recordin|
|00000810| 67 20 74 68 65 20 61 63 | 74 75 61 6c 20 73 74 61 |g the ac|tual sta|
|00000820| 74 65 20 6f 66 20 74 68 | 65 20 47 6f 6d 6f 6b 75 |te of th|e Gomoku|
|00000830| 20 62 6f 61 72 64 2e 22 | 29 0a 28 64 65 66 76 61 | board."|).(defva|
|00000840| 72 20 67 6f 6d 6f 6b 75 | 2d 76 65 63 74 6f 72 2d |r gomoku|-vector-|
|00000850| 6c 65 6e 67 74 68 20 6e | 69 6c 20 22 5c 0a 4c 65 |length n|il "\.Le|
|00000860| 6e 67 74 68 20 6f 66 20 | 67 6f 6d 6f 6b 75 2d 62 |ngth of |gomoku-b|
|00000870| 6f 61 72 64 20 76 65 63 | 74 6f 72 2e 22 29 0a 28 |oard vec|tor.").(|
|00000880| 64 65 66 76 61 72 20 67 | 6f 6d 6f 6b 75 2d 64 72 |defvar g|omoku-dr|
|00000890| 61 77 2d 6c 69 6d 69 74 | 20 6e 69 6c 20 22 5c 0a |aw-limit| nil "\.|
|000008a0| 41 66 74 65 72 20 68 6f | 77 20 6d 61 6e 79 20 6d |After ho|w many m|
|000008b0| 6f 76 65 73 20 77 69 6c | 6c 20 45 6d 61 63 73 20 |oves wil|l Emacs |
|000008c0| 6f 66 66 65 72 20 61 20 | 64 72 61 77 3f 22 29 0a |offer a |draw?").|
|000008d0| 28 66 73 65 74 20 27 67 | 6f 6d 6f 6b 75 2d 78 79 |(fset 'g|omoku-xy|
|000008e0| 2d 74 6f 2d 69 6e 64 65 | 78 20 23 5b 28 78 20 79 |-to-inde|x #[(x y|
|000008f0| 29 20 22 08 09 5f 5c 6e | 08 5c 5c 5c 5c 87 22 20 |) ".._\n|.\\\\." |
|00000900| 5b 79 20 67 6f 6d 6f 6b | 75 2d 62 6f 61 72 64 2d |[y gomok|u-board-|
|00000910| 77 69 64 74 68 20 78 5d | 20 33 20 22 5c 0a 54 72 |width x]| 3 "\.Tr|
|00000920| 61 6e 73 6c 61 74 65 20 | 58 2c 20 59 20 63 61 72 |anslate |X, Y car|
|00000930| 74 65 73 69 61 6e 20 63 | 6f 6f 72 64 73 20 69 6e |tesian c|oords in|
|00000940| 74 6f 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |to the c|orrespon|
|00000950| 64 69 6e 67 20 62 6f 61 | 72 64 20 69 6e 64 65 78 |ding boa|rd index|
|00000960| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 67 6f 6d 6f |."]).(fs|et 'gomo|
|00000970| 6b 75 2d 69 6e 64 65 78 | 2d 74 6f 2d 78 20 23 5b |ku-index|-to-x #[|
|00000980| 28 69 6e 64 65 78 29 20 | 22 08 09 54 a6 87 22 20 |(index) |"..T.." |
|00000990| 5b 69 6e 64 65 78 20 67 | 6f 6d 6f 6b 75 2d 62 6f |[index g|omoku-bo|
|000009a0| 61 72 64 2d 77 69 64 74 | 68 5d 20 32 20 22 5c 0a |ard-widt|h] 2 "\.|
|000009b0| 52 65 74 75 72 6e 20 63 | 6f 72 72 65 73 70 6f 6e |Return c|orrespon|
|000009c0| 64 69 6e 67 20 78 2d 63 | 6f 6f 72 64 20 6f 66 20 |ding x-c|oord of |
|000009d0| 62 6f 61 72 64 20 49 4e | 44 45 58 2e 22 5d 29 0a |board IN|DEX."]).|
|000009e0| 28 66 73 65 74 20 27 67 | 6f 6d 6f 6b 75 2d 69 6e |(fset 'g|omoku-in|
|000009f0| 64 65 78 2d 74 6f 2d 79 | 20 23 5b 28 69 6e 64 65 |dex-to-y| #[(inde|
|00000a00| 78 29 20 22 08 09 54 a5 | 87 22 20 5b 69 6e 64 65 |x) "..T.|." [inde|
|00000a10| 78 20 67 6f 6d 6f 6b 75 | 2d 62 6f 61 72 64 2d 77 |x gomoku|-board-w|
|00000a20| 69 64 74 68 5d 20 32 20 | 22 5c 0a 52 65 74 75 72 |idth] 2 |"\.Retur|
|00000a30| 6e 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |n corres|ponding |
|00000a40| 79 2d 63 6f 6f 72 64 20 | 6f 66 20 62 6f 61 72 64 |y-coord |of board|
|00000a50| 20 49 4e 44 45 58 2e 22 | 5d 29 0a 28 66 73 65 74 | INDEX."|]).(fset|
|00000a60| 20 27 67 6f 6d 6f 6b 75 | 2d 69 6e 69 74 2d 62 6f | 'gomoku|-init-bo|
|00000a70| 61 72 64 20 23 5b 6e 69 | 6c 20 22 c0 09 c2 5c 22 |ard #[ni|l "...\"|
|00000a80| 13 c2 09 53 1c 1d 0d 0e | 06 58 ab 92 0b 0d c7 49 |...S....|.X.....I|
|00000a90| 88 0b 0c c7 49 88 0d 54 | 15 0c 53 14 aa 68 2a c2 |....I..T|..S..h*.|
|00000aa0| 1d c2 09 57 ad 8f 0b 0d | c7 49 88 0d 0e 06 c8 5c |...W....|.I.....\|
|00000ab0| 5c 5c 5c 89 15 aa 6d 29 | 87 22 20 5b 6d 61 6b 65 |\\\...m)|." [make|
|00000ac0| 2d 76 65 63 74 6f 72 20 | 67 6f 6d 6f 6b 75 2d 76 |-vector |gomoku-v|
|00000ad0| 65 63 74 6f 72 2d 6c 65 | 6e 67 74 68 20 30 20 67 |ector-le|ngth 0 g|
|00000ae0| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 20 69 69 20 69 |omoku-bo|ard ii i|
|00000af0| 20 67 6f 6d 6f 6b 75 2d | 62 6f 61 72 64 2d 77 69 | gomoku-|board-wi|
|00000b00| 64 74 68 20 2d 31 20 31 | 5d 20 34 20 22 5c 0a 43 |dth -1 1|] 4 "\.C|
|00000b10| 72 65 61 74 65 20 74 68 | 65 20 67 6f 6d 6f 6b 75 |reate th|e gomoku|
|00000b20| 2d 62 6f 61 72 64 20 76 | 65 63 74 6f 72 20 61 6e |-board v|ector an|
|00000b30| 64 20 66 69 6c 6c 20 69 | 74 20 77 69 74 68 20 69 |d fill i|t with i|
|00000b40| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 73 2e 22 5d |nitial v|alues."]|
|00000b50| 29 0a 28 64 65 66 76 61 | 72 20 67 6f 6d 6f 6b 75 |).(defva|r gomoku|
|00000b60| 2d 73 63 6f 72 65 2d 74 | 61 62 6c 65 20 6e 69 6c |-score-t|able nil|
|00000b70| 20 22 5c 0a 56 65 63 74 | 6f 72 20 72 65 63 6f 72 | "\.Vect|or recor|
|00000b80| 64 69 6e 67 20 74 68 65 | 20 61 63 74 75 61 6c 20 |ding the| actual |
|00000b90| 73 63 6f 72 65 20 6f 66 | 20 74 68 65 20 66 72 65 |score of| the fre|
|00000ba0| 65 20 73 71 75 61 72 65 | 73 2e 22 29 0a 28 64 65 |e square|s.").(de|
|00000bb0| 66 63 6f 6e 73 74 20 6e | 69 6c 2d 73 63 6f 72 65 |fconst n|il-score|
|00000bc0| 20 37 20 22 5c 0a 53 63 | 6f 72 65 20 6f 66 20 61 | 7 "\.Sc|ore of a|
|00000bd0| 6e 20 65 6d 70 74 79 20 | 71 74 75 70 6c 65 2e 22 |n empty |qtuple."|
|00000be0| 29 0a 28 64 65 66 63 6f | 6e 73 74 20 58 73 63 6f |).(defco|nst Xsco|
|00000bf0| 72 65 20 31 35 20 22 5c | 0a 53 63 6f 72 65 20 6f |re 15 "\|.Score o|
|00000c00| 66 20 61 20 71 74 75 70 | 6c 65 20 63 6f 6e 74 61 |f a qtup|le conta|
|00000c10| 69 6e 69 6e 67 20 6f 6e | 65 20 58 2e 22 29 0a 28 |ining on|e X.").(|
|00000c20| 64 65 66 63 6f 6e 73 74 | 20 58 58 73 63 6f 72 65 |defconst| XXscore|
|00000c30| 20 34 30 30 20 22 5c 0a | 53 63 6f 72 65 20 6f 66 | 400 "\.|Score of|
|00000c40| 20 61 20 71 74 75 70 6c | 65 20 63 6f 6e 74 61 69 | a qtupl|e contai|
|00000c50| 6e 69 6e 67 20 74 77 6f | 20 58 27 73 2e 22 29 0a |ning two| X's.").|
|00000c60| 28 64 65 66 63 6f 6e 73 | 74 20 58 58 58 73 63 6f |(defcons|t XXXsco|
|00000c70| 72 65 20 31 38 30 30 20 | 22 5c 0a 53 63 6f 72 65 |re 1800 |"\.Score|
|00000c80| 20 6f 66 20 61 20 71 74 | 75 70 6c 65 20 63 6f 6e | of a qt|uple con|
|00000c90| 74 61 69 6e 69 6e 67 20 | 74 68 72 65 65 20 58 27 |taining |three X'|
|00000ca0| 73 2e 22 29 0a 28 64 65 | 66 63 6f 6e 73 74 20 58 |s.").(de|fconst X|
|00000cb0| 58 58 58 73 63 6f 72 65 | 20 31 30 30 30 30 30 20 |XXXscore| 100000 |
|00000cc0| 22 5c 0a 53 63 6f 72 65 | 20 6f 66 20 61 20 71 74 |"\.Score| of a qt|
|00000cd0| 75 70 6c 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |uple con|taining |
|00000ce0| 66 6f 75 72 20 58 27 73 | 2e 22 29 0a 28 64 65 66 |four X's|.").(def|
|00000cf0| 63 6f 6e 73 74 20 4f 73 | 63 6f 72 65 20 33 35 20 |const Os|core 35 |
|00000d00| 22 5c 0a 53 63 6f 72 65 | 20 6f 66 20 61 20 71 74 |"\.Score| of a qt|
|00000d10| 75 70 6c 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |uple con|taining |
|00000d20| 6f 6e 65 20 4f 2e 22 29 | 0a 28 64 65 66 63 6f 6e |one O.")|.(defcon|
|00000d30| 73 74 20 4f 4f 73 63 6f | 72 65 20 38 30 30 20 22 |st OOsco|re 800 "|
|00000d40| 5c 0a 53 63 6f 72 65 20 | 6f 66 20 61 20 71 74 75 |\.Score |of a qtu|
|00000d50| 70 6c 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ple cont|aining t|
|00000d60| 77 6f 20 4f 27 73 2e 22 | 29 0a 28 64 65 66 63 6f |wo O's."|).(defco|
|00000d70| 6e 73 74 20 4f 4f 4f 73 | 63 6f 72 65 20 31 35 30 |nst OOOs|core 150|
|00000d80| 30 30 20 22 5c 0a 53 63 | 6f 72 65 20 6f 66 20 61 |00 "\.Sc|ore of a|
|00000d90| 20 71 74 75 70 6c 65 20 | 63 6f 6e 74 61 69 6e 69 | qtuple |containi|
|00000da0| 6e 67 20 74 68 72 65 65 | 20 4f 27 73 2e 22 29 0a |ng three| O's.").|
|00000db0| 28 64 65 66 63 6f 6e 73 | 74 20 4f 4f 4f 4f 73 63 |(defcons|t OOOOsc|
|00000dc0| 6f 72 65 20 38 30 30 30 | 30 30 20 22 5c 0a 53 63 |ore 8000|00 "\.Sc|
|00000dd0| 6f 72 65 20 6f 66 20 61 | 20 71 74 75 70 6c 65 20 |ore of a| qtuple |
|00000de0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 66 6f 75 72 20 |containi|ng four |
|00000df0| 4f 27 73 2e 22 29 0a 28 | 64 65 66 63 6f 6e 73 74 |O's.").(|defconst|
|00000e00| 20 67 6f 6d 6f 6b 75 2d | 73 63 6f 72 65 2d 74 72 | gomoku-|score-tr|
|00000e10| 61 6e 73 2d 74 61 62 6c | 65 20 28 62 79 74 65 2d |ans-tabl|e (byte-|
|00000e20| 63 6f 64 65 20 22 c0 09 | 5c 6e 0b 0c 0d c6 0e 07 |code "..|\n......|
|00000e30| c6 89 89 89 89 0e 08 c6 | 89 89 89 89 0e 09 c6 89 |........|........|
|00000e40| 89 89 89 0e 5c 6e c6 89 | 89 89 89 89 26 1f 87 22 |....\n..|....&.."|
|00000e50| 20 5b 76 65 63 74 6f 72 | 20 6e 69 6c 2d 73 63 6f | [vector| nil-sco|
|00000e60| 72 65 20 58 73 63 6f 72 | 65 20 58 58 73 63 6f 72 |re Xscor|e XXscor|
|00000e70| 65 20 58 58 58 73 63 6f | 72 65 20 58 58 58 58 73 |e XXXsco|re XXXXs|
|00000e80| 63 6f 72 65 20 30 20 4f | 73 63 6f 72 65 20 4f 4f |core 0 O|score OO|
|00000e90| 73 63 6f 72 65 20 4f 4f | 4f 73 63 6f 72 65 20 4f |score OO|Oscore O|
|00000ea0| 4f 4f 4f 73 63 6f 72 65 | 5d 20 33 32 29 20 22 5c |OOOscore|] 32) "\|
|00000eb0| 0a 56 65 63 74 6f 72 20 | 61 73 73 6f 63 69 61 74 |.Vector |associat|
|00000ec0| 69 6e 67 20 71 74 75 70 | 6c 65 20 63 6f 6e 74 65 |ing qtup|le conte|
|00000ed0| 6e 74 73 20 74 6f 20 74 | 68 65 69 72 20 73 63 6f |nts to t|heir sco|
|00000ee0| 72 65 2e 22 29 0a 28 64 | 65 66 63 6f 6e 73 74 20 |re.").(d|efconst |
|00000ef0| 67 6f 6d 6f 6b 75 2d 77 | 69 6e 6e 69 6e 67 2d 74 |gomoku-w|inning-t|
|00000f00| 68 72 65 73 68 6f 6c 64 | 20 4f 4f 4f 4f 73 63 6f |hreshold| OOOOsco|
|00000f10| 72 65 20 22 5c 0a 54 68 | 72 65 73 68 6f 6c 64 20 |re "\.Th|reshold |
|00000f20| 73 63 6f 72 65 20 62 65 | 79 6f 6e 64 20 77 68 69 |score be|yond whi|
|00000f30| 63 68 20 61 6e 20 45 6d | 61 63 73 20 6d 6f 76 65 |ch an Em|acs move|
|00000f40| 20 69 73 20 77 69 6e 6e | 69 6e 67 2e 22 29 0a 28 | is winn|ing.").(|
|00000f50| 64 65 66 63 6f 6e 73 74 | 20 67 6f 6d 6f 6b 75 2d |defconst| gomoku-|
|00000f60| 6c 6f 6f 73 69 6e 67 2d | 74 68 72 65 73 68 6f 6c |loosing-|threshol|
|00000f70| 64 20 58 58 58 58 73 63 | 6f 72 65 20 22 5c 0a 54 |d XXXXsc|ore "\.T|
|00000f80| 68 72 65 73 68 6f 6c 64 | 20 73 63 6f 72 65 20 62 |hreshold| score b|
|00000f90| 65 79 6f 6e 64 20 77 68 | 69 63 68 20 61 20 68 75 |eyond wh|ich a hu|
|00000fa0| 6d 61 6e 20 6d 6f 76 65 | 20 69 73 20 77 69 6e 6e |man move| is winn|
|00000fb0| 69 6e 67 2e 22 29 0a 28 | 66 73 65 74 20 27 67 6f |ing.").(|fset 'go|
|00000fc0| 6d 6f 6b 75 2d 73 74 72 | 6f 6e 67 65 73 74 2d 73 |moku-str|ongest-s|
|00000fd0| 71 75 61 72 65 20 23 5b | 6e 69 6c 20 22 c0 89 c1 |quare #[|nil "...|
|00000fe0| c2 89 5c 22 c1 0b 0c 5c | 22 c5 89 1e 06 1e 07 1e |..\"...\|".......|
|00000ff0| 08 1e 09 1e 5c 6e 1e 0b | 0e 09 0e 08 58 ab e4 0e |....\n..|....X...|
|00001000| 0c 0e 09 48 0e 0b 57 ac | d2 0e 0c 0e 09 48 89 16 |...H..W.|.....H..|
|00001010| 06 0e 0b 56 ab 9f 0e 0d | 0e 09 48 c0 55 ab 8d c2 |...V....|..H.U...|
|00001020| 16 5c 6e 0e 09 16 07 0e | 06 16 0b aa af 0e 0c 0e |.\n.....|........|
|00001030| 09 ce 49 88 aa a6 0e 0d | 0e 09 48 c0 55 ac 89 0e |..I.....|..H.U...|
|00001040| 0c 0e 09 ce 49 88 aa 94 | cf 0e 5c 6e 54 89 16 5c |....I...|..\nT..\|
|00001050| 6e 21 c0 55 ab 88 0e 09 | 16 07 0e 06 16 0b 0e 09 |n!.U....|........|
|00001060| 54 89 16 09 aa 17 0e 07 | 2e 06 87 22 20 5b 30 20 |T.......|..." [0 |
|00001070| 67 6f 6d 6f 6b 75 2d 78 | 79 2d 74 6f 2d 69 6e 64 |gomoku-x|y-to-ind|
|00001080| 65 78 20 31 20 67 6f 6d | 6f 6b 75 2d 62 6f 61 72 |ex 1 gom|oku-boar|
|00001090| 64 2d 77 69 64 74 68 20 | 67 6f 6d 6f 6b 75 2d 62 |d-width |gomoku-b|
|000010a0| 6f 61 72 64 2d 68 65 69 | 67 68 74 20 6e 69 6c 20 |oard-hei|ght nil |
|000010b0| 73 63 6f 72 65 20 62 65 | 73 74 2d 73 71 75 61 72 |score be|st-squar|
|000010c0| 65 20 65 6e 64 20 73 71 | 75 61 72 65 20 63 6f 75 |e end sq|uare cou|
|000010d0| 6e 74 20 73 63 6f 72 65 | 2d 6d 61 78 20 67 6f 6d |nt score|-max gom|
|000010e0| 6f 6b 75 2d 73 63 6f 72 | 65 2d 74 61 62 6c 65 20 |oku-scor|e-table |
|000010f0| 67 6f 6d 6f 6b 75 2d 62 | 6f 61 72 64 20 2d 31 20 |gomoku-b|oard -1 |
|00001100| 72 61 6e 64 6f 6d 5d 20 | 37 20 22 5c 0a 43 6f 6d |random] |7 "\.Com|
|00001110| 70 75 74 65 20 69 6e 64 | 65 78 20 6f 66 20 66 72 |pute ind|ex of fr|
|00001120| 65 65 20 73 71 75 61 72 | 65 20 77 69 74 68 20 68 |ee squar|e with h|
|00001130| 69 67 68 65 73 74 20 73 | 63 6f 72 65 2c 20 6f 72 |ighest s|core, or|
|00001140| 20 6e 69 6c 20 69 66 20 | 6e 6f 6e 65 2e 22 5d 29 | nil if |none."])|
|00001150| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00001160| 73 61 76 65 64 2d 73 63 | 6f 72 65 2d 74 61 62 6c |saved-sc|ore-tabl|
|00001170| 65 20 6e 69 6c 20 22 5c | 0a 52 65 63 6f 72 64 65 |e nil "\|.Recorde|
|00001180| 64 20 69 6e 69 74 69 61 | 6c 20 76 61 6c 75 65 20 |d initia|l value |
|00001190| 6f 66 20 70 72 65 76 69 | 6f 75 73 20 73 63 6f 72 |of previ|ous scor|
|000011a0| 65 20 74 61 62 6c 65 2e | 22 29 0a 28 64 65 66 76 |e table.|").(defv|
|000011b0| 61 72 20 67 6f 6d 6f 6b | 75 2d 73 61 76 65 64 2d |ar gomok|u-saved-|
|000011c0| 62 6f 61 72 64 2d 77 69 | 64 74 68 20 6e 69 6c 20 |board-wi|dth nil |
|000011d0| 22 5c 0a 52 65 63 6f 72 | 64 65 64 20 76 61 6c 75 |"\.Recor|ded valu|
|000011e0| 65 20 6f 66 20 70 72 65 | 76 69 6f 75 73 20 62 6f |e of pre|vious bo|
|000011f0| 61 72 64 20 77 69 64 74 | 68 2e 22 29 0a 28 64 65 |ard widt|h.").(de|
|00001200| 66 76 61 72 20 67 6f 6d | 6f 6b 75 2d 73 61 76 65 |fvar gom|oku-save|
|00001210| 64 2d 62 6f 61 72 64 2d | 68 65 69 67 68 74 20 6e |d-board-|height n|
|00001220| 69 6c 20 22 5c 0a 52 65 | 63 6f 72 64 65 64 20 76 |il "\.Re|corded v|
|00001230| 61 6c 75 65 20 6f 66 20 | 70 72 65 76 69 6f 75 73 |alue of |previous|
|00001240| 20 62 6f 61 72 64 20 68 | 65 69 67 68 74 2e 22 29 | board h|eight.")|
|00001250| 0a 28 66 73 65 74 20 27 | 67 6f 6d 6f 6b 75 2d 69 |.(fset '|gomoku-i|
|00001260| 6e 69 74 2d 73 63 6f 72 | 65 2d 74 61 62 6c 65 20 |nit-scor|e-table |
|00001270| 23 5b 6e 69 6c 20 22 08 | ab 91 09 5c 6e 55 ab 8c |#[nil ".|...\nU..|
|00001280| 0b 0c 55 ab 87 c5 08 21 | 89 16 06 87 c7 0e 08 0e |..U....!|........|
|00001290| 09 ca 5f 5c 22 16 06 cb | 89 89 89 89 89 1e 0c 1e |.._\"...|........|
|000012a0| 0d 1e 0e 1e 0f 1e 10 1e | 11 09 54 d2 a5 16 0f 0b |........|..T.....|
|000012b0| 54 d2 a5 16 0e d3 0e 0f | 5e 16 0d d3 0e 0e 5e 16 |T.......|^.....^.|
|000012c0| 0c d4 16 11 d4 0e 0d 58 | ab a0 d4 16 10 d4 0e 0e |.......X|........|
|000012d0| 58 ab 8f d5 0e 11 0e 10 | 5c 22 88 0e 10 54 89 16 |X.......|\"...T..|
|000012e0| 10 aa 6c 0e 11 54 89 16 | 11 aa 5b 0e 11 0e 0f 58 |..l..T..|..[....X|
|000012f0| ab a0 d4 16 10 d4 0e 0c | 58 ab 8f d5 0e 11 0e 10 |........|X.......|
|00001300| 5c 22 88 0e 10 54 89 16 | 10 aa 6c 0e 11 54 89 16 |\"...T..|..l..T..|
|00001310| 11 aa 5b 2e 06 c5 0e 06 | 21 10 09 12 0b 89 14 87 |..[.....|!.......|
|00001320| 22 20 5b 67 6f 6d 6f 6b | 75 2d 73 61 76 65 64 2d |" [gomok|u-saved-|
|00001330| 73 63 6f 72 65 2d 74 61 | 62 6c 65 20 67 6f 6d 6f |score-ta|ble gomo|
|00001340| 6b 75 2d 62 6f 61 72 64 | 2d 77 69 64 74 68 20 67 |ku-board|-width g|
|00001350| 6f 6d 6f 6b 75 2d 73 61 | 76 65 64 2d 62 6f 61 72 |omoku-sa|ved-boar|
|00001360| 64 2d 77 69 64 74 68 20 | 67 6f 6d 6f 6b 75 2d 62 |d-width |gomoku-b|
|00001370| 6f 61 72 64 2d 68 65 69 | 67 68 74 20 67 6f 6d 6f |oard-hei|ght gomo|
|00001380| 6b 75 2d 73 61 76 65 64 | 2d 62 6f 61 72 64 2d 68 |ku-saved|-board-h|
|00001390| 65 69 67 68 74 20 63 6f | 70 79 2d 73 65 71 75 65 |eight co|py-seque|
|000013a0| 6e 63 65 20 67 6f 6d 6f | 6b 75 2d 73 63 6f 72 65 |nce gomo|ku-score|
|000013b0| 2d 74 61 62 6c 65 20 6d | 61 6b 65 2d 76 65 63 74 |-table m|ake-vect|
|000013c0| 6f 72 20 67 6f 6d 6f 6b | 75 2d 76 65 63 74 6f 72 |or gomok|u-vector|
|000013d0| 2d 6c 65 6e 67 74 68 20 | 6e 69 6c 2d 73 63 6f 72 |-length |nil-scor|
|000013e0| 65 20 32 30 20 6e 69 6c | 20 6d 61 78 6a 32 20 6d |e 20 nil| maxj2 m|
|000013f0| 61 78 69 32 20 6d 61 78 | 6a 20 6d 61 78 69 20 6a |axi2 max|j maxi j|
|00001400| 20 69 20 32 20 34 20 31 | 20 67 6f 6d 6f 6b 75 2d | i 2 4 1| gomoku-|
|00001410| 69 6e 69 74 2d 73 71 75 | 61 72 65 2d 73 63 6f 72 |init-squ|are-scor|
|00001420| 65 5d 20 37 20 22 5c 0a | 43 72 65 61 74 65 20 74 |e] 7 "\.|Create t|
|00001430| 68 65 20 73 63 6f 72 65 | 20 74 61 62 6c 65 20 76 |he score| table v|
|00001440| 65 63 74 6f 72 20 61 6e | 64 20 66 69 6c 6c 20 69 |ector an|d fill i|
|00001450| 74 20 77 69 74 68 20 69 | 6e 69 74 69 61 6c 20 76 |t with i|nitial v|
|00001460| 61 6c 75 65 73 2e 22 5d | 29 0a 28 66 73 65 74 20 |alues."]|).(fset |
|00001470| 27 67 6f 6d 6f 6b 75 2d | 6e 62 2d 71 74 75 70 6c |'gomoku-|nb-qtupl|
|00001480| 65 73 20 23 5b 28 69 20 | 6a 29 20 22 c0 09 53 5e |es #[(i |j) "..S^|
|00001490| c0 5c 6e 09 5a 5e c0 0b | 53 5e c0 0c 0b 5a 5e 1d |.\n.Z^..|S^...Z^.|
|000014a0| 1e 06 1e 07 89 1e 08 0e | 07 5c 5c c9 5d ca 5e 0e |........|.\\.].^.|
|000014b0| 06 0d 5c 5c c9 5d ca 5e | 0e 08 0e 06 5e 0e 07 0d |..\\.].^|....^...|
|000014c0| 5e 5c 5c c9 5d ca 5e 0e | 07 0e 06 5e 0e 08 0d 5e |^\\.].^.|...^...^|
|000014d0| 5c 5c c9 5d ca 5e cb 5c | 5c 5c 5c 5c 5c 5c 5c 2c |\\.].^.\|\\\\\\\,|
|000014e0| 87 22 20 5b 34 20 69 20 | 67 6f 6d 6f 6b 75 2d 62 |." [4 i |gomoku-b|
|000014f0| 6f 61 72 64 2d 77 69 64 | 74 68 20 6a 20 67 6f 6d |oard-wid|th j gom|
|00001500| 6f 6b 75 2d 62 6f 61 72 | 64 2d 68 65 69 67 68 74 |oku-boar|d-height|
|00001510| 20 64 6f 77 6e 20 75 70 | 20 72 69 67 68 74 20 6c | down up| right l|
|00001520| 65 66 74 20 33 20 38 20 | 2d 31 32 5d 20 37 20 22 |eft 3 8 |-12] 7 "|
|00001530| 5c 0a 52 65 74 75 72 6e | 20 74 68 65 20 6e 75 6d |\.Return| the num|
|00001540| 62 65 72 20 6f 66 20 71 | 74 75 70 6c 65 73 20 63 |ber of q|tuples c|
|00001550| 6f 6e 74 61 69 6e 69 6e | 67 20 73 71 75 61 72 65 |ontainin|g square|
|00001560| 20 49 2c 4a 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 | I,J."])|.(fset '|
|00001570| 67 6f 6d 6f 6b 75 2d 69 | 6e 69 74 2d 73 71 75 61 |gomoku-i|nit-squa|
|00001580| 72 65 2d 73 63 6f 72 65 | 20 23 5b 28 69 20 6a 29 |re-score| #[(i j)|
|00001590| 20 22 08 09 5a 54 5c 6e | 0b 5a 54 c4 09 0b 5c 22 | "..ZT\n|.ZT...\"|
|000015a0| 0d c6 48 5f 1e 07 1e 08 | 1e 09 0e 5c 6e cb 09 0b |..H_....|...\n...|
|000015b0| 5c 22 0e 07 49 88 0e 5c | 6e cb 0e 09 0b 5c 22 0e |\"..I..\|n....\".|
|000015c0| 07 49 88 0e 5c 6e cb 09 | 0e 08 5c 22 0e 07 49 88 |.I..\n..|..\"..I.|
|000015d0| 0e 5c 6e cb 0e 09 0e 08 | 5c 22 0e 07 49 2b 87 22 |.\n.....|\"..I+."|
|000015e0| 20 5b 67 6f 6d 6f 6b 75 | 2d 62 6f 61 72 64 2d 77 | [gomoku|-board-w|
|000015f0| 69 64 74 68 20 69 20 67 | 6f 6d 6f 6b 75 2d 62 6f |idth i g|omoku-bo|
|00001600| 61 72 64 2d 68 65 69 67 | 68 74 20 6a 20 67 6f 6d |ard-heig|ht j gom|
|00001610| 6f 6b 75 2d 6e 62 2d 71 | 74 75 70 6c 65 73 20 67 |oku-nb-q|tuples g|
|00001620| 6f 6d 6f 6b 75 2d 73 63 | 6f 72 65 2d 74 72 61 6e |omoku-sc|ore-tran|
|00001630| 73 2d 74 61 62 6c 65 20 | 30 20 73 63 20 6a 6a 20 |s-table |0 sc jj |
|00001640| 69 69 20 67 6f 6d 6f 6b | 75 2d 73 63 6f 72 65 2d |ii gomok|u-score-|
|00001650| 74 61 62 6c 65 20 67 6f | 6d 6f 6b 75 2d 78 79 2d |table go|moku-xy-|
|00001660| 74 6f 2d 69 6e 64 65 78 | 5d 20 35 20 22 5c 0a 47 |to-index|] 5 "\.G|
|00001670| 69 76 65 20 69 6e 69 74 | 69 61 6c 20 73 63 6f 72 |ive init|ial scor|
|00001680| 65 20 74 6f 20 73 71 75 | 61 72 65 20 49 2c 4a 20 |e to squ|are I,J |
|00001690| 61 6e 64 20 74 6f 20 69 | 74 73 20 6d 69 72 72 6f |and to i|ts mirro|
|000016a0| 72 20 69 6d 61 67 65 73 | 2e 22 5d 29 0a 28 66 73 |r images|."]).(fs|
|000016b0| 65 74 20 27 67 6f 6d 6f | 6b 75 2d 75 70 64 61 74 |et 'gomo|ku-updat|
|000016c0| 65 2d 73 63 6f 72 65 2d | 74 61 62 6c 65 20 23 5b |e-score-|table #[|
|000016d0| 28 73 71 75 61 72 65 20 | 64 76 61 6c 29 20 22 c0 |(square |dval) ".|
|000016e0| 09 21 1a c3 09 21 1c c5 | c6 5c 6e 5a 5d 1e 07 c5 |.!...!..|.\nZ]...|
|000016f0| c6 0c 5a 5d 1e 08 c9 0e | 5c 6e 5c 6e 5a cb 5a 5e |..Z]....|\n\nZ.Z^|
|00001700| 1e 0c c9 0e 0d 0c 5a cb | 5a 5e 1e 0e cf 0e 07 0e |......Z.|Z^......|
|00001710| 0c 09 c6 c9 0e 10 26 06 | 88 cf 0e 08 0e 0e 09 c9 |......&.|........|
|00001720| c6 0e 10 26 06 88 cf 0e | 07 0e 08 5d 0e 0c 0e 0e |...&....|...]....|
|00001730| 5e 09 c6 89 0e 10 26 06 | 88 cf c6 0c 5a c5 5c 6e |^.....&.|....Z.\n|
|00001740| 0e 5c 6e 5a 5d 5d c9 5c | 6e d1 5a 0e 0d 0c 5a cb |.\nZ]].\|n.Z...Z.|
|00001750| 5a 5e 5e 09 d2 c6 0e 10 | 26 06 2e 06 87 22 20 5b |Z^^.....|&...." [|
|00001760| 67 6f 6d 6f 6b 75 2d 69 | 6e 64 65 78 2d 74 6f 2d |gomoku-i|ndex-to-|
|00001770| 78 20 73 71 75 61 72 65 | 20 78 20 67 6f 6d 6f 6b |x square| x gomok|
|00001780| 75 2d 69 6e 64 65 78 2d | 74 6f 2d 79 20 79 20 2d |u-index-|to-y y -|
|00001790| 34 20 31 20 69 6d 69 6e | 20 6a 6d 69 6e 20 30 20 |4 1 imin| jmin 0 |
|000017a0| 67 6f 6d 6f 6b 75 2d 62 | 6f 61 72 64 2d 77 69 64 |gomoku-b|oard-wid|
|000017b0| 74 68 20 34 20 69 6d 61 | 78 20 67 6f 6d 6f 6b 75 |th 4 ima|x gomoku|
|000017c0| 2d 62 6f 61 72 64 2d 68 | 65 69 67 68 74 20 6a 6d |-board-h|eight jm|
|000017d0| 61 78 20 67 6f 6d 6f 6b | 75 2d 75 70 64 61 74 65 |ax gomok|u-update|
|000017e0| 2d 73 63 6f 72 65 2d 69 | 6e 2d 64 69 72 65 63 74 |-score-i|n-direct|
|000017f0| 69 6f 6e 20 64 76 61 6c | 20 35 20 2d 31 5d 20 37 |ion dval| 5 -1] 7|
|00001800| 20 22 5c 0a 55 70 64 61 | 74 65 20 73 63 6f 72 65 | "\.Upda|te score|
|00001810| 20 74 61 62 6c 65 20 61 | 66 74 65 72 20 53 51 55 | table a|fter SQU|
|00001820| 41 52 45 20 72 65 63 65 | 69 76 65 64 20 61 20 44 |ARE rece|ived a D|
|00001830| 56 41 4c 20 69 6e 63 72 | 65 6d 65 6e 74 2e 22 5d |VAL incr|ement."]|
|00001840| 29 0a 28 66 73 65 74 20 | 27 67 6f 6d 6f 6b 75 2d |).(fset |'gomoku-|
|00001850| 75 70 64 61 74 65 2d 73 | 63 6f 72 65 2d 69 6e 2d |update-s|core-in-|
|00001860| 64 69 72 65 63 74 69 6f | 6e 20 23 5b 28 6c 65 66 |directio|n #[(lef|
|00001870| 74 20 72 69 67 68 74 20 | 73 71 75 61 72 65 20 64 |t right |square d|
|00001880| 78 20 64 79 20 64 76 61 | 6c 29 20 22 08 09 56 86 |x dy dva|l) "..V.|
|00001890| b6 00 c2 89 89 89 89 89 | 1b 1c 1d 1e 06 1e 07 1e |........|........|
|000018a0| 08 c9 0e 5c 6e 0e 0b 5c | 22 16 08 0e 0c 08 0e 08 |...\n..\|".......|
|000018b0| 5f 5c 5c 16 07 0e 0c 09 | 0e 08 5f 5c 5c 16 06 0e |_\\.....|.._\\...|
|000018c0| 07 0e 08 cd 5f 5c 5c 15 | 0e 07 16 0c ce 14 0e 0c |...._\\.|........|
|000018d0| 0d 58 ab 92 0c 0e 0f 0e | 0c 48 5c 5c 14 0e 0c 0e |.X......|.H\\....|
|000018e0| 08 5c 5c 89 16 0c aa 6a | 0e 07 0e 06 58 ad d8 0e |.\\....j|....X...|
|000018f0| 10 0c 48 0e 10 0c 0e 11 | 5a 48 5a 89 13 ce 55 ac |..H.....|ZHZ...U.|
|00001900| a9 0e 07 89 16 0c 0d 58 | ab a0 0e 0f 0e 0c 48 ce |.......X|......H.|
|00001910| 55 ab 8d 0e 12 0e 0c 0e | 12 0e 0c 48 0b 5c 5c 49 |U.......|...H.\\I|
|00001920| 88 0e 0c 0e 08 5c 5c 89 | 16 0c aa 5c 5c 0d 0e 08 |.....\\.|...\\...|
|00001930| 5c 5c 15 0c 0e 0f 0e 07 | 48 5b 0e 0f 0d 48 5c 5c |\\......|H[...H\\|
|00001940| 5c 5c 14 0e 07 0e 08 5c | 5c 89 16 07 aa 23 2e 06 |\\.....\|\....#..|
|00001950| 87 22 20 5b 6c 65 66 74 | 20 72 69 67 68 74 20 6e |." [left| right n|
|00001960| 69 6c 20 64 65 6c 74 61 | 20 63 6f 75 6e 74 20 73 |il delta| count s|
|00001970| 71 75 61 72 65 32 20 73 | 71 75 61 72 65 31 20 73 |quare2 s|quare1 s|
|00001980| 71 75 61 72 65 30 20 64 | 65 70 6c 20 67 6f 6d 6f |quare0 d|epl gomo|
|00001990| 6b 75 2d 78 79 2d 74 6f | 2d 69 6e 64 65 78 20 64 |ku-xy-to|-index d|
|000019a0| 78 20 64 79 20 73 71 75 | 61 72 65 20 34 20 30 20 |x dy squ|are 4 0 |
|000019b0| 67 6f 6d 6f 6b 75 2d 62 | 6f 61 72 64 20 67 6f 6d |gomoku-b|oard gom|
|000019c0| 6f 6b 75 2d 73 63 6f 72 | 65 2d 74 72 61 6e 73 2d |oku-scor|e-trans-|
|000019d0| 74 61 62 6c 65 20 64 76 | 61 6c 20 67 6f 6d 6f 6b |table dv|al gomok|
|000019e0| 75 2d 73 63 6f 72 65 2d | 74 61 62 6c 65 5d 20 37 |u-score-|table] 7|
|000019f0| 20 22 5c 0a 55 70 64 61 | 74 65 20 73 63 6f 72 65 | "\.Upda|te score|
|00001a00| 73 20 66 6f 72 20 61 6c | 6c 20 73 71 75 61 72 65 |s for al|l square|
|00001a10| 73 20 69 6e 20 74 68 65 | 20 71 74 75 70 6c 65 73 |s in the| qtuples|
|00001a20| 20 73 74 61 72 74 69 6e | 67 20 62 65 74 77 65 65 | startin|g betwee|
|00001a30| 6e 20 74 68 65 20 4c 45 | 46 54 74 68 0a 73 71 75 |n the LE|FTth.squ|
|00001a40| 61 72 65 20 61 6e 64 20 | 74 68 65 20 52 49 47 48 |are and |the RIGH|
|00001a50| 54 74 68 20 61 66 74 65 | 72 20 53 51 55 41 52 45 |Tth afte|r SQUARE|
|00001a60| 2c 20 61 6c 6f 6e 67 20 | 74 68 65 20 44 58 2c 20 |, along |the DX, |
|00001a70| 44 59 20 64 69 72 65 63 | 74 69 6f 6e 2c 20 63 6f |DY direc|tion, co|
|00001a80| 6e 73 69 64 65 72 69 6e | 67 0a 74 68 61 74 20 44 |nsiderin|g.that D|
|00001a90| 56 41 4c 20 68 61 73 20 | 62 65 65 6e 20 61 64 64 |VAL has |been add|
|00001aa0| 65 64 20 6f 6e 20 53 51 | 55 41 52 45 2e 22 5d 29 |ed on SQ|UARE."])|
|00001ab0| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00001ac0| 67 61 6d 65 2d 69 6e 2d | 70 72 6f 67 72 65 73 73 |game-in-|progress|
|00001ad0| 20 6e 69 6c 20 22 5c 0a | 4e 6f 6e 2d 6e 69 6c 20 | nil "\.|Non-nil |
|00001ae0| 69 66 20 61 20 67 61 6d | 65 20 69 73 20 69 6e 20 |if a gam|e is in |
|00001af0| 70 72 6f 67 72 65 73 73 | 2e 22 29 0a 28 64 65 66 |progress|.").(def|
|00001b00| 76 61 72 20 67 6f 6d 6f | 6b 75 2d 67 61 6d 65 2d |var gomo|ku-game-|
|00001b10| 68 69 73 74 6f 72 79 20 | 6e 69 6c 20 22 5c 0a 41 |history |nil "\.A|
|00001b20| 20 72 65 63 6f 72 64 20 | 6f 66 20 61 6c 6c 20 6d | record |of all m|
|00001b30| 6f 76 65 73 20 74 68 61 | 74 20 68 61 76 65 20 62 |oves tha|t have b|
|00001b40| 65 65 6e 20 70 6c 61 79 | 65 64 20 64 75 72 69 6e |een play|ed durin|
|00001b50| 67 20 63 75 72 72 65 6e | 74 20 67 61 6d 65 2e 22 |g curren|t game."|
|00001b60| 29 0a 28 64 65 66 76 61 | 72 20 67 6f 6d 6f 6b 75 |).(defva|r gomoku|
|00001b70| 2d 6e 75 6d 62 65 72 2d | 6f 66 2d 6d 6f 76 65 73 |-number-|of-moves|
|00001b80| 20 6e 69 6c 20 22 5c 0a | 4e 75 6d 62 65 72 20 6f | nil "\.|Number o|
|00001b90| 66 20 6d 6f 76 65 73 20 | 61 6c 72 65 61 64 79 20 |f moves |already |
|00001ba0| 70 6c 61 79 65 64 20 69 | 6e 20 63 75 72 72 65 6e |played i|n curren|
|00001bb0| 74 20 67 61 6d 65 2e 22 | 29 0a 28 64 65 66 76 61 |t game."|).(defva|
|00001bc0| 72 20 67 6f 6d 6f 6b 75 | 2d 6e 75 6d 62 65 72 2d |r gomoku|-number-|
|00001bd0| 6f 66 2d 68 75 6d 61 6e | 2d 6d 6f 76 65 73 20 6e |of-human|-moves n|
|00001be0| 69 6c 20 22 5c 0a 4e 75 | 6d 62 65 72 20 6f 66 20 |il "\.Nu|mber of |
|00001bf0| 6d 6f 76 65 73 20 61 6c | 72 65 61 64 79 20 70 6c |moves al|ready pl|
|00001c00| 61 79 65 64 20 62 79 20 | 68 75 6d 61 6e 20 69 6e |ayed by |human in|
|00001c10| 20 63 75 72 72 65 6e 74 | 20 67 61 6d 65 2e 22 29 | current| game.")|
|00001c20| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00001c30| 65 6d 61 63 73 2d 70 6c | 61 79 65 64 2d 66 69 72 |emacs-pl|ayed-fir|
|00001c40| 73 74 20 6e 69 6c 20 22 | 5c 0a 4e 6f 6e 2d 6e 69 |st nil "|\.Non-ni|
|00001c50| 6c 20 69 66 20 45 6d 61 | 63 73 20 70 6c 61 79 65 |l if Ema|cs playe|
|00001c60| 64 20 66 69 72 73 74 2e | 22 29 0a 28 64 65 66 76 |d first.|").(defv|
|00001c70| 61 72 20 67 6f 6d 6f 6b | 75 2d 68 75 6d 61 6e 2d |ar gomok|u-human-|
|00001c80| 74 6f 6f 6b 2d 62 61 63 | 6b 20 6e 69 6c 20 22 5c |took-bac|k nil "\|
|00001c90| 0a 4e 6f 6e 2d 6e 69 6c | 20 69 66 20 48 75 6d 61 |.Non-nil| if Huma|
|00001ca0| 6e 20 74 6f 6f 6b 20 62 | 61 63 6b 20 61 20 6d 6f |n took b|ack a mo|
|00001cb0| 76 65 20 64 75 72 69 6e | 67 20 74 68 65 20 67 61 |ve durin|g the ga|
|00001cc0| 6d 65 2e 22 29 0a 28 64 | 65 66 76 61 72 20 67 6f |me.").(d|efvar go|
|00001cd0| 6d 6f 6b 75 2d 68 75 6d | 61 6e 2d 72 65 66 75 73 |moku-hum|an-refus|
|00001ce0| 65 64 2d 64 72 61 77 20 | 6e 69 6c 20 22 5c 0a 4e |ed-draw |nil "\.N|
|00001cf0| 6f 6e 2d 6e 69 6c 20 69 | 66 20 48 75 6d 61 6e 20 |on-nil i|f Human |
|00001d00| 72 65 66 75 73 65 64 20 | 45 6d 61 63 73 20 6f 66 |refused |Emacs of|
|00001d10| 66 65 72 20 6f 66 20 61 | 20 64 72 61 77 2e 22 29 |fer of a| draw.")|
|00001d20| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00001d30| 65 6d 61 63 73 2d 69 73 | 2d 63 6f 6d 70 75 74 69 |emacs-is|-computi|
|00001d40| 6e 67 20 6e 69 6c 20 22 | 5c 0a 4e 6f 6e 2d 6e 69 |ng nil "|\.Non-ni|
|00001d50| 6c 20 69 66 20 45 6d 61 | 63 73 20 69 73 20 69 6e |l if Ema|cs is in|
|00001d60| 20 74 68 65 20 6d 69 64 | 64 6c 65 20 6f 66 20 61 | the mid|dle of a|
|00001d70| 20 63 6f 6d 70 75 74 61 | 74 69 6f 6e 2e 22 29 0a | computa|tion.").|
|00001d80| 28 66 73 65 74 20 27 67 | 6f 6d 6f 6b 75 2d 73 74 |(fset 'g|omoku-st|
|00001d90| 61 72 74 2d 67 61 6d 65 | 20 23 5b 28 6e 20 6d 29 |art-game| #[(n m)|
|00001da0| 20 22 c0 11 c0 12 0b 14 | 0d 16 06 0d c7 5c 5c 0b | "......|.....\\.|
|00001db0| 54 5f 54 16 08 0b 0d c9 | 5f 5f ca a5 16 0b cc 16 |T_T.....|__......|
|00001dc0| 0d ce 16 0f ce 16 10 cc | 16 11 cc 16 12 cc 16 13 |........|........|
|00001dd0| d4 0b 0d 5c 22 88 d5 20 | 88 d6 20 88 cc 89 11 87 |...\".. |.. .....|
|00001de0| 22 20 5b 74 20 67 6f 6d | 6f 6b 75 2d 65 6d 61 63 |" [t gom|oku-emac|
|00001df0| 73 2d 69 73 2d 63 6f 6d | 70 75 74 69 6e 67 20 67 |s-is-com|puting g|
|00001e00| 6f 6d 6f 6b 75 2d 67 61 | 6d 65 2d 69 6e 2d 70 72 |omoku-ga|me-in-pr|
|00001e10| 6f 67 72 65 73 73 20 6e | 20 67 6f 6d 6f 6b 75 2d |ogress n| gomoku-|
|00001e20| 62 6f 61 72 64 2d 77 69 | 64 74 68 20 6d 20 67 6f |board-wi|dth m go|
|00001e30| 6d 6f 6b 75 2d 62 6f 61 | 72 64 2d 68 65 69 67 68 |moku-boa|rd-heigh|
|00001e40| 74 20 32 20 67 6f 6d 6f | 6b 75 2d 76 65 63 74 6f |t 2 gomo|ku-vecto|
|00001e50| 72 2d 6c 65 6e 67 74 68 | 20 37 20 31 30 20 67 6f |r-length| 7 10 go|
|00001e60| 6d 6f 6b 75 2d 64 72 61 | 77 2d 6c 69 6d 69 74 20 |moku-dra|w-limit |
|00001e70| 6e 69 6c 20 67 6f 6d 6f | 6b 75 2d 67 61 6d 65 2d |nil gomo|ku-game-|
|00001e80| 68 69 73 74 6f 72 79 20 | 30 20 67 6f 6d 6f 6b 75 |history |0 gomoku|
|00001e90| 2d 6e 75 6d 62 65 72 2d | 6f 66 2d 6d 6f 76 65 73 |-number-|of-moves|
|00001ea0| 20 67 6f 6d 6f 6b 75 2d | 6e 75 6d 62 65 72 2d 6f | gomoku-|number-o|
|00001eb0| 66 2d 68 75 6d 61 6e 2d | 6d 6f 76 65 73 20 67 6f |f-human-|moves go|
|00001ec0| 6d 6f 6b 75 2d 65 6d 61 | 63 73 2d 70 6c 61 79 65 |moku-ema|cs-playe|
|00001ed0| 64 2d 66 69 72 73 74 20 | 67 6f 6d 6f 6b 75 2d 68 |d-first |gomoku-h|
|00001ee0| 75 6d 61 6e 2d 74 6f 6f | 6b 2d 62 61 63 6b 20 67 |uman-too|k-back g|
|00001ef0| 6f 6d 6f 6b 75 2d 68 75 | 6d 61 6e 2d 72 65 66 75 |omoku-hu|man-refu|
|00001f00| 73 65 64 2d 64 72 61 77 | 20 67 6f 6d 6f 6b 75 2d |sed-draw| gomoku-|
|00001f10| 69 6e 69 74 2d 64 69 73 | 70 6c 61 79 20 67 6f 6d |init-dis|play gom|
|00001f20| 6f 6b 75 2d 69 6e 69 74 | 2d 73 63 6f 72 65 2d 74 |oku-init|-score-t|
|00001f30| 61 62 6c 65 20 67 6f 6d | 6f 6b 75 2d 69 6e 69 74 |able gom|oku-init|
|00001f40| 2d 62 6f 61 72 64 5d 20 | 33 20 22 5c 0a 49 6e 69 |-board] |3 "\.Ini|
|00001f50| 74 69 61 6c 69 7a 65 20 | 61 20 6e 65 77 20 67 61 |tialize |a new ga|
|00001f60| 6d 65 20 6f 6e 20 61 6e | 20 4e 20 62 79 20 4d 20 |me on an| N by M |
|00001f70| 62 6f 61 72 64 2e 22 5d | 29 0a 28 66 73 65 74 20 |board."]|).(fset |
|00001f80| 27 67 6f 6d 6f 6b 75 2d | 70 6c 61 79 2d 6d 6f 76 |'gomoku-|play-mov|
|00001f90| 65 20 23 5b 28 73 71 75 | 61 72 65 20 76 61 6c 20 |e #[(squ|are val |
|00001fa0| 26 6f 70 74 69 6f 6e 61 | 6c 20 64 6f 6e 74 2d 75 |&optiona|l dont-u|
|00001fb0| 70 64 61 74 65 2d 73 63 | 6f 72 65 29 20 22 c0 11 |pdate-sc|ore) "..|
|00001fc0| 5c 6e c3 55 ab 85 0c 54 | 14 aa 88 0d c6 55 ab 83 |\n.U...T|.....U..|
|00001fd0| c0 16 07 0e 08 0e 09 0e | 08 48 42 0e 5c 6e 42 16 |........|.HB.\nB.|
|00001fe0| 5c 6e 0d 54 15 cb 0e 08 | 5c 6e 5c 22 88 0e 0c 0e |\n.T....|\n\"....|
|00001ff0| 08 5c 6e 49 88 0e 0d ac | 8d ce 0e 08 5c 6e 5c 22 |.\nI....|....\n\"|
|00002000| 88 0e 09 0e 08 cf 49 88 | d0 89 11 87 22 20 5b 74 |......I.|...." [t|
|00002010| 20 67 6f 6d 6f 6b 75 2d | 65 6d 61 63 73 2d 69 73 | gomoku-|emacs-is|
|00002020| 2d 63 6f 6d 70 75 74 69 | 6e 67 20 76 61 6c 20 31 |-computi|ng val 1|
|00002030| 20 67 6f 6d 6f 6b 75 2d | 6e 75 6d 62 65 72 2d 6f | gomoku-|number-o|
|00002040| 66 2d 68 75 6d 61 6e 2d | 6d 6f 76 65 73 20 67 6f |f-human-|moves go|
|00002050| 6d 6f 6b 75 2d 6e 75 6d | 62 65 72 2d 6f 66 2d 6d |moku-num|ber-of-m|
|00002060| 6f 76 65 73 20 30 20 67 | 6f 6d 6f 6b 75 2d 65 6d |oves 0 g|omoku-em|
|00002070| 61 63 73 2d 70 6c 61 79 | 65 64 2d 66 69 72 73 74 |acs-play|ed-first|
|00002080| 20 73 71 75 61 72 65 20 | 67 6f 6d 6f 6b 75 2d 73 | square |gomoku-s|
|00002090| 63 6f 72 65 2d 74 61 62 | 6c 65 20 67 6f 6d 6f 6b |core-tab|le gomok|
|000020a0| 75 2d 67 61 6d 65 2d 68 | 69 73 74 6f 72 79 20 67 |u-game-h|istory g|
|000020b0| 6f 6d 6f 6b 75 2d 70 6c | 6f 74 2d 73 71 75 61 72 |omoku-pl|ot-squar|
|000020c0| 65 20 67 6f 6d 6f 6b 75 | 2d 62 6f 61 72 64 20 64 |e gomoku|-board d|
|000020d0| 6f 6e 74 2d 75 70 64 61 | 74 65 2d 73 63 6f 72 65 |ont-upda|te-score|
|000020e0| 20 67 6f 6d 6f 6b 75 2d | 75 70 64 61 74 65 2d 73 | gomoku-|update-s|
|000020f0| 63 6f 72 65 2d 74 61 62 | 6c 65 20 2d 31 20 6e 69 |core-tab|le -1 ni|
|00002100| 6c 5d 20 33 20 22 5c 0a | 47 6f 20 74 6f 20 53 51 |l] 3 "\.|Go to SQ|
|00002110| 55 41 52 45 2c 20 70 6c | 61 79 20 56 41 4c 20 61 |UARE, pl|ay VAL a|
|00002120| 6e 64 20 75 70 64 61 74 | 65 20 65 76 65 72 79 74 |nd updat|e everyt|
|00002130| 68 69 6e 67 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |hing."])|.(fset '|
|00002140| 67 6f 6d 6f 6b 75 2d 74 | 61 6b 65 2d 62 61 63 6b |gomoku-t|ake-back|
|00002150| 20 23 5b 6e 69 6c 20 22 | c0 11 5c 6e 40 89 1b 40 | #[nil "|..\n@..@|
|00002160| 1c 0d 0c 48 89 1e 06 c7 | 55 ab 85 0e 08 53 16 08 |...H....|U....S..|
|00002170| 5c 6e 41 12 0e 09 53 16 | 09 ca 0c cb 5c 22 88 0d |\nA...S.|....\"..|
|00002180| 0c cb 49 88 cc 0c 0e 06 | 5b 5c 22 88 0e 0d 0c 0b |..I.....|[\".....|
|00002190| 41 49 88 2b ce 89 11 87 | 22 20 5b 74 20 67 6f 6d |AI.+....|" [t gom|
|000021a0| 6f 6b 75 2d 65 6d 61 63 | 73 2d 69 73 2d 63 6f 6d |oku-emac|s-is-com|
|000021b0| 70 75 74 69 6e 67 20 67 | 6f 6d 6f 6b 75 2d 67 61 |puting g|omoku-ga|
|000021c0| 6d 65 2d 68 69 73 74 6f | 72 79 20 6c 61 73 74 2d |me-histo|ry last-|
|000021d0| 6d 6f 76 65 20 73 71 75 | 61 72 65 20 67 6f 6d 6f |move squ|are gomo|
|000021e0| 6b 75 2d 62 6f 61 72 64 | 20 6f 6c 64 76 61 6c 20 |ku-board| oldval |
|000021f0| 31 20 67 6f 6d 6f 6b 75 | 2d 6e 75 6d 62 65 72 2d |1 gomoku|-number-|
|00002200| 6f 66 2d 68 75 6d 61 6e | 2d 6d 6f 76 65 73 20 67 |of-human|-moves g|
|00002210| 6f 6d 6f 6b 75 2d 6e 75 | 6d 62 65 72 2d 6f 66 2d |omoku-nu|mber-of-|
|00002220| 6d 6f 76 65 73 20 67 6f | 6d 6f 6b 75 2d 70 6c 6f |moves go|moku-plo|
|00002230| 74 2d 73 71 75 61 72 65 | 20 30 20 67 6f 6d 6f 6b |t-square| 0 gomok|
|00002240| 75 2d 75 70 64 61 74 65 | 2d 73 63 6f 72 65 2d 74 |u-update|-score-t|
|00002250| 61 62 6c 65 20 67 6f 6d | 6f 6b 75 2d 73 63 6f 72 |able gom|oku-scor|
|00002260| 65 2d 74 61 62 6c 65 20 | 6e 69 6c 5d 20 34 20 22 |e-table |nil] 4 "|
|00002270| 5c 0a 54 61 6b 65 20 62 | 61 63 6b 20 6c 61 73 74 |\.Take b|ack last|
|00002280| 20 6d 6f 76 65 20 61 6e | 64 20 75 70 64 61 74 65 | move an|d update|
|00002290| 20 65 76 65 72 79 74 68 | 69 6e 67 2e 22 5d 29 0a | everyth|ing."]).|
|000022a0| 28 64 65 66 76 61 72 20 | 67 6f 6d 6f 6b 75 2d 6e |(defvar |gomoku-n|
|000022b0| 75 6d 62 65 72 2d 6f 66 | 2d 77 69 6e 73 20 30 20 |umber-of|-wins 0 |
|000022c0| 22 5c 0a 4e 75 6d 62 65 | 72 20 6f 66 20 67 61 6d |"\.Numbe|r of gam|
|000022d0| 65 73 20 61 6c 72 65 61 | 64 79 20 77 6f 6e 20 69 |es alrea|dy won i|
|000022e0| 6e 20 74 68 69 73 20 73 | 65 73 73 69 6f 6e 2e 22 |n this s|ession."|
|000022f0| 29 0a 28 64 65 66 76 61 | 72 20 67 6f 6d 6f 6b 75 |).(defva|r gomoku|
|00002300| 2d 6e 75 6d 62 65 72 2d | 6f 66 2d 6c 6f 73 73 65 |-number-|of-losse|
|00002310| 73 20 30 20 22 5c 0a 4e | 75 6d 62 65 72 20 6f 66 |s 0 "\.N|umber of|
|00002320| 20 67 61 6d 65 73 20 61 | 6c 72 65 61 64 79 20 6c | games a|lready l|
|00002330| 6f 73 74 20 69 6e 20 74 | 68 69 73 20 73 65 73 73 |ost in t|his sess|
|00002340| 69 6f 6e 2e 22 29 0a 28 | 64 65 66 76 61 72 20 67 |ion.").(|defvar g|
|00002350| 6f 6d 6f 6b 75 2d 6e 75 | 6d 62 65 72 2d 6f 66 2d |omoku-nu|mber-of-|
|00002360| 64 72 61 77 73 20 30 20 | 22 5c 0a 4e 75 6d 62 65 |draws 0 |"\.Numbe|
|00002370| 72 20 6f 66 20 67 61 6d | 65 73 20 61 6c 72 65 61 |r of gam|es alrea|
|00002380| 64 79 20 64 72 61 77 6e | 20 69 6e 20 74 68 69 73 |dy drawn| in this|
|00002390| 20 73 65 73 73 69 6f 6e | 2e 22 29 0a 28 66 73 65 | session|.").(fse|
|000023a0| 74 20 27 67 6f 6d 6f 6b | 75 2d 74 65 72 6d 69 6e |t 'gomok|u-termin|
|000023b0| 61 74 65 2d 67 61 6d 65 | 20 23 5b 28 72 65 73 75 |ate-game| #[(resu|
|000023c0| 6c 74 29 20 22 c0 19 5c | 6e c3 3d ab b8 0c 54 14 |lt) "..\|n.=...T.|
|000023d0| 0d c6 57 ab 83 c7 aa aa | 0e 08 ab 83 c9 aa a3 0e |..W.....|........|
|000023e0| 5c 6e ab 83 cb aa 9c 0e | 0c ac 83 cd aa 95 0e 0e |\n......|........|
|000023f0| cf 55 ab 8e 0e 10 cf 55 | ab 88 0c d1 56 ab 83 d2 |.U.....U|....V...|
|00002400| aa 81 d3 11 aa e7 5c 6e | d4 3d ab 97 0e 0e 54 16 |......\n|.=....T.|
|00002410| 0e 0e 5c 6e ab 83 d5 aa | 88 0e 0c ab 83 d6 aa 81 |..\n....|........|
|00002420| d7 11 aa cb 5c 6e d8 3d | ab 87 0c 54 14 d9 11 aa |....\n.=|...T....|
|00002430| bf 5c 6e da 3d ab 97 0e | 10 54 16 10 0e 5c 6e ab |.\n.=...|.T...\n.|
|00002440| 83 db aa 88 0e 0c ab 83 | dc aa 81 dd 11 aa a3 5c |........|.......\|
|00002450| 6e de 3d ab 97 0e 10 54 | 16 10 0e 5c 6e ab 83 df |n.=....T|...\n...|
|00002460| aa 88 0e 0c ab 83 e0 aa | 81 e1 11 aa 87 5c 6e e2 |........|.....\n.|
|00002470| 3d ab 82 e3 11 e4 20 88 | 09 ab 84 c1 09 21 88 e5 |=..... .|.....!..|
|00002480| 20 88 c0 89 16 26 29 87 | 22 20 5b 6e 69 6c 20 6d | ....&).|" [nil m|
|00002490| 65 73 73 61 67 65 20 72 | 65 73 75 6c 74 20 65 6d |essage r|esult em|
|000024a0| 61 63 73 2d 77 6f 6e 20 | 67 6f 6d 6f 6b 75 2d 6e |acs-won |gomoku-n|
|000024b0| 75 6d 62 65 72 2d 6f 66 | 2d 77 69 6e 73 20 67 6f |umber-of|-wins go|
|000024c0| 6d 6f 6b 75 2d 6e 75 6d | 62 65 72 2d 6f 66 2d 6d |moku-num|ber-of-m|
|000024d0| 6f 76 65 73 20 32 30 20 | 22 54 68 69 73 20 77 61 |oves 20 |"This wa|
|000024e0| 73 20 61 20 52 45 41 4c | 4c 59 20 51 55 49 43 4b |s a REAL|LY QUICK|
|000024f0| 20 77 69 6e 2e 22 20 67 | 6f 6d 6f 6b 75 2d 68 75 | win." g|omoku-hu|
|00002500| 6d 61 6e 2d 72 65 66 75 | 73 65 64 2d 64 72 61 77 |man-refu|sed-draw|
|00002510| 20 22 49 20 77 6f 6e 2e | 2e 2e 20 54 6f 6f 20 62 | "I won.|.. Too b|
|00002520| 61 64 20 79 6f 75 20 72 | 65 66 75 73 65 64 20 6d |ad you r|efused m|
|00002530| 79 20 6f 66 66 65 72 20 | 6f 66 20 61 20 64 72 61 |y offer |of a dra|
|00002540| 77 20 21 22 20 67 6f 6d | 6f 6b 75 2d 68 75 6d 61 |w !" gom|oku-huma|
|00002550| 6e 2d 74 6f 6f 6b 2d 62 | 61 63 6b 20 22 49 20 77 |n-took-b|ack "I w|
|00002560| 6f 6e 2e 2e 2e 20 54 61 | 6b 69 6e 67 20 6d 6f 76 |on... Ta|king mov|
|00002570| 65 73 20 62 61 63 6b 20 | 77 69 6c 6c 20 6e 6f 74 |es back |will not|
|00002580| 20 68 65 6c 70 20 79 6f | 75 20 21 22 20 67 6f 6d | help yo|u !" gom|
|00002590| 6f 6b 75 2d 65 6d 61 63 | 73 2d 70 6c 61 79 65 64 |oku-emac|s-played|
|000025a0| 2d 66 69 72 73 74 20 22 | 49 20 77 6f 6e 2e 2e 2e |-first "|I won...|
|000025b0| 20 50 6c 61 79 69 6e 67 | 20 66 69 72 73 74 20 64 | Playing| first d|
|000025c0| 69 64 20 6e 6f 74 20 68 | 65 6c 70 20 79 6f 75 20 |id not h|elp you |
|000025d0| 6d 75 63 68 20 21 22 20 | 67 6f 6d 6f 6b 75 2d 6e |much !" |gomoku-n|
|000025e0| 75 6d 62 65 72 2d 6f 66 | 2d 6c 6f 73 73 65 73 20 |umber-of|-losses |
|000025f0| 30 20 67 6f 6d 6f 6b 75 | 2d 6e 75 6d 62 65 72 2d |0 gomoku|-number-|
|00002600| 6f 66 2d 64 72 61 77 73 | 20 31 20 22 49 27 6d 20 |of-draws| 1 "I'm |
|00002610| 62 65 63 6f 6d 69 6e 67 | 20 74 69 72 65 64 20 6f |becoming| tired o|
|00002620| 66 20 77 69 6e 6e 69 6e | 67 2e 2e 2e 22 20 22 49 |f winnin|g..." "I|
|00002630| 20 77 6f 6e 2e 22 20 68 | 75 6d 61 6e 2d 77 6f 6e | won." h|uman-won|
|00002640| 20 22 4f 4b 2c 20 79 6f | 75 20 77 6f 6e 20 74 68 | "OK, yo|u won th|
|00002650| 69 73 20 6f 6e 65 2e 20 | 49 2c 20 66 6f 72 20 6f |is one. |I, for o|
|00002660| 6e 65 2c 20 6e 65 76 65 | 72 20 74 61 6b 65 20 6d |ne, neve|r take m|
|00002670| 79 20 6d 6f 76 65 73 20 | 62 61 63 6b 2e 2e 2e 22 |y moves |back..."|
|00002680| 20 22 4f 4b 2c 20 79 6f | 75 20 77 6f 6e 20 74 68 | "OK, yo|u won th|
|00002690| 69 73 20 6f 6e 65 2e 2e | 2e 20 73 6f 20 77 68 61 |is one..|. so wha|
|000026a0| 74 20 3f 22 20 22 4f 4b | 2c 20 79 6f 75 20 77 6f |t ?" "OK|, you wo|
|000026b0| 6e 20 74 68 69 73 20 6f | 6e 65 2e 20 4e 6f 77 2c |n this o|ne. Now,|
|000026c0| 20 6c 65 74 20 6d 65 20 | 70 6c 61 79 20 66 69 72 | let me |play fir|
|000026d0| 73 74 20 6a 75 73 74 20 | 6f 6e 63 65 2e 22 20 68 |st just |once." h|
|000026e0| 75 6d 61 6e 2d 72 65 73 | 69 67 6e 65 64 20 22 53 |uman-res|igned "S|
|000026f0| 6f 20 79 6f 75 20 72 65 | 73 69 67 6e 2e 20 20 54 |o you re|sign. T|
|00002700| 68 61 74 27 73 20 6a 75 | 73 74 20 6f 6e 65 20 6d |hat's ju|st one m|
|00002710| 6f 72 65 20 77 69 6e 20 | 66 6f 72 20 6d 65 2e 22 |ore win |for me."|
|00002720| 20 6e 6f 62 6f 64 79 2d | 77 6f 6e 20 22 54 68 69 | nobody-|won "Thi|
|00002730| 73 20 69 73 20 61 20 64 | 72 61 77 2e 20 49 2c 20 |s is a d|raw. I, |
|00002740| 66 6f 72 20 6f 6e 65 2c | 20 6e 65 76 65 72 20 74 |for one,| never t|
|00002750| 61 6b 65 20 6d 79 20 6d | 6f 76 65 73 20 62 61 63 |ake my m|oves bac|
|00002760| 6b 2e 2e 2e 22 20 22 54 | 68 69 73 20 69 73 20 61 |k..." "T|his is a|
|00002770| 20 64 72 61 77 2e 20 20 | 4a 75 73 74 20 63 68 61 | draw. |Just cha|
|00002780| 6e 63 65 2c 20 49 20 67 | 75 65 73 73 2e 22 20 22 |nce, I g|uess." "|
|00002790| 54 68 69 73 20 69 73 20 | 61 20 64 72 61 77 2e 20 |This is |a draw. |
|000027a0| 4e 6f 77 2c 20 6c 65 74 | 20 6d 65 20 70 6c 61 79 |Now, let| me play|
|000027b0| 20 66 69 72 73 74 20 6a | 75 73 74 20 6f 6e 63 65 | first j|ust once|
|000027c0| 2e 22 20 64 72 61 77 2d | 61 67 72 65 65 64 20 22 |." draw-|agreed "|
|000027d0| 44 72 61 77 20 61 67 72 | 65 65 64 2e 20 49 2c 20 |Draw agr|eed. I, |
|000027e0| 66 6f 72 20 6f 6e 65 2c | 20 6e 65 76 65 72 20 74 |for one,| never t|
|000027f0| 61 6b 65 20 6d 79 20 6d | 6f 76 65 73 20 62 61 63 |ake my m|oves bac|
|00002800| 6b 2e 2e 2e 22 20 22 44 | 72 61 77 20 61 67 72 65 |k..." "D|raw agre|
|00002810| 65 64 2e 20 59 6f 75 20 | 77 65 72 65 20 6c 75 63 |ed. You |were luc|
|00002820| 6b 79 2e 22 20 22 44 72 | 61 77 20 61 67 72 65 65 |ky." "Dr|aw agree|
|00002830| 64 2e 20 4e 6f 77 2c 20 | 6c 65 74 20 6d 65 20 70 |d. Now, |let me p|
|00002840| 6c 61 79 20 66 69 72 73 | 74 20 6a 75 73 74 20 6f |lay firs|t just o|
|00002850| 6e 63 65 2e 22 20 63 72 | 61 73 68 2d 67 61 6d 65 |nce." cr|ash-game|
|00002860| 20 22 53 6f 72 72 79 2c | 20 49 20 68 61 76 65 20 | "Sorry,| I have |
|00002870| 62 65 65 6e 20 69 6e 74 | 65 72 72 75 70 74 65 64 |been int|errupted|
|00002880| 20 61 6e 64 20 63 61 6e | 6e 6f 74 20 72 65 73 75 | and can|not resu|
|00002890| 6d 65 20 74 68 61 74 20 | 67 61 6d 65 2e 2e 2e 22 |me that |game..."|
|000028a0| 20 67 6f 6d 6f 6b 75 2d | 64 69 73 70 6c 61 79 2d | gomoku-|display-|
|000028b0| 73 74 61 74 69 73 74 69 | 63 73 20 64 69 6e 67 20 |statisti|cs ding |
|000028c0| 67 6f 6d 6f 6b 75 2d 67 | 61 6d 65 2d 69 6e 2d 70 |gomoku-g|ame-in-p|
|000028d0| 72 6f 67 72 65 73 73 5d | 20 32 20 22 5c 0a 54 65 |rogress]| 2 "\.Te|
|000028e0| 72 6d 69 6e 61 74 65 20 | 74 68 65 20 63 75 72 72 |rminate |the curr|
|000028f0| 65 6e 74 20 67 61 6d 65 | 20 77 69 74 68 20 52 45 |ent game| with RE|
|00002900| 53 55 4c 54 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |SULT."])|.(fset '|
|00002910| 67 6f 6d 6f 6b 75 2d 63 | 72 61 73 68 2d 67 61 6d |gomoku-c|rash-gam|
|00002920| 65 20 23 5b 6e 69 6c 20 | 22 c0 11 c2 c3 21 88 c4 |e #[nil |"....!..|
|00002930| c5 21 88 c6 20 87 22 20 | 5b 6e 69 6c 20 67 6f 6d |.!.. ." |[nil gom|
|00002940| 6f 6b 75 2d 65 6d 61 63 | 73 2d 69 73 2d 63 6f 6d |oku-emac|s-is-com|
|00002950| 70 75 74 69 6e 67 20 67 | 6f 6d 6f 6b 75 2d 74 65 |puting g|omoku-te|
|00002960| 72 6d 69 6e 61 74 65 2d | 67 61 6d 65 20 63 72 61 |rminate-|game cra|
|00002970| 73 68 2d 67 61 6d 65 20 | 73 69 74 2d 66 6f 72 20 |sh-game |sit-for |
|00002980| 34 20 67 6f 6d 6f 6b 75 | 2d 70 72 6f 6d 70 74 2d |4 gomoku|-prompt-|
|00002990| 66 6f 72 2d 6f 74 68 65 | 72 2d 67 61 6d 65 5d 20 |for-othe|r-game] |
|000029a0| 32 20 22 5c 0a 57 68 61 | 74 20 74 6f 20 64 6f 20 |2 "\.Wha|t to do |
|000029b0| 77 68 65 6e 20 45 6d 61 | 63 73 20 64 65 74 65 63 |when Ema|cs detec|
|000029c0| 74 73 20 69 74 20 68 61 | 73 20 62 65 65 6e 20 69 |ts it ha|s been i|
|000029d0| 6e 74 65 72 72 75 70 74 | 65 64 2e 22 5d 29 0a 28 |nterrupt|ed."]).(|
|000029e0| 66 73 65 74 20 27 67 6f | 6d 6f 6b 75 20 23 5b 28 |fset 'go|moku #[(|
|000029f0| 26 6f 70 74 69 6f 6e 61 | 6c 20 6e 20 6d 29 20 22 |&optiona|l n m) "|
|00002a00| c0 20 88 09 ab 83 c2 20 | 87 0b ac ef c4 20 c5 20 |. ..... |..... . |
|00002a10| 1e 06 1e 07 0e 08 ac 84 | 0e 07 16 08 0e 09 ac 84 |........|........|
|00002a20| 0e 06 16 09 0e 08 ca 57 | ab 86 cb cc 21 88 aa 99 |.......W|....!...|
|00002a30| 0e 09 ca 57 ab 86 cb cd | 21 88 aa 8d 0e 08 0e 07 |...W....|!.......|
|00002a40| 56 ab 86 cb ce 0e 08 5c | 22 88 0e 09 0e 06 56 ab |V......\|".....V.|
|00002a50| 94 0e 09 0e 0f 9a ac 8d | d0 d1 d2 0e 09 5c 22 21 |........|.....\"!|
|00002a60| ac 84 0e 06 16 09 2a d3 | d4 21 88 d5 0e 08 0e 09 |......*.|.!......|
|00002a70| 5c 22 88 d0 d6 21 ab 83 | d7 20 87 d8 20 87 d0 d9 |\"...!..|. .. ...|
|00002a80| 21 ab 83 d8 20 87 da 20 | 87 22 20 5b 67 6f 6d 6f |!... .. |." [gomo|
|00002a90| 6b 75 2d 73 77 69 74 63 | 68 2d 74 6f 2d 77 69 6e |ku-switc|h-to-win|
|00002aa0| 64 6f 77 20 67 6f 6d 6f | 6b 75 2d 65 6d 61 63 73 |dow gomo|ku-emacs|
|00002ab0| 2d 69 73 2d 63 6f 6d 70 | 75 74 69 6e 67 20 67 6f |-is-comp|uting go|
|00002ac0| 6d 6f 6b 75 2d 63 72 61 | 73 68 2d 67 61 6d 65 20 |moku-cra|sh-game |
|00002ad0| 67 6f 6d 6f 6b 75 2d 67 | 61 6d 65 2d 69 6e 2d 70 |gomoku-g|ame-in-p|
|00002ae0| 72 6f 67 72 65 73 73 20 | 67 6f 6d 6f 6b 75 2d 6d |rogress |gomoku-m|
|00002af0| 61 78 2d 77 69 64 74 68 | 20 67 6f 6d 6f 6b 75 2d |ax-width| gomoku-|
|00002b00| 6d 61 78 2d 68 65 69 67 | 68 74 20 6d 61 78 2d 68 |max-heig|ht max-h|
|00002b10| 65 69 67 68 74 20 6d 61 | 78 2d 77 69 64 74 68 20 |eight ma|x-width |
|00002b20| 6e 20 6d 20 31 20 65 72 | 72 6f 72 20 22 49 20 6e |n m 1 er|ror "I n|
|00002b30| 65 65 64 20 61 74 20 6c | 65 61 73 74 20 31 20 63 |eed at l|east 1 c|
|00002b40| 6f 6c 75 6d 6e 22 20 22 | 49 20 6e 65 65 64 20 61 |olumn" "|I need a|
|00002b50| 74 20 6c 65 61 73 74 20 | 31 20 72 6f 77 22 20 22 |t least |1 row" "|
|00002b60| 49 20 63 61 6e 6e 6f 74 | 20 64 69 73 70 6c 61 79 |I cannot| display|
|00002b70| 20 25 64 20 63 6f 6c 75 | 6d 6e 73 20 69 6e 20 74 | %d colu|mns in t|
|00002b80| 68 61 74 20 77 69 6e 64 | 6f 77 22 20 67 6f 6d 6f |hat wind|ow" gomo|
|00002b90| 6b 75 2d 73 61 76 65 64 | 2d 62 6f 61 72 64 2d 68 |ku-saved|-board-h|
|00002ba0| 65 69 67 68 74 20 79 2d | 6f 72 2d 6e 2d 70 20 66 |eight y-|or-n-p f|
|00002bb0| 6f 72 6d 61 74 20 22 44 | 6f 20 79 6f 75 20 72 65 |ormat "D|o you re|
|00002bc0| 61 6c 6c 79 20 77 61 6e | 74 20 25 64 20 72 6f 77 |ally wan|t %d row|
|00002bd0| 73 20 22 20 6d 65 73 73 | 61 67 65 20 22 4f 6e 65 |s " mess|age "One|
|00002be0| 20 6d 6f 6d 65 6e 74 2c | 20 70 6c 65 61 73 65 2e | moment,| please.|
|00002bf0| 2e 2e 22 20 67 6f 6d 6f | 6b 75 2d 73 74 61 72 74 |.." gomo|ku-start|
|00002c00| 2d 67 61 6d 65 20 22 44 | 6f 20 79 6f 75 20 61 6c |-game "D|o you al|
|00002c10| 6c 6f 77 20 6d 65 20 74 | 6f 20 70 6c 61 79 20 66 |low me t|o play f|
|00002c20| 69 72 73 74 20 22 20 67 | 6f 6d 6f 6b 75 2d 65 6d |irst " g|omoku-em|
|00002c30| 61 63 73 2d 70 6c 61 79 | 73 20 67 6f 6d 6f 6b 75 |acs-play|s gomoku|
|00002c40| 2d 70 72 6f 6d 70 74 2d | 66 6f 72 2d 6d 6f 76 65 |-prompt-|for-move|
|00002c50| 20 22 53 68 61 6c 6c 20 | 77 65 20 63 6f 6e 74 69 | "Shall |we conti|
|00002c60| 6e 75 65 20 6f 75 72 20 | 67 61 6d 65 20 22 20 67 |nue our |game " g|
|00002c70| 6f 6d 6f 6b 75 2d 68 75 | 6d 61 6e 2d 72 65 73 69 |omoku-hu|man-resi|
|00002c80| 67 6e 73 5d 20 34 20 22 | 5c 0a 53 74 61 72 74 20 |gns] 4 "|\.Start |
|00002c90| 61 20 47 6f 6d 6f 6b 75 | 20 67 61 6d 65 20 62 65 |a Gomoku| game be|
|00002ca0| 74 77 65 65 6e 20 79 6f | 75 20 61 6e 64 20 45 6d |tween yo|u and Em|
|00002cb0| 61 63 73 2e 0a 49 66 20 | 61 20 67 61 6d 65 20 69 |acs..If |a game i|
|00002cc0| 73 20 69 6e 20 70 72 6f | 67 72 65 73 73 2c 20 74 |s in pro|gress, t|
|00002cd0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 61 6c 6c 6f |his comm|and allo|
|00002ce0| 77 20 79 6f 75 20 74 6f | 20 72 65 73 75 6d 65 20 |w you to| resume |
|00002cf0| 69 74 2e 0a 49 66 20 6f | 70 74 69 6f 6e 61 6c 20 |it..If o|ptional |
|00002d00| 61 72 67 75 6d 65 6e 74 | 73 20 4e 20 61 6e 64 20 |argument|s N and |
|00002d10| 4d 20 61 72 65 20 67 69 | 76 65 6e 2c 20 61 6e 20 |M are gi|ven, an |
|00002d20| 4e 20 62 79 20 4d 20 62 | 6f 61 72 64 20 69 73 20 |N by M b|oard is |
|00002d30| 75 73 65 64 2e 0a 0a 59 | 6f 75 20 61 6e 64 20 45 |used...Y|ou and E|
|00002d40| 6d 61 63 73 20 70 6c 61 | 79 20 69 6e 20 74 75 72 |macs pla|y in tur|
|00002d50| 6e 20 62 79 20 6d 61 72 | 6b 69 6e 67 20 61 20 66 |n by mar|king a f|
|00002d60| 72 65 65 20 73 71 75 61 | 72 65 2e 20 59 6f 75 20 |ree squa|re. You |
|00002d70| 6d 61 72 6b 20 69 74 20 | 77 69 74 68 20 58 0a 61 |mark it |with X.a|
|00002d80| 6e 64 20 45 6d 61 63 73 | 20 6d 61 72 6b 73 20 69 |nd Emacs| marks i|
|00002d90| 74 20 77 69 74 68 20 4f | 2e 20 54 68 65 20 77 69 |t with O|. The wi|
|00002da0| 6e 6e 65 72 20 69 73 20 | 74 68 65 20 66 69 72 73 |nner is |the firs|
|00002db0| 74 20 74 6f 20 67 65 74 | 20 66 69 76 65 20 63 6f |t to get| five co|
|00002dc0| 6e 74 69 67 75 6f 75 73 | 0a 6d 61 72 6b 73 20 68 |ntiguous|.marks h|
|00002dd0| 6f 72 69 7a 6f 6e 74 61 | 6c 6c 79 2c 20 76 65 72 |orizonta|lly, ver|
|00002de0| 74 69 63 61 6c 6c 79 20 | 6f 72 20 69 6e 20 64 69 |tically |or in di|
|00002df0| 61 67 6f 6e 61 6c 2e 0a | 59 6f 75 20 70 6c 61 79 |agonal..|You play|
|00002e00| 20 62 79 20 6d 6f 76 69 | 6e 67 20 74 68 65 20 63 | by movi|ng the c|
|00002e10| 75 72 73 6f 72 20 6f 76 | 65 72 20 74 68 65 20 73 |ursor ov|er the s|
|00002e20| 71 75 61 72 65 20 79 6f | 75 20 63 68 6f 6f 73 65 |quare yo|u choose|
|00002e30| 20 61 6e 64 20 68 69 74 | 74 69 6e 67 0a 5c 5c 3c | and hit|ting.\\<|
|00002e40| 67 6f 6d 6f 6b 75 2d 6d | 6f 64 65 2d 6d 61 70 3e |gomoku-m|ode-map>|
|00002e50| 5c 5c 5b 67 6f 6d 6f 6b | 75 2d 68 75 6d 61 6e 2d |\\[gomok|u-human-|
|00002e60| 70 6c 61 79 73 5d 2e 0a | 55 73 65 20 5c 5c 5b 64 |plays]..|Use \\[d|
|00002e70| 65 73 63 72 69 62 65 2d | 6d 6f 64 65 5d 20 66 6f |escribe-|mode] fo|
|00002e80| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 2e 22 20 6e 69 |r more i|nfo." ni|
|00002e90| 6c 5d 29 0a 28 66 73 65 | 74 20 27 67 6f 6d 6f 6b |l]).(fse|t 'gomok|
|00002ea0| 75 2d 65 6d 61 63 73 2d | 70 6c 61 79 73 20 23 5b |u-emacs-|plays #[|
|00002eb0| 6e 69 6c 20 22 c0 20 88 | 09 ab 83 c2 20 87 0b ac |nil ". .|.... ...|
|00002ec0| 83 c4 20 87 c5 c6 21 88 | c7 89 1e 08 1e 09 ca 20 |.. ...!.|....... |
|00002ed0| 89 16 09 ac 85 cb cc 21 | aa c3 0e 0d 0e 09 48 16 |.......!|......H.|
|00002ee0| 08 ce 0e 09 cf 5c 22 88 | 0e 08 0e 10 59 ab 8e d1 |.....\".|....Y...|
|00002ef0| 0e 09 cf 5c 22 88 d2 20 | 88 cb d3 21 aa a1 0e 08 |...\".. |...!....|
|00002f00| d4 55 ab 85 cb cc 21 aa | 96 0e 15 0e 16 56 ab 8d |.U....!.|.....V..|
|00002f10| 0e 17 ac 89 d8 20 ab 85 | cb d9 21 aa 82 da 20 2a |..... ..|..!... *|
|00002f20| 87 22 20 5b 67 6f 6d 6f | 6b 75 2d 73 77 69 74 63 |." [gomo|ku-switc|
|00002f30| 68 2d 74 6f 2d 77 69 6e | 64 6f 77 20 67 6f 6d 6f |h-to-win|dow gomo|
|00002f40| 6b 75 2d 65 6d 61 63 73 | 2d 69 73 2d 63 6f 6d 70 |ku-emacs|-is-comp|
|00002f50| 75 74 69 6e 67 20 67 6f | 6d 6f 6b 75 2d 63 72 61 |uting go|moku-cra|
|00002f60| 73 68 2d 67 61 6d 65 20 | 67 6f 6d 6f 6b 75 2d 67 |sh-game |gomoku-g|
|00002f70| 61 6d 65 2d 69 6e 2d 70 | 72 6f 67 72 65 73 73 20 |ame-in-p|rogress |
|00002f80| 67 6f 6d 6f 6b 75 2d 70 | 72 6f 6d 70 74 2d 66 6f |gomoku-p|rompt-fo|
|00002f90| 72 2d 6f 74 68 65 72 2d | 67 61 6d 65 20 6d 65 73 |r-other-|game mes|
|00002fa0| 73 61 67 65 20 22 4c 65 | 74 20 6d 65 20 74 68 69 |sage "Le|t me thi|
|00002fb0| 6e 6b 2e 2e 2e 22 20 6e | 69 6c 20 73 63 6f 72 65 |nk..." n|il score|
|00002fc0| 20 73 71 75 61 72 65 20 | 67 6f 6d 6f 6b 75 2d 73 | square |gomoku-s|
|00002fd0| 74 72 6f 6e 67 65 73 74 | 2d 73 71 75 61 72 65 20 |trongest|-square |
|00002fe0| 67 6f 6d 6f 6b 75 2d 74 | 65 72 6d 69 6e 61 74 65 |gomoku-t|erminate|
|00002ff0| 2d 67 61 6d 65 20 6e 6f | 62 6f 64 79 2d 77 6f 6e |-game no|body-won|
|00003000| 20 67 6f 6d 6f 6b 75 2d | 73 63 6f 72 65 2d 74 61 | gomoku-|score-ta|
|00003010| 62 6c 65 20 67 6f 6d 6f | 6b 75 2d 70 6c 61 79 2d |ble gomo|ku-play-|
|00003020| 6d 6f 76 65 20 36 20 67 | 6f 6d 6f 6b 75 2d 77 69 |move 6 g|omoku-wi|
|00003030| 6e 6e 69 6e 67 2d 74 68 | 72 65 73 68 6f 6c 64 20 |nning-th|reshold |
|00003040| 67 6f 6d 6f 6b 75 2d 66 | 69 6e 64 2d 66 69 6c 6c |gomoku-f|ind-fill|
|00003050| 65 64 2d 71 74 75 70 6c | 65 20 67 6f 6d 6f 6b 75 |ed-qtupl|e gomoku|
|00003060| 2d 63 72 6f 73 73 2d 77 | 69 6e 6e 69 6e 67 2d 71 |-cross-w|inning-q|
|00003070| 74 75 70 6c 65 20 65 6d | 61 63 73 2d 77 6f 6e 20 |tuple em|acs-won |
|00003080| 30 20 67 6f 6d 6f 6b 75 | 2d 6e 75 6d 62 65 72 2d |0 gomoku|-number-|
|00003090| 6f 66 2d 6d 6f 76 65 73 | 20 67 6f 6d 6f 6b 75 2d |of-moves| gomoku-|
|000030a0| 64 72 61 77 2d 6c 69 6d | 69 74 20 67 6f 6d 6f 6b |draw-lim|it gomok|
|000030b0| 75 2d 68 75 6d 61 6e 2d | 72 65 66 75 73 65 64 2d |u-human-|refused-|
|000030c0| 64 72 61 77 20 67 6f 6d | 6f 6b 75 2d 6f 66 66 65 |draw gom|oku-offe|
|000030d0| 72 2d 61 2d 64 72 61 77 | 20 64 72 61 77 2d 61 67 |r-a-draw| draw-ag|
|000030e0| 72 65 65 64 20 67 6f 6d | 6f 6b 75 2d 70 72 6f 6d |reed gom|oku-prom|
|000030f0| 70 74 2d 66 6f 72 2d 6d | 6f 76 65 5d 20 34 20 22 |pt-for-m|ove] 4 "|
|00003100| 5c 0a 43 6f 6d 70 75 74 | 65 20 45 6d 61 63 73 20 |\.Comput|e Emacs |
|00003110| 6e 65 78 74 20 6d 6f 76 | 65 20 61 6e 64 20 70 6c |next mov|e and pl|
|00003120| 61 79 20 69 74 2e 22 20 | 6e 69 6c 5d 29 0a 28 66 |ay it." |nil]).(f|
|00003130| 73 65 74 20 27 67 6f 6d | 6f 6b 75 2d 68 75 6d 61 |set 'gom|oku-huma|
|00003140| 6e 2d 70 6c 61 79 73 20 | 23 5b 6e 69 6c 20 22 c0 |n-plays |#[nil ".|
|00003150| 20 88 09 ab 83 c2 20 87 | 0b ac 83 c4 20 87 c5 89 | ..... .|.... ...|
|00003160| 1e 06 1e 07 c8 20 89 16 | 07 ac 85 c9 ca 21 aa b3 |..... ..|.....!..|
|00003170| 0e 0b 0e 07 48 cc 55 ac | 85 c9 cd 21 aa a5 0e 0e |....H.U.|...!....|
|00003180| 0e 07 48 16 06 cf 0e 07 | d0 5c 22 88 0e 06 0e 11 |..H.....|.\".....|
|00003190| 59 ab 8f d2 0e 07 d0 5c | 22 ab 88 d3 20 88 d4 d5 |Y......\|"... ...|
|000031a0| 21 aa 82 d6 20 2a 87 22 | 20 5b 67 6f 6d 6f 6b 75 |!... *."| [gomoku|
|000031b0| 2d 73 77 69 74 63 68 2d | 74 6f 2d 77 69 6e 64 6f |-switch-|to-windo|
|000031c0| 77 20 67 6f 6d 6f 6b 75 | 2d 65 6d 61 63 73 2d 69 |w gomoku|-emacs-i|
|000031d0| 73 2d 63 6f 6d 70 75 74 | 69 6e 67 20 67 6f 6d 6f |s-comput|ing gomo|
|000031e0| 6b 75 2d 63 72 61 73 68 | 2d 67 61 6d 65 20 67 6f |ku-crash|-game go|
|000031f0| 6d 6f 6b 75 2d 67 61 6d | 65 2d 69 6e 2d 70 72 6f |moku-gam|e-in-pro|
|00003200| 67 72 65 73 73 20 67 6f | 6d 6f 6b 75 2d 70 72 6f |gress go|moku-pro|
|00003210| 6d 70 74 2d 66 6f 72 2d | 6f 74 68 65 72 2d 67 61 |mpt-for-|other-ga|
|00003220| 6d 65 20 6e 69 6c 20 73 | 63 6f 72 65 20 73 71 75 |me nil s|core squ|
|00003230| 61 72 65 20 67 6f 6d 6f | 6b 75 2d 70 6f 69 6e 74 |are gomo|ku-point|
|00003240| 2d 73 71 75 61 72 65 20 | 65 72 72 6f 72 20 22 59 |-square |error "Y|
|00003250| 6f 75 72 20 70 6f 69 6e | 74 20 69 73 20 6e 6f 74 |our poin|t is not|
|00003260| 20 6f 6e 20 61 20 73 71 | 75 61 72 65 2e 20 52 65 | on a sq|uare. Re|
|00003270| 74 72 79 20 21 22 20 67 | 6f 6d 6f 6b 75 2d 62 6f |try !" g|omoku-bo|
|00003280| 61 72 64 20 30 20 22 59 | 6f 75 72 20 70 6f 69 6e |ard 0 "Y|our poin|
|00003290| 74 20 69 73 20 6e 6f 74 | 20 6f 6e 20 61 20 66 72 |t is not| on a fr|
|000032a0| 65 65 20 73 71 75 61 72 | 65 2e 20 52 65 74 72 79 |ee squar|e. Retry|
|000032b0| 20 21 22 20 67 6f 6d 6f | 6b 75 2d 73 63 6f 72 65 | !" gomo|ku-score|
|000032c0| 2d 74 61 62 6c 65 20 67 | 6f 6d 6f 6b 75 2d 70 6c |-table g|omoku-pl|
|000032d0| 61 79 2d 6d 6f 76 65 20 | 31 20 67 6f 6d 6f 6b 75 |ay-move |1 gomoku|
|000032e0| 2d 6c 6f 6f 73 69 6e 67 | 2d 74 68 72 65 73 68 6f |-loosing|-thresho|
|000032f0| 6c 64 20 67 6f 6d 6f 6b | 75 2d 66 69 6e 64 2d 66 |ld gomok|u-find-f|
|00003300| 69 6c 6c 65 64 2d 71 74 | 75 70 6c 65 20 67 6f 6d |illed-qt|uple gom|
|00003310| 6f 6b 75 2d 63 72 6f 73 | 73 2d 77 69 6e 6e 69 6e |oku-cros|s-winnin|
|00003320| 67 2d 71 74 75 70 6c 65 | 20 67 6f 6d 6f 6b 75 2d |g-qtuple| gomoku-|
|00003330| 74 65 72 6d 69 6e 61 74 | 65 2d 67 61 6d 65 20 68 |terminat|e-game h|
|00003340| 75 6d 61 6e 2d 77 6f 6e | 20 67 6f 6d 6f 6b 75 2d |uman-won| gomoku-|
|00003350| 65 6d 61 63 73 2d 70 6c | 61 79 73 5d 20 34 20 22 |emacs-pl|ays] 4 "|
|00003360| 5c 0a 53 69 67 6e 61 6c | 20 74 6f 20 74 68 65 20 |\.Signal| to the |
|00003370| 47 6f 6d 6f 6b 75 20 70 | 72 6f 67 72 61 6d 20 74 |Gomoku p|rogram t|
|00003380| 68 61 74 20 79 6f 75 20 | 68 61 76 65 20 70 6c 61 |hat you |have pla|
|00003390| 79 65 64 2e 0a 59 6f 75 | 20 6d 75 73 74 20 68 61 |yed..You| must ha|
|000033a0| 76 65 20 70 75 74 20 74 | 68 65 20 63 75 72 73 6f |ve put t|he curso|
|000033b0| 72 20 6f 6e 20 74 68 65 | 20 73 71 75 61 72 65 20 |r on the| square |
|000033c0| 77 68 65 72 65 20 79 6f | 75 20 77 61 6e 74 20 74 |where yo|u want t|
|000033d0| 6f 20 70 6c 61 79 2e 0a | 49 66 20 74 68 65 20 67 |o play..|If the g|
|000033e0| 61 6d 65 20 69 73 20 66 | 69 6e 69 73 68 65 64 2c |ame is f|inished,|
|000033f0| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 72 65 | this co|mmand re|
|00003400| 71 75 65 73 74 73 20 66 | 6f 72 20 61 6e 6f 74 68 |quests f|or anoth|
|00003410| 65 72 20 67 61 6d 65 2e | 22 20 6e 69 6c 5d 29 0a |er game.|" nil]).|
|00003420| 28 66 73 65 74 20 27 67 | 6f 6d 6f 6b 75 2d 68 75 |(fset 'g|omoku-hu|
|00003430| 6d 61 6e 2d 74 61 6b 65 | 73 2d 62 61 63 6b 20 23 |man-take|s-back #|
|00003440| 5b 6e 69 6c 20 22 c0 20 | 88 09 ab 83 c2 20 87 0b |[nil ". |..... ..|
|00003450| ac 8b c4 c5 21 88 c6 c7 | 21 88 c8 20 87 0e 09 ca |....!...|!.. ....|
|00003460| 55 ab 84 c4 cb 21 87 c4 | cc 21 88 cd 16 0e 0e 09 |U....!..|.!......|
|00003470| 1e 0f 0e 0f 0e 09 55 ab | 85 d0 20 88 aa 74 29 d1 |......U.|.. ..t).|
|00003480| 20 87 22 20 5b 67 6f 6d | 6f 6b 75 2d 73 77 69 74 | ." [gom|oku-swit|
|00003490| 63 68 2d 74 6f 2d 77 69 | 6e 64 6f 77 20 67 6f 6d |ch-to-wi|ndow gom|
|000034a0| 6f 6b 75 2d 65 6d 61 63 | 73 2d 69 73 2d 63 6f 6d |oku-emac|s-is-com|
|000034b0| 70 75 74 69 6e 67 20 67 | 6f 6d 6f 6b 75 2d 63 72 |puting g|omoku-cr|
|000034c0| 61 73 68 2d 67 61 6d 65 | 20 67 6f 6d 6f 6b 75 2d |ash-game| gomoku-|
|000034d0| 67 61 6d 65 2d 69 6e 2d | 70 72 6f 67 72 65 73 73 |game-in-|progress|
|000034e0| 20 6d 65 73 73 61 67 65 | 20 22 54 6f 6f 20 6c 61 | message| "Too la|
|000034f0| 74 65 20 66 6f 72 20 74 | 61 6b 69 6e 67 20 62 61 |te for t|aking ba|
|00003500| 63 6b 2e 2e 2e 22 20 73 | 69 74 2d 66 6f 72 20 34 |ck..." s|it-for 4|
|00003510| 20 67 6f 6d 6f 6b 75 2d | 70 72 6f 6d 70 74 2d 66 | gomoku-|prompt-f|
|00003520| 6f 72 2d 6f 74 68 65 72 | 2d 67 61 6d 65 20 67 6f |or-other|-game go|
|00003530| 6d 6f 6b 75 2d 6e 75 6d | 62 65 72 2d 6f 66 2d 68 |moku-num|ber-of-h|
|00003540| 75 6d 61 6e 2d 6d 6f 76 | 65 73 20 30 20 22 59 6f |uman-mov|es 0 "Yo|
|00003550| 75 20 68 61 76 65 20 6e | 6f 74 20 70 6c 61 79 65 |u have n|ot playe|
|00003560| 64 20 79 65 74 2e 2e 2e | 20 59 6f 75 72 20 6d 6f |d yet...| Your mo|
|00003570| 76 65 20 3f 22 20 22 4f | 6e 65 20 6d 6f 6d 65 6e |ve ?" "O|ne momen|
|00003580| 74 2c 20 70 6c 65 61 73 | 65 2e 2e 2e 22 20 74 20 |t, pleas|e..." t |
|00003590| 67 6f 6d 6f 6b 75 2d 68 | 75 6d 61 6e 2d 74 6f 6f |gomoku-h|uman-too|
|000035a0| 6b 2d 62 61 63 6b 20 6e | 75 6d 62 65 72 20 67 6f |k-back n|umber go|
|000035b0| 6d 6f 6b 75 2d 74 61 6b | 65 2d 62 61 63 6b 20 67 |moku-tak|e-back g|
|000035c0| 6f 6d 6f 6b 75 2d 70 72 | 6f 6d 70 74 2d 66 6f 72 |omoku-pr|ompt-for|
|000035d0| 2d 6d 6f 76 65 5d 20 32 | 20 22 5c 0a 53 69 67 6e |-move] 2| "\.Sign|
|000035e0| 61 6c 20 74 6f 20 74 68 | 65 20 47 6f 6d 6f 6b 75 |al to th|e Gomoku|
|000035f0| 20 70 72 6f 67 72 61 6d | 20 74 68 61 74 20 79 6f | program| that yo|
|00003600| 75 20 77 69 73 68 20 74 | 6f 20 74 61 6b 65 20 62 |u wish t|o take b|
|00003610| 61 63 6b 20 79 6f 75 72 | 20 6c 61 73 74 20 6d 6f |ack your| last mo|
|00003620| 76 65 2e 22 20 6e 69 6c | 5d 29 0a 28 66 73 65 74 |ve." nil|]).(fset|
|00003630| 20 27 67 6f 6d 6f 6b 75 | 2d 68 75 6d 61 6e 2d 72 | 'gomoku|-human-r|
|00003640| 65 73 69 67 6e 73 20 23 | 5b 6e 69 6c 20 22 c0 20 |esigns #|[nil ". |
|00003650| 88 09 ab 83 c2 20 87 0b | ac 84 c4 c5 21 87 c6 c7 |..... ..|....!...|
|00003660| 21 ab 84 c8 c9 21 87 c6 | ca 21 ab 83 cb 20 87 c8 |!....!..|.!... ..|
|00003670| c9 21 87 22 20 5b 67 6f | 6d 6f 6b 75 2d 73 77 69 |.!." [go|moku-swi|
|00003680| 74 63 68 2d 74 6f 2d 77 | 69 6e 64 6f 77 20 67 6f |tch-to-w|indow go|
|00003690| 6d 6f 6b 75 2d 65 6d 61 | 63 73 2d 69 73 2d 63 6f |moku-ema|cs-is-co|
|000036a0| 6d 70 75 74 69 6e 67 20 | 67 6f 6d 6f 6b 75 2d 63 |mputing |gomoku-c|
|000036b0| 72 61 73 68 2d 67 61 6d | 65 20 67 6f 6d 6f 6b 75 |rash-gam|e gomoku|
|000036c0| 2d 67 61 6d 65 2d 69 6e | 2d 70 72 6f 67 72 65 73 |-game-in|-progres|
|000036d0| 73 20 6d 65 73 73 61 67 | 65 20 22 54 68 65 72 65 |s messag|e "There|
|000036e0| 20 69 73 20 6e 6f 20 67 | 61 6d 65 20 69 6e 20 70 | is no g|ame in p|
|000036f0| 72 6f 67 72 65 73 73 22 | 20 79 2d 6f 72 2d 6e 2d |rogress"| y-or-n-|
|00003700| 70 20 22 59 6f 75 20 6d | 65 61 6e 2c 20 79 6f 75 |p "You m|ean, you|
|00003710| 20 72 65 73 69 67 6e 20 | 22 20 67 6f 6d 6f 6b 75 | resign |" gomoku|
|00003720| 2d 74 65 72 6d 69 6e 61 | 74 65 2d 67 61 6d 65 20 |-termina|te-game |
|00003730| 68 75 6d 61 6e 2d 72 65 | 73 69 67 6e 65 64 20 22 |human-re|signed "|
|00003740| 59 6f 75 20 6d 65 61 6e | 2c 20 77 65 20 63 6f 6e |You mean|, we con|
|00003750| 74 69 6e 75 65 20 22 20 | 67 6f 6d 6f 6b 75 2d 70 |tinue " |gomoku-p|
|00003760| 72 6f 6d 70 74 2d 66 6f | 72 2d 6d 6f 76 65 5d 20 |rompt-fo|r-move] |
|00003770| 32 20 22 5c 0a 53 69 67 | 6e 61 6c 20 74 6f 20 74 |2 "\.Sig|nal to t|
|00003780| 68 65 20 47 6f 6d 6f 6b | 75 20 70 72 6f 67 72 61 |he Gomok|u progra|
|00003790| 6d 20 74 68 61 74 20 79 | 6f 75 20 6d 61 79 20 77 |m that y|ou may w|
|000037a0| 61 6e 74 20 74 6f 20 72 | 65 73 69 67 6e 2e 22 20 |ant to r|esign." |
|000037b0| 6e 69 6c 5d 29 0a 28 66 | 73 65 74 20 27 67 6f 6d |nil]).(f|set 'gom|
|000037c0| 6f 6b 75 2d 70 72 6f 6d | 70 74 2d 66 6f 72 2d 6d |oku-prom|pt-for-m|
|000037d0| 6f 76 65 20 23 5b 6e 69 | 6c 20 22 c0 09 c2 55 ab |ove #[ni|l "...U.|
|000037e0| 83 c3 aa 81 c4 21 88 8a | c5 20 71 29 87 22 20 5b |.....!..|. q)." [|
|000037f0| 6d 65 73 73 61 67 65 20 | 67 6f 6d 6f 6b 75 2d 6e |message |gomoku-n|
|00003800| 75 6d 62 65 72 2d 6f 66 | 2d 68 75 6d 61 6e 2d 6d |umber-of|-human-m|
|00003810| 6f 76 65 73 20 30 20 22 | 59 6f 75 72 20 6d 6f 76 |oves 0 "|Your mov|
|00003820| 65 20 3f 20 28 6d 6f 76 | 65 20 74 6f 20 61 20 66 |e ? (mov|e to a f|
|00003830| 72 65 65 20 73 71 75 61 | 72 65 20 61 6e 64 20 68 |ree squa|re and h|
|00003840| 69 74 20 58 2c 20 52 45 | 54 20 2e 2e 2e 29 22 20 |it X, RE|T ...)" |
|00003850| 22 59 6f 75 72 20 6d 6f | 76 65 20 3f 22 20 6f 74 |"Your mo|ve ?" ot|
|00003860| 68 65 72 2d 62 75 66 66 | 65 72 5d 20 33 20 22 5c |her-buff|er] 3 "\|
|00003870| 0a 44 69 73 70 6c 61 79 | 20 61 20 6d 65 73 73 61 |.Display| a messa|
|00003880| 67 65 20 61 73 6b 69 6e | 67 20 66 6f 72 20 48 75 |ge askin|g for Hu|
|00003890| 6d 61 6e 27 73 20 6d 6f | 76 65 2e 22 5d 29 0a 28 |man's mo|ve."]).(|
|000038a0| 66 73 65 74 20 27 67 6f | 6d 6f 6b 75 2d 70 72 6f |fset 'go|moku-pro|
|000038b0| 6d 70 74 2d 66 6f 72 2d | 6f 74 68 65 72 2d 67 61 |mpt-for-|other-ga|
|000038c0| 6d 65 20 23 5b 6e 69 6c | 20 22 c0 c1 21 ab 85 c2 |me #[nil| "..!...|
|000038d0| 0b 0c 5c 22 87 c5 c6 21 | 87 22 20 5b 79 2d 6f 72 |..\"...!|." [y-or|
|000038e0| 2d 6e 2d 70 20 22 41 6e | 6f 74 68 65 72 20 67 61 |-n-p "An|other ga|
|000038f0| 6d 65 20 22 20 67 6f 6d | 6f 6b 75 20 67 6f 6d 6f |me " gom|oku gomo|
|00003900| 6b 75 2d 62 6f 61 72 64 | 2d 77 69 64 74 68 20 67 |ku-board|-width g|
|00003910| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 2d 68 65 69 67 |omoku-bo|ard-heig|
|00003920| 68 74 20 6d 65 73 73 61 | 67 65 20 22 43 68 69 63 |ht messa|ge "Chic|
|00003930| 6b 65 6e 20 21 22 5d 20 | 33 20 22 5c 0a 41 73 6b |ken !"] |3 "\.Ask|
|00003940| 20 66 6f 72 20 61 6e 6f | 74 68 65 72 20 67 61 6d | for ano|ther gam|
|00003950| 65 2c 20 61 6e 64 20 73 | 74 61 72 74 20 69 74 2e |e, and s|tart it.|
|00003960| 22 5d 29 0a 28 66 73 65 | 74 20 27 67 6f 6d 6f 6b |"]).(fse|t 'gomok|
|00003970| 75 2d 6f 66 66 65 72 2d | 61 2d 64 72 61 77 20 23 |u-offer-|a-draw #|
|00003980| 5b 6e 69 6c 20 22 c0 c1 | 21 ae 83 c2 89 13 87 22 |[nil "..|!......"|
|00003990| 20 5b 79 2d 6f 72 2d 6e | 2d 70 20 22 49 20 6f 66 | [y-or-n|-p "I of|
|000039a0| 66 65 72 20 79 6f 75 20 | 61 20 64 72 61 77 2e 20 |fer you |a draw. |
|000039b0| 44 6f 20 79 6f 75 20 61 | 63 63 65 70 74 20 69 74 |Do you a|ccept it|
|000039c0| 20 22 20 74 20 67 6f 6d | 6f 6b 75 2d 68 75 6d 61 | " t gom|oku-huma|
|000039d0| 6e 2d 72 65 66 75 73 65 | 64 2d 64 72 61 77 5d 20 |n-refuse|d-draw] |
|000039e0| 32 20 22 5c 0a 4f 66 66 | 65 72 20 61 20 64 72 61 |2 "\.Off|er a dra|
|000039f0| 77 20 61 6e 64 20 72 65 | 74 75 72 6e 20 54 20 69 |w and re|turn T i|
|00003a00| 66 20 48 75 6d 61 6e 20 | 61 63 63 65 70 74 65 64 |f Human |accepted|
|00003a10| 20 69 74 2e 22 5d 29 0a | 28 64 65 66 63 6f 6e 73 | it."]).|(defcons|
|00003a20| 74 20 67 6f 6d 6f 6b 75 | 2d 73 71 75 61 72 65 2d |t gomoku|-square-|
|00003a30| 77 69 64 74 68 20 34 20 | 22 5c 0a 2a 48 6f 72 69 |width 4 |"\.*Hori|
|00003a40| 7a 6f 6e 74 61 6c 20 73 | 70 61 63 69 6e 67 20 62 |zontal s|pacing b|
|00003a50| 65 74 77 65 65 6e 20 73 | 71 75 61 72 65 73 20 6f |etween s|quares o|
|00003a60| 6e 20 74 68 65 20 47 6f | 6d 6f 6b 75 20 62 6f 61 |n the Go|moku boa|
|00003a70| 72 64 2e 22 29 0a 28 64 | 65 66 63 6f 6e 73 74 20 |rd.").(d|efconst |
|00003a80| 67 6f 6d 6f 6b 75 2d 73 | 71 75 61 72 65 2d 68 65 |gomoku-s|quare-he|
|00003a90| 69 67 68 74 20 32 20 22 | 5c 0a 2a 56 65 72 74 69 |ight 2 "|\.*Verti|
|00003aa0| 63 61 6c 20 73 70 61 63 | 69 6e 67 20 62 65 74 77 |cal spac|ing betw|
|00003ab0| 65 65 6e 20 73 71 75 61 | 72 65 73 20 6f 6e 20 74 |een squa|res on t|
|00003ac0| 68 65 20 47 6f 6d 6f 6b | 75 20 62 6f 61 72 64 2e |he Gomok|u board.|
|00003ad0| 22 29 0a 28 64 65 66 63 | 6f 6e 73 74 20 67 6f 6d |").(defc|onst gom|
|00003ae0| 6f 6b 75 2d 78 2d 6f 66 | 66 73 65 74 20 33 20 22 |oku-x-of|fset 3 "|
|00003af0| 5c 0a 2a 4e 75 6d 62 65 | 72 20 6f 66 20 63 6f 6c |\.*Numbe|r of col|
|00003b00| 75 6d 6e 73 20 62 65 74 | 77 65 65 6e 20 74 68 65 |umns bet|ween the|
|00003b10| 20 47 6f 6d 6f 6b 75 20 | 62 6f 61 72 64 20 61 6e | Gomoku |board an|
|00003b20| 64 20 74 68 65 20 73 69 | 64 65 20 6f 66 20 74 68 |d the si|de of th|
|00003b30| 65 20 77 69 6e 64 6f 77 | 2e 22 29 0a 28 64 65 66 |e window|.").(def|
|00003b40| 63 6f 6e 73 74 20 67 6f | 6d 6f 6b 75 2d 79 2d 6f |const go|moku-y-o|
|00003b50| 66 66 73 65 74 20 31 20 | 22 5c 0a 2a 4e 75 6d 62 |ffset 1 |"\.*Numb|
|00003b60| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 62 65 74 77 |er of li|nes betw|
|00003b70| 65 65 6e 20 74 68 65 20 | 47 6f 6d 6f 6b 75 20 62 |een the |Gomoku b|
|00003b80| 6f 61 72 64 20 61 6e 64 | 20 74 68 65 20 74 6f 70 |oard and| the top|
|00003b90| 20 6f 66 20 74 68 65 20 | 77 69 6e 64 6f 77 2e 22 | of the |window."|
|00003ba0| 29 0a 28 66 73 65 74 20 | 27 67 6f 6d 6f 6b 75 2d |).(fset |'gomoku-|
|00003bb0| 6d 61 78 2d 77 69 64 74 | 68 20 23 5b 6e 69 6c 20 |max-widt|h #[nil |
|00003bc0| 22 c0 c1 20 21 5c 6e 5a | 5c 6e 5a c3 5a 0c a5 54 |".. !\nZ|\nZ.Z..T|
|00003bd0| 87 22 20 5b 77 69 6e 64 | 6f 77 2d 77 69 64 74 68 |." [wind|ow-width|
|00003be0| 20 73 65 6c 65 63 74 65 | 64 2d 77 69 6e 64 6f 77 | selecte|d-window|
|00003bf0| 20 67 6f 6d 6f 6b 75 2d | 78 2d 6f 66 66 73 65 74 | gomoku-|x-offset|
|00003c00| 20 31 20 67 6f 6d 6f 6b | 75 2d 73 71 75 61 72 65 | 1 gomok|u-square|
|00003c10| 2d 77 69 64 74 68 5d 20 | 32 20 22 5c 0a 4c 61 72 |-width] |2 "\.Lar|
|00003c20| 67 65 73 74 20 70 6f 73 | 73 69 62 6c 65 20 62 6f |gest pos|sible bo|
|00003c30| 61 72 64 20 77 69 64 74 | 68 20 66 6f 72 20 74 68 |ard widt|h for th|
|00003c40| 65 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |e curren|t window|
|00003c50| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 67 6f 6d 6f |."]).(fs|et 'gomo|
|00003c60| 6b 75 2d 6d 61 78 2d 68 | 65 69 67 68 74 20 23 5b |ku-max-h|eight #[|
|00003c70| 6e 69 6c 20 22 c0 c1 20 | 21 5c 6e 5a 5c 6e 5a c3 |nil ".. |!\nZ\nZ.|
|00003c80| 5a 0c a5 54 87 22 20 5b | 77 69 6e 64 6f 77 2d 68 |Z..T." [|window-h|
|00003c90| 65 69 67 68 74 20 73 65 | 6c 65 63 74 65 64 2d 77 |eight se|lected-w|
|00003ca0| 69 6e 64 6f 77 20 67 6f | 6d 6f 6b 75 2d 79 2d 6f |indow go|moku-y-o|
|00003cb0| 66 66 73 65 74 20 32 20 | 67 6f 6d 6f 6b 75 2d 73 |ffset 2 |gomoku-s|
|00003cc0| 71 75 61 72 65 2d 68 65 | 69 67 68 74 5d 20 32 20 |quare-he|ight] 2 |
|00003cd0| 22 5c 0a 4c 61 72 67 65 | 73 74 20 70 6f 73 73 69 |"\.Large|st possi|
|00003ce0| 62 6c 65 20 62 6f 61 72 | 64 20 68 65 69 67 68 74 |ble boar|d height|
|00003cf0| 20 66 6f 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 | for the| current|
|00003d00| 20 77 69 6e 64 6f 77 2e | 22 5d 29 0a 28 66 73 65 | window.|"]).(fse|
|00003d10| 74 20 27 67 6f 6d 6f 6b | 75 2d 70 6f 69 6e 74 2d |t 'gomok|u-point-|
|00003d20| 78 20 23 5b 6e 69 6c 20 | 22 69 08 5a 89 19 c2 59 |x #[nil |"i.Z...Y|
|00003d30| ad 92 09 0b a6 c2 55 ad | 8b 09 0b a5 54 89 11 0c |......U.|....T...|
|00003d40| 58 ad 81 09 29 87 22 20 | 5b 67 6f 6d 6f 6b 75 2d |X...)." |[gomoku-|
|00003d50| 78 2d 6f 66 66 73 65 74 | 20 63 6f 6c 20 30 20 67 |x-offset| col 0 g|
|00003d60| 6f 6d 6f 6b 75 2d 73 71 | 75 61 72 65 2d 77 69 64 |omoku-sq|uare-wid|
|00003d70| 74 68 20 67 6f 6d 6f 6b | 75 2d 62 6f 61 72 64 2d |th gomok|u-board-|
|00003d80| 77 69 64 74 68 5d 20 33 | 20 22 5c 0a 52 65 74 75 |width] 3| "\.Retu|
|00003d90| 72 6e 20 74 68 65 20 62 | 6f 61 72 64 20 63 6f 6c |rn the b|oard col|
|00003da0| 75 6d 6e 20 77 68 65 72 | 65 20 70 6f 69 6e 74 20 |umn wher|e point |
|00003db0| 69 73 2c 20 6f 72 20 6e | 69 6c 20 69 66 20 69 74 |is, or n|il if it|
|00003dc0| 20 69 73 20 6e 6f 74 20 | 61 20 62 6f 61 72 64 20 | is not |a board |
|00003dd0| 63 6f 6c 75 6d 6e 2e 22 | 5d 29 0a 28 66 73 65 74 |column."|]).(fset|
|00003de0| 20 27 67 6f 6d 6f 6b 75 | 2d 70 6f 69 6e 74 2d 79 | 'gomoku|-point-y|
|00003df0| 20 23 5b 6e 69 6c 20 22 | c0 c1 60 5c 22 5c 6e 5a | #[nil "|..`\"\nZ|
|00003e00| c1 5a 89 1b c4 59 ad 93 | 0b 0d a6 c4 55 ad 8c 0b |.Z...Y..|....U...|
|00003e10| 0d a5 54 89 13 0e 06 58 | ad 81 0b 29 87 22 20 5b |..T....X|...)." [|
|00003e20| 63 6f 75 6e 74 2d 6c 69 | 6e 65 73 20 31 20 67 6f |count-li|nes 1 go|
|00003e30| 6d 6f 6b 75 2d 79 2d 6f | 66 66 73 65 74 20 72 6f |moku-y-o|ffset ro|
|00003e40| 77 20 30 20 67 6f 6d 6f | 6b 75 2d 73 71 75 61 72 |w 0 gomo|ku-squar|
|00003e50| 65 2d 68 65 69 67 68 74 | 20 67 6f 6d 6f 6b 75 2d |e-height| gomoku-|
|00003e60| 62 6f 61 72 64 2d 68 65 | 69 67 68 74 5d 20 34 20 |board-he|ight] 4 |
|00003e70| 22 5c 0a 52 65 74 75 72 | 6e 20 74 68 65 20 62 6f |"\.Retur|n the bo|
|00003e80| 61 72 64 20 72 6f 77 20 | 77 68 65 72 65 20 70 6f |ard row |where po|
|00003e90| 69 6e 74 20 69 73 2c 20 | 6f 72 20 6e 69 6c 20 69 |int is, |or nil i|
|00003ea0| 66 20 69 74 20 69 73 20 | 6e 6f 74 20 61 20 62 6f |f it is |not a bo|
|00003eb0| 61 72 64 20 72 6f 77 2e | 22 5d 29 0a 28 66 73 65 |ard row.|"]).(fse|
|00003ec0| 74 20 27 67 6f 6d 6f 6b | 75 2d 70 6f 69 6e 74 2d |t 'gomok|u-point-|
|00003ed0| 73 71 75 61 72 65 20 23 | 5b 6e 69 6c 20 22 c0 89 |square #|[nil "..|
|00003ee0| 19 1a c3 20 89 12 ad 8a | c4 20 89 11 ad 84 c5 5c |... ....|. .....\|
|00003ef0| 6e 09 5c 22 2a 87 22 20 | 5b 6e 69 6c 20 79 20 78 |n.\"*." |[nil y x|
|00003f00| 20 67 6f 6d 6f 6b 75 2d | 70 6f 69 6e 74 2d 78 20 | gomoku-|point-x |
|00003f10| 67 6f 6d 6f 6b 75 2d 70 | 6f 69 6e 74 2d 79 20 67 |gomoku-p|oint-y g|
|00003f20| 6f 6d 6f 6b 75 2d 78 79 | 2d 74 6f 2d 69 6e 64 65 |omoku-xy|-to-inde|
|00003f30| 78 5d 20 33 20 22 5c 0a | 52 65 74 75 72 6e 20 74 |x] 3 "\.|Return t|
|00003f40| 68 65 20 69 6e 64 65 78 | 20 6f 66 20 74 68 65 20 |he index| of the |
|00003f50| 73 71 75 61 72 65 20 70 | 6f 69 6e 74 20 69 73 20 |square p|oint is |
|00003f60| 6f 6e 2c 20 6f 72 20 6e | 69 6c 20 69 66 20 6e 6f |on, or n|il if no|
|00003f70| 74 20 6f 6e 20 74 68 65 | 20 62 6f 61 72 64 2e 22 |t on the| board."|
|00003f80| 5d 29 0a 28 66 73 65 74 | 20 27 67 6f 6d 6f 6b 75 |]).(fset| 'gomoku|
|00003f90| 2d 67 6f 74 6f 2d 73 71 | 75 61 72 65 20 23 5b 28 |-goto-sq|uare #[(|
|00003fa0| 69 6e 64 65 78 29 20 22 | c0 c1 5c 6e 21 c3 5c 6e |index) "|..\n!.\n|
|00003fb0| 21 5c 22 87 22 20 5b 67 | 6f 6d 6f 6b 75 2d 67 6f |!\"." [g|omoku-go|
|00003fc0| 74 6f 2d 78 79 20 67 6f | 6d 6f 6b 75 2d 69 6e 64 |to-xy go|moku-ind|
|00003fd0| 65 78 2d 74 6f 2d 78 20 | 69 6e 64 65 78 20 67 6f |ex-to-x |index go|
|00003fe0| 6d 6f 6b 75 2d 69 6e 64 | 65 78 2d 74 6f 2d 79 5d |moku-ind|ex-to-y]|
|00003ff0| 20 34 20 22 5c 0a 4d 6f | 76 65 20 70 6f 69 6e 74 | 4 "\.Mo|ve point|
|00004000| 20 74 6f 20 73 71 75 61 | 72 65 20 6e 75 6d 62 65 | to squa|re numbe|
|00004010| 72 20 49 4e 44 45 58 2e | 22 5d 29 0a 28 66 73 65 |r INDEX.|"]).(fse|
|00004020| 74 20 27 67 6f 6d 6f 6b | 75 2d 67 6f 74 6f 2d 78 |t 'gomok|u-goto-x|
|00004030| 79 20 23 5b 28 78 20 79 | 29 20 22 c0 09 5c 6e 0b |y #[(x y|) "..\n.|
|00004040| 53 5f c4 5c 5c 5c 5c 21 | 88 c5 0e 06 0e 07 0e 08 |S_.\\\\!|........|
|00004050| 53 5f 5c 5c 21 87 22 20 | 5b 67 6f 74 6f 2d 6c 69 |S_\\!." |[goto-li|
|00004060| 6e 65 20 67 6f 6d 6f 6b | 75 2d 79 2d 6f 66 66 73 |ne gomok|u-y-offs|
|00004070| 65 74 20 67 6f 6d 6f 6b | 75 2d 73 71 75 61 72 65 |et gomok|u-square|
|00004080| 2d 68 65 69 67 68 74 20 | 79 20 31 20 6d 6f 76 65 |-height |y 1 move|
|00004090| 2d 74 6f 2d 63 6f 6c 75 | 6d 6e 20 67 6f 6d 6f 6b |-to-colu|mn gomok|
|000040a0| 75 2d 78 2d 6f 66 66 73 | 65 74 20 67 6f 6d 6f 6b |u-x-offs|et gomok|
|000040b0| 75 2d 73 71 75 61 72 65 | 2d 77 69 64 74 68 20 78 |u-square|-width x|
|000040c0| 5d 20 34 20 22 5c 0a 4d | 6f 76 65 20 70 6f 69 6e |] 4 "\.M|ove poin|
|000040d0| 74 20 74 6f 20 73 71 75 | 61 72 65 20 61 74 20 58 |t to squ|are at X|
|000040e0| 2c 20 59 20 63 6f 6f 72 | 64 73 2e 22 5d 29 0a 28 |, Y coor|ds."]).(|
|000040f0| 66 73 65 74 20 27 67 6f | 6d 6f 6b 75 2d 70 6c 6f |fset 'go|moku-plo|
|00004100| 74 2d 73 71 75 61 72 65 | 20 23 5b 28 73 71 75 61 |t-square| #[(squa|
|00004110| 72 65 20 76 61 6c 75 65 | 29 20 22 c0 09 21 88 c2 |re value|) "..!..|
|00004120| 0b c4 55 ab 83 c5 aa 89 | 0b c6 55 ab 83 c7 aa 81 |..U.....|..U.....|
|00004130| c8 21 88 c9 ca 21 87 22 | 20 5b 67 6f 6d 6f 6b 75 |.!...!."| [gomoku|
|00004140| 2d 67 6f 74 6f 2d 73 71 | 75 61 72 65 20 73 71 75 |-goto-sq|uare squ|
|00004150| 61 72 65 20 67 6f 6d 6f | 6b 75 2d 70 75 74 2d 63 |are gomo|ku-put-c|
|00004160| 68 61 72 20 76 61 6c 75 | 65 20 31 20 38 38 20 36 |har valu|e 1 88 6|
|00004170| 20 37 39 20 34 36 20 73 | 69 74 2d 66 6f 72 20 30 | 79 46 s|it-for 0|
|00004180| 5d 20 33 20 22 5c 0a 44 | 72 61 77 20 27 58 27 2c |] 3 "\.D|raw 'X',|
|00004190| 20 27 4f 27 20 6f 72 20 | 27 2e 27 20 6f 6e 20 53 | 'O' or |'.' on S|
|000041a0| 51 55 41 52 45 20 28 64 | 65 70 65 6e 64 69 6e 67 |QUARE (d|epending|
|000041b0| 20 6f 6e 20 56 41 4c 55 | 45 29 2c 20 6c 65 61 76 | on VALU|E), leav|
|000041c0| 65 20 70 6f 69 6e 74 20 | 74 68 65 72 65 2e 22 5d |e point |there."]|
|000041d0| 29 0a 28 66 73 65 74 20 | 27 67 6f 6d 6f 6b 75 2d |).(fset |'gomoku-|
|000041e0| 70 75 74 2d 63 68 61 72 | 20 23 5b 28 63 68 61 72 |put-char| #[(char|
|000041f0| 29 20 22 c0 19 5c 6e 63 | 88 c3 c4 21 88 c5 c4 21 |) "..\nc|...!...!|
|00004200| 29 87 22 20 5b 74 20 69 | 6e 68 69 62 69 74 2d 72 |)." [t i|nhibit-r|
|00004210| 65 61 64 2d 6f 6e 6c 79 | 20 63 68 61 72 20 64 65 |ead-only| char de|
|00004220| 6c 65 74 65 2d 63 68 61 | 72 20 31 20 62 61 63 6b |lete-cha|r 1 back|
|00004230| 77 61 72 64 2d 63 68 61 | 72 5d 20 32 20 22 5c 0a |ward-cha|r] 2 "\.|
|00004240| 44 72 61 77 20 43 48 41 | 52 20 6f 6e 20 74 68 65 |Draw CHA|R on the|
|00004250| 20 47 6f 6d 6f 6b 75 20 | 73 63 72 65 65 6e 2e 22 | Gomoku |screen."|
|00004260| 5d 29 0a 28 66 73 65 74 | 20 27 67 6f 6d 6f 6b 75 |]).(fset| 'gomoku|
|00004270| 2d 69 6e 69 74 2d 64 69 | 73 70 6c 61 79 20 23 5b |-init-di|splay #[|
|00004280| 28 6e 20 6d 29 20 22 c0 | 70 21 88 c1 1a c3 20 88 |(n m) ".|p!.... .|
|00004290| c4 89 89 89 1d 1e 06 1e | 07 1e 08 c9 0e 5c 6e 53 |........|.....\nS|
|000042a0| cb 5c 22 cc 50 16 08 cd | ce cf 0e 10 53 0e 08 5c |.\".P...|....S..\|
|000042b0| 22 5c 22 16 08 c9 0e 11 | cb 5c 22 cc 0e 08 d2 52 |"\".....|.\"....R|
|000042c0| 16 08 c9 0e 11 0e 10 53 | 0e 5c 6e 5f d3 5c 5c 5c |.......S|.\n_.\\\|
|000042d0| 5c cb 5c 22 89 16 07 d2 | 50 16 07 cd ce cf 0e 14 |\.\"....|P.......|
|000042e0| 53 0e 07 5c 22 5c 22 89 | 16 06 0e 08 50 16 06 cd |S..\"\".|....P...|
|000042f0| ce cf 0e 15 53 0e 06 5c | 22 5c 22 16 06 cd ce cf |....S..\|"\".....|
|00004300| 0e 16 0e 07 5c 22 5c 22 | 89 15 0e 08 0e 06 b1 03 |....\"\"|........|
|00004310| 88 2c d7 0e 10 54 d8 a5 | 0e 15 54 d8 a5 5c 22 88 |.,...T..|..T..\".|
|00004320| d9 da 21 29 87 22 20 5b | 62 75 66 66 65 72 2d 64 |..!)." [|buffer-d|
|00004330| 69 73 61 62 6c 65 2d 75 | 6e 64 6f 20 74 20 69 6e |isable-u|ndo t in|
|00004340| 68 69 62 69 74 2d 72 65 | 61 64 2d 6f 6e 6c 79 20 |hibit-re|ad-only |
|00004350| 65 72 61 73 65 2d 62 75 | 66 66 65 72 20 6e 69 6c |erase-bu|ffer nil|
|00004360| 20 73 74 72 69 6e 67 34 | 20 73 74 72 69 6e 67 33 | string4| string3|
|00004370| 20 73 74 72 69 6e 67 32 | 20 73 74 72 69 6e 67 31 | string2| string1|
|00004380| 20 6d 61 6b 65 2d 73 74 | 72 69 6e 67 20 67 6f 6d | make-st|ring gom|
|00004390| 6f 6b 75 2d 73 71 75 61 | 72 65 2d 77 69 64 74 68 |oku-squa|re-width|
|000043a0| 20 33 32 20 22 2e 22 20 | 61 70 70 6c 79 20 63 6f | 32 "." |apply co|
|000043b0| 6e 63 61 74 20 6d 61 6b | 65 2d 6c 69 73 74 20 6e |ncat mak|e-list n|
|000043c0| 20 67 6f 6d 6f 6b 75 2d | 78 2d 6f 66 66 73 65 74 | gomoku-|x-offset|
|000043d0| 20 22 5c 6e 22 20 31 20 | 67 6f 6d 6f 6b 75 2d 73 | "\n" 1 |gomoku-s|
|000043e0| 71 75 61 72 65 2d 68 65 | 69 67 68 74 20 6d 20 67 |quare-he|ight m g|
|000043f0| 6f 6d 6f 6b 75 2d 79 2d | 6f 66 66 73 65 74 20 67 |omoku-y-|offset g|
|00004400| 6f 6d 6f 6b 75 2d 67 6f | 74 6f 2d 78 79 20 32 20 |omoku-go|to-xy 2 |
|00004410| 73 69 74 2d 66 6f 72 20 | 30 5d 20 36 20 22 5c 0a |sit-for |0] 6 "\.|
|00004420| 44 69 73 70 6c 61 79 20 | 61 6e 20 4e 20 62 79 20 |Display |an N by |
|00004430| 4d 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 2e 22 |M Gomoku| board."|
|00004440| 5d 29 0a 28 66 73 65 74 | 20 27 67 6f 6d 6f 6b 75 |]).(fset| 'gomoku|
|00004450| 2d 64 69 73 70 6c 61 79 | 2d 73 74 61 74 69 73 74 |-display|-statist|
|00004460| 69 63 73 20 23 5b 6e 69 | 6c 20 22 08 c1 55 ac 88 |ics #[ni|l "..U..|
|00004470| c2 c3 0c 0d 08 24 aa a0 | 0d c1 55 ac 87 c2 c6 0c |.....$..|..U.....|
|00004480| 0d 23 aa 94 0c c1 55 ab | 83 c7 aa 8c 0c c8 55 ab |.#....U.|......U.|
|00004490| 83 c9 aa 84 c2 ca 0c 5c | 22 16 0b cc cd 20 21 87 |.......\|".... !.|
|000044a0| 22 20 5b 67 6f 6d 6f 6b | 75 2d 6e 75 6d 62 65 72 |" [gomok|u-number|
|000044b0| 2d 6f 66 2d 64 72 61 77 | 73 20 30 20 66 6f 72 6d |-of-draw|s 0 form|
|000044c0| 61 74 20 22 3a 20 57 6f | 6e 20 25 64 2c 20 6c 6f |at ": Wo|n %d, lo|
|000044d0| 73 74 20 25 64 2c 20 64 | 72 65 77 20 25 64 22 20 |st %d, d|rew %d" |
|000044e0| 67 6f 6d 6f 6b 75 2d 6e | 75 6d 62 65 72 2d 6f 66 |gomoku-n|umber-of|
|000044f0| 2d 77 69 6e 73 20 67 6f | 6d 6f 6b 75 2d 6e 75 6d |-wins go|moku-num|
|00004500| 62 65 72 2d 6f 66 2d 6c | 6f 73 73 65 73 20 22 3a |ber-of-l|osses ":|
|00004510| 20 57 6f 6e 20 25 64 2c | 20 6c 6f 73 74 20 25 64 | Won %d,| lost %d|
|00004520| 22 20 22 22 20 31 20 22 | 3a 20 41 6c 72 65 61 64 |" "" 1 "|: Alread|
|00004530| 79 20 77 6f 6e 20 6f 6e | 65 22 20 22 3a 20 57 6f |y won on|e" ": Wo|
|00004540| 6e 20 25 64 20 69 6e 20 | 61 20 72 6f 77 22 20 6d |n %d in |a row" m|
|00004550| 6f 64 65 2d 6c 69 6e 65 | 2d 70 72 6f 63 65 73 73 |ode-line|-process|
|00004560| 20 73 65 74 2d 62 75 66 | 66 65 72 2d 6d 6f 64 69 | set-buf|fer-modi|
|00004570| 66 69 65 64 2d 70 20 62 | 75 66 66 65 72 2d 6d 6f |fied-p b|uffer-mo|
|00004580| 64 69 66 69 65 64 2d 70 | 5d 20 35 20 22 5c 0a 4f |dified-p|] 5 "\.O|
|00004590| 62 6e 6f 78 69 6f 75 73 | 6c 79 20 64 69 73 70 6c |bnoxious|ly displ|
|000045a0| 61 79 20 73 6f 6d 65 20 | 73 74 61 74 69 73 74 69 |ay some |statisti|
|000045b0| 63 73 20 61 62 6f 75 74 | 20 70 72 65 76 69 6f 75 |cs about| previou|
|000045c0| 73 20 67 61 6d 65 73 20 | 69 6e 20 6d 6f 64 65 20 |s games |in mode |
|000045d0| 6c 69 6e 65 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |line."])|.(fset '|
|000045e0| 67 6f 6d 6f 6b 75 2d 73 | 77 69 74 63 68 2d 74 6f |gomoku-s|witch-to|
|000045f0| 2d 77 69 6e 64 6f 77 20 | 23 5b 6e 69 6c 20 22 c0 |-window |#[nil ".|
|00004600| c1 21 89 1a ab 85 c3 5c | 6e 21 aa 8c 0c ab 83 c5 |.!.....\|n!......|
|00004610| 20 88 c3 c1 21 88 c6 20 | 29 87 22 20 5b 67 65 74 | ...!.. |)." [get|
|00004620| 2d 62 75 66 66 65 72 20 | 22 2a 47 6f 6d 6f 6b 75 |-buffer |"*Gomoku|
|00004630| 2a 22 20 62 75 66 66 20 | 73 77 69 74 63 68 2d 74 |*" buff |switch-t|
|00004640| 6f 2d 62 75 66 66 65 72 | 20 67 6f 6d 6f 6b 75 2d |o-buffer| gomoku-|
|00004650| 67 61 6d 65 2d 69 6e 2d | 70 72 6f 67 72 65 73 73 |game-in-|progress|
|00004660| 20 67 6f 6d 6f 6b 75 2d | 63 72 61 73 68 2d 67 61 | gomoku-|crash-ga|
|00004670| 6d 65 20 67 6f 6d 6f 6b | 75 2d 6d 6f 64 65 5d 20 |me gomok|u-mode] |
|00004680| 33 20 22 5c 0a 46 69 6e | 64 20 6f 72 20 63 72 65 |3 "\.Fin|d or cre|
|00004690| 61 74 65 20 74 68 65 20 | 47 6f 6d 6f 6b 75 20 62 |ate the |Gomoku b|
|000046a0| 75 66 66 65 72 2c 20 61 | 6e 64 20 64 69 73 70 6c |uffer, a|nd displ|
|000046b0| 61 79 20 69 74 2e 22 20 | 6e 69 6c 5d 29 0a 28 64 |ay it." |nil]).(d|
|000046c0| 65 66 76 61 72 20 67 6f | 6d 6f 6b 75 2d 77 69 6e |efvar go|moku-win|
|000046d0| 6e 69 6e 67 2d 71 74 75 | 70 6c 65 2d 62 65 67 20 |ning-qtu|ple-beg |
|000046e0| 6e 69 6c 20 22 5c 0a 46 | 69 72 73 74 20 73 71 75 |nil "\.F|irst squ|
|000046f0| 61 72 65 20 6f 66 20 74 | 68 65 20 77 69 6e 6e 69 |are of t|he winni|
|00004700| 6e 67 20 71 74 75 70 6c | 65 2e 22 29 0a 28 64 65 |ng qtupl|e.").(de|
|00004710| 66 76 61 72 20 67 6f 6d | 6f 6b 75 2d 77 69 6e 6e |fvar gom|oku-winn|
|00004720| 69 6e 67 2d 71 74 75 70 | 6c 65 2d 65 6e 64 20 6e |ing-qtup|le-end n|
|00004730| 69 6c 20 22 5c 0a 4c 61 | 73 74 20 73 71 75 61 72 |il "\.La|st squar|
|00004740| 65 20 6f 66 20 74 68 65 | 20 77 69 6e 6e 69 6e 67 |e of the| winning|
|00004750| 20 71 74 75 70 6c 65 2e | 22 29 0a 28 64 65 66 76 | qtuple.|").(defv|
|00004760| 61 72 20 67 6f 6d 6f 6b | 75 2d 77 69 6e 6e 69 6e |ar gomok|u-winnin|
|00004770| 67 2d 71 74 75 70 6c 65 | 2d 64 78 20 6e 69 6c 20 |g-qtuple|-dx nil |
|00004780| 22 5c 0a 44 69 72 65 63 | 74 69 6f 6e 20 6f 66 20 |"\.Direc|tion of |
|00004790| 74 68 65 20 77 69 6e 6e | 69 6e 67 20 71 74 75 70 |the winn|ing qtup|
|000047a0| 6c 65 20 28 61 6c 6f 6e | 67 20 74 68 65 20 58 20 |le (alon|g the X |
|000047b0| 61 78 69 73 29 2e 22 29 | 0a 28 64 65 66 76 61 72 |axis).")|.(defvar|
|000047c0| 20 67 6f 6d 6f 6b 75 2d | 77 69 6e 6e 69 6e 67 2d | gomoku-|winning-|
|000047d0| 71 74 75 70 6c 65 2d 64 | 79 20 6e 69 6c 20 22 5c |qtuple-d|y nil "\|
|000047e0| 0a 44 69 72 65 63 74 69 | 6f 6e 20 6f 66 20 74 68 |.Directi|on of th|
|000047f0| 65 20 77 69 6e 6e 69 6e | 67 20 71 74 75 70 6c 65 |e winnin|g qtuple|
|00004800| 20 28 61 6c 6f 6e 67 20 | 74 68 65 20 59 20 61 78 | (along |the Y ax|
|00004810| 69 73 29 2e 22 29 0a 28 | 66 73 65 74 20 27 67 6f |is).").(|fset 'go|
|00004820| 6d 6f 6b 75 2d 66 69 6e | 64 2d 66 69 6c 6c 65 64 |moku-fin|d-filled|
|00004830| 2d 71 74 75 70 6c 65 20 | 23 5b 28 73 71 75 61 72 |-qtuple |#[(squar|
|00004840| 65 20 76 61 6c 75 65 29 | 20 22 c0 09 5c 6e c3 c4 |e value)| "..\n..|
|00004850| 24 ae 96 c0 09 5c 6e c4 | c3 24 ae 8e c0 09 5c 6e |$....\n.|.$....\n|
|00004860| c3 89 24 ae 86 c0 09 5c | 6e c5 c3 24 87 22 20 5b |..$....\|n..$." [|
|00004870| 67 6f 6d 6f 6b 75 2d 63 | 68 65 63 6b 2d 66 69 6c |gomoku-c|heck-fil|
|00004880| 6c 65 64 2d 71 74 75 70 | 6c 65 20 73 71 75 61 72 |led-qtup|le squar|
|00004890| 65 20 76 61 6c 75 65 20 | 31 20 30 20 2d 31 5d 20 |e value |1 0 -1] |
|000048a0| 35 20 22 5c 0a 52 65 74 | 75 72 6e 20 54 20 69 66 |5 "\.Ret|urn T if|
|000048b0| 20 53 51 55 41 52 45 20 | 62 65 6c 6f 6e 67 73 20 | SQUARE |belongs |
|000048c0| 74 6f 20 61 20 71 74 75 | 70 6c 65 20 66 69 6c 6c |to a qtu|ple fill|
|000048d0| 65 64 20 77 69 74 68 20 | 56 41 4c 55 45 73 2e 22 |ed with |VALUEs."|
|000048e0| 5d 29 0a 28 66 73 65 74 | 20 27 67 6f 6d 6f 6b 75 |]).(fset| 'gomoku|
|000048f0| 2d 63 68 65 63 6b 2d 66 | 69 6c 6c 65 64 2d 71 74 |-check-f|illed-qt|
|00004900| 75 70 6c 65 20 23 5b 28 | 73 71 75 61 72 65 20 76 |uple #[(|square v|
|00004910| 61 6c 75 65 20 64 78 20 | 64 79 29 20 22 c0 89 09 |alue dx |dy) "...|
|00004920| 89 c2 0b 0c 5c 22 c5 1e | 06 1e 07 1e 08 1e 09 1e |....\"..|........|
|00004930| 5c 6e 89 1e 0b cc 56 ab | 98 0e 0d 0e 0e 0e 09 0e |\n....V.|........|
|00004940| 07 5a 89 16 09 48 55 ab | 88 0e 0b 53 89 16 0b aa |.Z...HU.|...S....|
|00004950| 64 0e 0b cf 5c 5c 16 06 | 0e 5c 6e 0e 06 57 ab 98 |d...\\..|.\n..W..|
|00004960| 0e 0d 0e 0e 0e 08 0e 07 | 5c 5c 89 16 08 48 55 ab |........|\\...HU.|
|00004970| 88 0e 5c 6e 54 89 16 5c | 6e aa 63 0e 5c 6e 0e 06 |..\nT..\|n.c.\n..|
|00004980| 55 ad 99 09 0e 0b 0e 07 | 5f 5c 5c 16 10 09 0e 5c |U.......|_\\....\|
|00004990| 6e 0e 07 5f 5c 5c 16 11 | 0b 16 12 0c 16 13 d4 2e |n.._\\..|........|
|000049a0| 06 87 22 20 5b 30 20 73 | 71 75 61 72 65 20 67 6f |.." [0 s|quare go|
|000049b0| 6d 6f 6b 75 2d 78 79 2d | 74 6f 2d 69 6e 64 65 78 |moku-xy-|to-index|
|000049c0| 20 64 78 20 64 79 20 6e | 69 6c 20 61 2b 34 20 64 | dx dy n|il a+4 d|
|000049d0| 65 70 6c 20 72 69 67 68 | 74 20 6c 65 66 74 20 62 |epl righ|t left b|
|000049e0| 20 61 20 2d 34 20 76 61 | 6c 75 65 20 67 6f 6d 6f | a -4 va|lue gomo|
|000049f0| 6b 75 2d 62 6f 61 72 64 | 20 34 20 67 6f 6d 6f 6b |ku-board| 4 gomok|
|00004a00| 75 2d 77 69 6e 6e 69 6e | 67 2d 71 74 75 70 6c 65 |u-winnin|g-qtuple|
|00004a10| 2d 62 65 67 20 67 6f 6d | 6f 6b 75 2d 77 69 6e 6e |-beg gom|oku-winn|
|00004a20| 69 6e 67 2d 71 74 75 70 | 6c 65 2d 65 6e 64 20 67 |ing-qtup|le-end g|
|00004a30| 6f 6d 6f 6b 75 2d 77 69 | 6e 6e 69 6e 67 2d 71 74 |omoku-wi|nning-qt|
|00004a40| 75 70 6c 65 2d 64 78 20 | 67 6f 6d 6f 6b 75 2d 77 |uple-dx |gomoku-w|
|00004a50| 69 6e 6e 69 6e 67 2d 71 | 74 75 70 6c 65 2d 64 79 |inning-q|tuple-dy|
|00004a60| 20 74 5d 20 38 20 22 5c | 0a 52 65 74 75 72 6e 20 | t] 8 "\|.Return |
|00004a70| 54 20 69 66 20 53 51 55 | 41 52 45 20 62 65 6c 6f |T if SQU|ARE belo|
|00004a80| 6e 67 73 20 74 6f 20 61 | 20 71 74 75 70 6c 65 20 |ngs to a| qtuple |
|00004a90| 66 69 6c 6c 65 64 20 20 | 77 69 74 68 20 56 41 4c |filled |with VAL|
|00004aa0| 55 45 73 20 61 6c 6f 6e | 67 20 44 58 2c 20 44 59 |UEs alon|g DX, DY|
|00004ab0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 67 6f 6d 6f |."]).(fs|et 'gomo|
|00004ac0| 6b 75 2d 63 72 6f 73 73 | 2d 77 69 6e 6e 69 6e 67 |ku-cross|-winning|
|00004ad0| 2d 71 74 75 70 6c 65 20 | 23 5b 6e 69 6c 20 22 c0 |-qtuple |#[nil ".|
|00004ae0| 09 5c 6e 0b 0c 24 87 22 | 20 5b 67 6f 6d 6f 6b 75 |.\n..$."| [gomoku|
|00004af0| 2d 63 72 6f 73 73 2d 71 | 74 75 70 6c 65 20 67 6f |-cross-q|tuple go|
|00004b00| 6d 6f 6b 75 2d 77 69 6e | 6e 69 6e 67 2d 71 74 75 |moku-win|ning-qtu|
|00004b10| 70 6c 65 2d 62 65 67 20 | 67 6f 6d 6f 6b 75 2d 77 |ple-beg |gomoku-w|
|00004b20| 69 6e 6e 69 6e 67 2d 71 | 74 75 70 6c 65 2d 65 6e |inning-q|tuple-en|
|00004b30| 64 20 67 6f 6d 6f 6b 75 | 2d 77 69 6e 6e 69 6e 67 |d gomoku|-winning|
|00004b40| 2d 71 74 75 70 6c 65 2d | 64 78 20 67 6f 6d 6f 6b |-qtuple-|dx gomok|
|00004b50| 75 2d 77 69 6e 6e 69 6e | 67 2d 71 74 75 70 6c 65 |u-winnin|g-qtuple|
|00004b60| 2d 64 79 5d 20 35 20 22 | 5c 0a 43 72 6f 73 73 20 |-dy] 5 "|\.Cross |
|00004b70| 77 69 6e 6e 69 6e 67 20 | 71 74 75 70 6c 65 2c 20 |winning |qtuple, |
|00004b80| 61 73 20 66 6f 75 6e 64 | 20 62 79 20 60 67 6f 6d |as found| by `gom|
|00004b90| 6f 6b 75 2d 66 69 6e 64 | 2d 66 69 6c 6c 65 64 2d |oku-find|-filled-|
|00004ba0| 71 74 75 70 6c 65 27 2e | 22 5d 29 0a 28 66 73 65 |qtuple'.|"]).(fse|
|00004bb0| 74 20 27 67 6f 6d 6f 6b | 75 2d 63 72 6f 73 73 2d |t 'gomok|u-cross-|
|00004bc0| 71 74 75 70 6c 65 20 23 | 5b 28 73 71 75 61 72 65 |qtuple #|[(square|
|00004bd0| 31 20 73 71 75 61 72 65 | 32 20 64 78 20 64 79 29 |1 square|2 dx dy)|
|00004be0| 20 22 8a c0 09 5c 6e 5c | 22 1b 0c 0d 55 84 9c 00 | "...\n\|"...U...|
|00004bf0| c6 0c 21 88 0c 0b 5c 5c | 14 09 c7 55 ab a0 5c 6e |..!...\\|...U..\n|
|00004c00| c8 55 ab 9b c7 1e 09 0e | 09 0e 5c 6e 57 ab 8e 0e |.U......|..\nW...|
|00004c10| 09 54 16 09 c7 75 88 cb | cc 21 88 aa 6b 29 aa 4d |.T...u..|.!..k).M|
|00004c20| 09 c8 55 ab a1 5c 6e c7 | 55 ab 9c c7 1e 09 0e 09 |..U..\n.|U.......|
|00004c30| 0e 0d 57 ab 8f 0e 09 54 | 16 09 ce c7 21 88 cb cf |..W....T|....!...|
|00004c40| 21 88 aa 6a 29 aa 27 09 | d0 55 ab 99 5c 6e c7 55 |!..j).'.|.U..\n.U|
|00004c50| ab 94 d1 0e 5c 6e d2 a5 | 21 88 ce 0e 0d d2 a5 21 |....\n..|!......!|
|00004c60| 88 cb d3 21 88 aa 09 09 | c7 55 ab 04 5c 6e c7 55 |...!....|.U..\n.U|
|00004c70| 83 06 00 0e 5c 6e d2 a5 | 75 88 ce 0e 0d d2 a5 21 |....\n..|u......!|
|00004c80| 88 cb d4 21 88 82 06 00 | 2a d5 c8 21 87 22 20 5b |...!....|*..!." [|
|00004c90| 67 6f 6d 6f 6b 75 2d 78 | 79 2d 74 6f 2d 69 6e 64 |gomoku-x|y-to-ind|
|00004ca0| 65 78 20 64 78 20 64 79 | 20 64 65 70 6c 20 73 71 |ex dx dy| depl sq|
|00004cb0| 75 61 72 65 31 20 73 71 | 75 61 72 65 32 20 67 6f |uare1 sq|uare2 go|
|00004cc0| 6d 6f 6b 75 2d 67 6f 74 | 6f 2d 73 71 75 61 72 65 |moku-got|o-square|
|00004cd0| 20 31 20 30 20 6e 20 67 | 6f 6d 6f 6b 75 2d 73 71 | 1 0 n g|omoku-sq|
|00004ce0| 75 61 72 65 2d 77 69 64 | 74 68 20 67 6f 6d 6f 6b |uare-wid|th gomok|
|00004cf0| 75 2d 70 75 74 2d 63 68 | 61 72 20 34 35 20 67 6f |u-put-ch|ar 45 go|
|00004d00| 6d 6f 6b 75 2d 73 71 75 | 61 72 65 2d 68 65 69 67 |moku-squ|are-heig|
|00004d10| 68 74 20 6e 65 78 74 2d | 6c 69 6e 65 20 31 32 34 |ht next-|line 124|
|00004d20| 20 2d 31 20 62 61 63 6b | 77 61 72 64 2d 63 68 61 | -1 back|ward-cha|
|00004d30| 72 20 32 20 34 37 20 39 | 32 20 73 69 74 2d 66 6f |r 2 47 9|2 sit-fo|
|00004d40| 72 5d 20 33 20 22 5c 0a | 43 72 6f 73 73 20 65 76 |r] 3 "\.|Cross ev|
|00004d50| 65 72 79 20 73 71 75 61 | 72 65 20 62 65 74 77 65 |ery squa|re betwe|
|00004d60| 65 6e 20 53 51 55 41 52 | 45 31 20 61 6e 64 20 53 |en SQUAR|E1 and S|
|00004d70| 51 55 41 52 45 32 20 69 | 6e 20 74 68 65 20 44 58 |QUARE2 i|n the DX|
|00004d80| 2c 20 44 59 20 64 69 72 | 65 63 74 69 6f 6e 2e 22 |, DY dir|ection."|
|00004d90| 5d 29 0a 28 66 73 65 74 | 20 27 67 6f 6d 6f 6b 75 |]).(fset| 'gomoku|
|00004da0| 2d 6d 6f 76 65 2d 6c 65 | 66 74 20 23 5b 6e 69 6c |-move-le|ft #[nil|
|00004db0| 20 22 c0 20 19 c2 09 ac | 83 c3 aa 89 09 c3 56 ab | ". ....|......V.|
|00004dc0| 83 0c aa 81 c5 21 29 87 | 22 20 5b 67 6f 6d 6f 6b |.....!).|" [gomok|
|00004dd0| 75 2d 70 6f 69 6e 74 2d | 78 20 78 20 62 61 63 6b |u-point-|x x back|
|00004de0| 77 61 72 64 2d 63 68 61 | 72 20 31 20 67 6f 6d 6f |ward-cha|r 1 gomo|
|00004df0| 6b 75 2d 73 71 75 61 72 | 65 2d 77 69 64 74 68 20 |ku-squar|e-width |
|00004e00| 30 5d 20 33 20 22 5c 0a | 4d 6f 76 65 20 70 6f 69 |0] 3 "\.|Move poi|
|00004e10| 6e 74 20 62 61 63 6b 77 | 61 72 64 20 6f 6e 65 20 |nt backw|ard one |
|00004e20| 63 6f 6c 75 6d 6e 20 6f | 6e 20 74 68 65 20 47 6f |column o|n the Go|
|00004e30| 6d 6f 6b 75 20 62 6f 61 | 72 64 2e 22 20 6e 69 6c |moku boa|rd." nil|
|00004e40| 5d 29 0a 28 66 73 65 74 | 20 27 67 6f 6d 6f 6b 75 |]).(fset| 'gomoku|
|00004e50| 2d 6d 6f 76 65 2d 72 69 | 67 68 74 20 23 5b 6e 69 |-move-ri|ght #[ni|
|00004e60| 6c 20 22 c0 20 89 19 ac | 83 c2 aa 89 09 0b 57 ab |l ". ...|......W.|
|00004e70| 83 0c aa 81 c5 75 29 87 | 22 20 5b 67 6f 6d 6f 6b |.....u).|" [gomok|
|00004e80| 75 2d 70 6f 69 6e 74 2d | 78 20 78 20 31 20 67 6f |u-point-|x x 1 go|
|00004e90| 6d 6f 6b 75 2d 62 6f 61 | 72 64 2d 77 69 64 74 68 |moku-boa|rd-width|
|00004ea0| 20 67 6f 6d 6f 6b 75 2d | 73 71 75 61 72 65 2d 77 | gomoku-|square-w|
|00004eb0| 69 64 74 68 20 30 5d 20 | 33 20 22 5c 0a 4d 6f 76 |idth 0] |3 "\.Mov|
|00004ec0| 65 20 70 6f 69 6e 74 20 | 66 6f 72 77 61 72 64 20 |e point |forward |
|00004ed0| 6f 6e 65 20 63 6f 6c 75 | 6d 6e 20 6f 6e 20 74 68 |one colu|mn on th|
|00004ee0| 65 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 2e 22 |e Gomoku| board."|
|00004ef0| 20 6e 69 6c 5d 29 0a 28 | 66 73 65 74 20 27 67 6f | nil]).(|fset 'go|
|00004f00| 6d 6f 6b 75 2d 6d 6f 76 | 65 2d 64 6f 77 6e 20 23 |moku-mov|e-down #|
|00004f10| 5b 6e 69 6c 20 22 c0 20 | 19 c2 09 ac 83 c3 aa 89 |[nil ". |........|
|00004f20| 09 0c 57 ab 83 0d aa 81 | c6 21 29 87 22 20 5b 67 |..W.....|.!)." [g|
|00004f30| 6f 6d 6f 6b 75 2d 70 6f | 69 6e 74 2d 79 20 79 20 |omoku-po|int-y y |
|00004f40| 6e 65 78 74 2d 6c 69 6e | 65 20 31 20 67 6f 6d 6f |next-lin|e 1 gomo|
|00004f50| 6b 75 2d 62 6f 61 72 64 | 2d 68 65 69 67 68 74 20 |ku-board|-height |
|00004f60| 67 6f 6d 6f 6b 75 2d 73 | 71 75 61 72 65 2d 68 65 |gomoku-s|quare-he|
|00004f70| 69 67 68 74 20 30 5d 20 | 33 20 22 5c 0a 4d 6f 76 |ight 0] |3 "\.Mov|
|00004f80| 65 20 70 6f 69 6e 74 20 | 64 6f 77 6e 20 6f 6e 65 |e point |down one|
|00004f90| 20 72 6f 77 20 6f 6e 20 | 74 68 65 20 47 6f 6d 6f | row on |the Gomo|
|00004fa0| 6b 75 20 62 6f 61 72 64 | 2e 22 20 6e 69 6c 5d 29 |ku board|." nil])|
|00004fb0| 0a 28 66 73 65 74 20 27 | 67 6f 6d 6f 6b 75 2d 6d |.(fset '|gomoku-m|
|00004fc0| 6f 76 65 2d 75 70 20 23 | 5b 6e 69 6c 20 22 c0 20 |ove-up #|[nil ". |
|00004fd0| 19 c2 09 ac 83 c3 aa 89 | 09 c3 56 ab 83 0c aa 81 |........|..V.....|
|00004fe0| c5 21 29 87 22 20 5b 67 | 6f 6d 6f 6b 75 2d 70 6f |.!)." [g|omoku-po|
|00004ff0| 69 6e 74 2d 79 20 79 20 | 70 72 65 76 69 6f 75 73 |int-y y |previous|
|00005000| 2d 6c 69 6e 65 20 31 20 | 67 6f 6d 6f 6b 75 2d 73 |-line 1 |gomoku-s|
|00005010| 71 75 61 72 65 2d 68 65 | 69 67 68 74 20 30 5d 20 |quare-he|ight 0] |
|00005020| 33 20 22 5c 0a 4d 6f 76 | 65 20 70 6f 69 6e 74 20 |3 "\.Mov|e point |
|00005030| 75 70 20 6f 6e 65 20 72 | 6f 77 20 6f 6e 20 74 68 |up one r|ow on th|
|00005040| 65 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 2e 22 |e Gomoku| board."|
|00005050| 20 6e 69 6c 5d 29 0a 28 | 66 73 65 74 20 27 67 6f | nil]).(|fset 'go|
|00005060| 6d 6f 6b 75 2d 6d 6f 76 | 65 2d 6e 65 20 23 5b 6e |moku-mov|e-ne #[n|
|00005070| 69 6c 20 22 c0 20 88 c1 | 20 87 22 20 5b 67 6f 6d |il ". ..| ." [gom|
|00005080| 6f 6b 75 2d 6d 6f 76 65 | 2d 75 70 20 67 6f 6d 6f |oku-move|-up gomo|
|00005090| 6b 75 2d 6d 6f 76 65 2d | 72 69 67 68 74 5d 20 31 |ku-move-|right] 1|
|000050a0| 20 22 5c 0a 4d 6f 76 65 | 20 70 6f 69 6e 74 20 4e | "\.Move| point N|
|000050b0| 6f 72 74 68 20 45 61 73 | 74 20 6f 6e 20 74 68 65 |orth Eas|t on the|
|000050c0| 20 47 6f 6d 6f 6b 75 20 | 62 6f 61 72 64 2e 22 20 | Gomoku |board." |
|000050d0| 6e 69 6c 5d 29 0a 28 66 | 73 65 74 20 27 67 6f 6d |nil]).(f|set 'gom|
|000050e0| 6f 6b 75 2d 6d 6f 76 65 | 2d 73 65 20 23 5b 6e 69 |oku-move|-se #[ni|
|000050f0| 6c 20 22 c0 20 88 c1 20 | 87 22 20 5b 67 6f 6d 6f |l ". .. |." [gomo|
|00005100| 6b 75 2d 6d 6f 76 65 2d | 64 6f 77 6e 20 67 6f 6d |ku-move-|down gom|
|00005110| 6f 6b 75 2d 6d 6f 76 65 | 2d 72 69 67 68 74 5d 20 |oku-move|-right] |
|00005120| 31 20 22 5c 0a 4d 6f 76 | 65 20 70 6f 69 6e 74 20 |1 "\.Mov|e point |
|00005130| 53 6f 75 74 68 20 45 61 | 73 74 20 6f 6e 20 74 68 |South Ea|st on th|
|00005140| 65 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 2e 22 |e Gomoku| board."|
|00005150| 20 6e 69 6c 5d 29 0a 28 | 66 73 65 74 20 27 67 6f | nil]).(|fset 'go|
|00005160| 6d 6f 6b 75 2d 6d 6f 76 | 65 2d 6e 77 20 23 5b 6e |moku-mov|e-nw #[n|
|00005170| 69 6c 20 22 c0 20 88 c1 | 20 87 22 20 5b 67 6f 6d |il ". ..| ." [gom|
|00005180| 6f 6b 75 2d 6d 6f 76 65 | 2d 75 70 20 67 6f 6d 6f |oku-move|-up gomo|
|00005190| 6b 75 2d 6d 6f 76 65 2d | 6c 65 66 74 5d 20 31 20 |ku-move-|left] 1 |
|000051a0| 22 5c 0a 4d 6f 76 65 20 | 70 6f 69 6e 74 20 4e 6f |"\.Move |point No|
|000051b0| 72 74 68 20 57 65 73 74 | 20 6f 6e 20 74 68 65 20 |rth West| on the |
|000051c0| 47 6f 6d 6f 6b 75 20 62 | 6f 61 72 64 2e 22 20 6e |Gomoku b|oard." n|
|000051d0| 69 6c 5d 29 0a 28 66 73 | 65 74 20 27 67 6f 6d 6f |il]).(fs|et 'gomo|
|000051e0| 6b 75 2d 6d 6f 76 65 2d | 73 77 20 23 5b 6e 69 6c |ku-move-|sw #[nil|
|000051f0| 20 22 c0 20 88 c1 20 87 | 22 20 5b 67 6f 6d 6f 6b | ". .. .|" [gomok|
|00005200| 75 2d 6d 6f 76 65 2d 64 | 6f 77 6e 20 67 6f 6d 6f |u-move-d|own gomo|
|00005210| 6b 75 2d 6d 6f 76 65 2d | 6c 65 66 74 5d 20 31 20 |ku-move-|left] 1 |
|00005220| 22 5c 0a 4d 6f 76 65 20 | 70 6f 69 6e 74 20 53 6f |"\.Move |point So|
|00005230| 75 74 68 20 57 65 73 74 | 20 6f 6e 20 74 68 65 20 |uth West| on the |
|00005240| 47 6f 6d 6f 6b 75 20 62 | 6f 61 72 64 2e 22 20 6e |Gomoku b|oard." n|
|00005250| 69 6c 5d 29 0a 28 70 72 | 6f 76 69 64 65 20 27 67 |il]).(pr|ovide 'g|
|00005260| 6f 6d 6f 6b 75 29 0a | |omoku). | |
+--------+-------------------------+-------------------------+--------+--------+