home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume13 / gnuchss4 / patch1a < prev    next >
Encoding:
Internet Message Format  |  1992-08-02  |  10.6 KB

  1. Path: uunet!zephyr.ens.tek.com!master!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v13i103:  gnuchess4 - GNU Chess 4.0, Patch1a
  5. Message-ID: <3079@master.CNA.TEK.COM>
  6. Date: 22 Jun 92 16:19:21 GMT
  7. Sender: news@master.CNA.TEK.COM
  8. Lines: 346
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: cracraft@rice-chex.ai.mit.edu (Stuart Cracraft)
  12. Posting-number: Volume 13, Issue 103
  13. Archive-name: gnuchess4/Patch1a
  14. Patch-To: gnuchess4: Volume 13, Issue 89-100
  15. Environment: 
  16.  
  17.     [This brings gnuchess 4.0 up to patchlevel 50. See doc/ChangeLog
  18.      for details.  -br]
  19.  
  20. #! /bin/sh
  21. # This is a shell archive.  Remove anything before this line, then unpack
  22. # it by saving it into a file and typing "sh file".  To overwrite existing
  23. # files, type "sh file -c".  You can also feed this as standard input via
  24. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  25. # will see the following message at the end:
  26. #        "End of archive 1 (of 2)."
  27. # Contents:  Credits src/match patch01.01
  28. # Wrapped by billr@saab on Mon Jun 22 09:15:57 1992
  29. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  30. if test -f 'Credits' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'Credits'\"
  32. else
  33. echo shar: Extracting \"'Credits'\" \(287 characters\)
  34. sed "s/^X//" >'Credits' <<'END_OF_FILE'
  35. XGNU Chess 4.0 is an international effort by:
  36. X
  37. X        Mike McGann (mwm@hslrswi.hasler.ascom.ch)
  38. X        Urban Koistinen  (md85-epi@nada.kth.se)
  39. X        Phillipe Schnoebelen ( phs@lifia.imag.fr)
  40. X        Kenneth D. Jordan ( kdj@genrad.com)
  41. X    Stuart Cracraft (cracraft@rice-chex.ai.mit.edu)
  42. END_OF_FILE
  43. if test 287 -ne `wc -c <'Credits'`; then
  44.     echo shar: \"'Credits'\" unpacked with wrong size!
  45. fi
  46. # end of 'Credits'
  47. fi
  48. if test -f 'src/match' -a "${1}" != "-c" ; then 
  49.   echo shar: Will not clobber existing file \"'src/match'\"
  50. else
  51. echo shar: Extracting \"'src/match'\" \(861 characters\)
  52. sed "s/^X//" >'src/match' <<'END_OF_FILE'
  53. X#!/bin/sh
  54. X#
  55. X# match -- play a series of games using xboard as a referee
  56. X#
  57. X
  58. Xcase $# in
  59. X8) COUNT=0; PGM1=$2 ; PGM2=$4 ; LENGTH=$6 ; MODE=$8 ;;
  60. X*) echo "Usage: match -pgm1 pgm -pgm2 pgm -length \
  61. Xgames -mode (Init | Position | Opening)" ; exit
  62. Xesac
  63. X
  64. Xwhile (:)
  65. Xdo
  66. X    if (test $COUNT -eq $LENGTH)
  67. X    then
  68. X        break
  69. X    else
  70. X        COUNT=`echo $COUNT | awk '{print $0 + 1}'`
  71. X        MODULO=`echo $COUNT | awk '{print $0 % 2}'`
  72. X        if (test $MODULO -eq 0)
  73. X        then
  74. X            xboard -fcp $PGM1 -scp $PGM2 \
  75. X                -matchMode $MODE -saveGameFile match.game.$COUNT \
  76. X                -savePositionFile match.position.$COUNT -iconic  
  77. X        else
  78. X            xboard -fcp $PGM2 -scp $PGM1 \
  79. X                -matchMode $MODE -saveGameFile match.game.$COUNT \
  80. X                -savePositionFile match.position.$COUNT -iconic  
  81. X        fi
  82. X    fi
  83. Xdone
  84. END_OF_FILE
  85. if test 861 -ne `wc -c <'src/match'`; then
  86.     echo shar: \"'src/match'\" unpacked with wrong size!
  87. fi
  88. chmod +x 'src/match'
  89. # end of 'src/match'
  90. fi
  91. if test -f 'patch01.01' -a "${1}" != "-c" ; then 
  92.   echo shar: Will not clobber existing file \"'patch01.01'\"
  93. else
  94. echo shar: Extracting \"'patch01.01'\" \(6684 characters\)
  95. sed "s/^X//" >'patch01.01' <<'END_OF_FILE'
  96. Xdiff -c ../../../gnuchess4/README README
  97. X*** ../../../gnuchess4/README    Sun May 31 09:30:56 1992
  98. X--- README    Tue Jun  9 21:42:22 1992
  99. X***************
  100. X*** 6,15 ****
  101. X  
  102. X  -------------------------------------------------------------------
  103. X  
  104. X! This is our GNU Chess 4.0 release, patchlevel 44. This is
  105. X! the first official release of GNU Chess 4.0. Please direct
  106. X! all bug reports, fixes, and improvements to me at the
  107. X! above address.
  108. X  
  109. X              -o-
  110. X  
  111. X--- 6,12 ----
  112. X  
  113. X  -------------------------------------------------------------------
  114. X  
  115. X! This is our GNU Chess 4.0 release. 
  116. X  
  117. X              -o-
  118. X  
  119. X***************
  120. X*** 35,41 ****
  121. X    These are also included, but could stand some improvement:
  122. X  
  123. X      gnuan      - Chess analysis program (to analyze games)
  124. X!     game       - Postscript printout of all or pard of a game
  125. X      postprint  - Postscript print of persistent hashfile
  126. X      checkgame  - check a game listing for illegal moves
  127. X      checkbook  - check the opening book for illegal moves
  128. X--- 32,38 ----
  129. X    These are also included, but could stand some improvement:
  130. X  
  131. X      gnuan      - Chess analysis program (to analyze games)
  132. X!     game       - Postscript printout of all or part of a game
  133. X      postprint  - Postscript print of persistent hashfile
  134. X      checkgame  - check a game listing for illegal moves
  135. X      checkbook  - check the opening book for illegal moves
  136. X***************
  137. X*** 71,77 ****
  138. X        BOOK, HASH, LANG -- please don't adjust these.
  139. X    3)    Enter "make all<return>"
  140. X    4)    Enter "make install<return>"
  141. X!   5)    Run gnuchessr (or "chesstool gnuchessc" or "xboard gnuchessx")
  142. X  
  143. X  I hope you enjoy playing GNU Chess chess. Please give me feedback and
  144. X  your ideas for how to make this a better program. We especially
  145. X--- 68,74 ----
  146. X        BOOK, HASH, LANG -- please don't adjust these.
  147. X    3)    Enter "make all<return>"
  148. X    4)    Enter "make install<return>"
  149. X!   5)    Run gnuchessr (or "chesstool gnuchessc" or "xboard")
  150. X  
  151. X  I hope you enjoy playing GNU Chess chess. Please give me feedback and
  152. X  your ideas for how to make this a better program. We especially
  153. Xdiff -c ../../../../gnuchess4/doc/ChangeLog doc/ChangeLog
  154. X*** ../../../../gnuchess4/doc/ChangeLog    Sun May 31 08:38:14 1992
  155. X--- doc/ChangeLog    Thu Jun 18 07:21:58 1992
  156. X***************
  157. X*** 1,4 ****
  158. X! Sun May 31 Patchlevel 44 Bart Massey (bart@cs.uoregon.edu
  159. X      * Rename structure element move to bmove in book.c since
  160. X        curses.h defines a move macro.
  161. X      * Get rid of superfluous returns in dspcom.c and checkbook.c
  162. X--- 1,24 ----
  163. X! Thu Jun 18 Patchlevel 50 Tim Mann
  164. X!     * Special #ifdefs to not do post for xboard are unnecessary
  165. X!       and were removed.
  166. X! Wed Jun 17 Patchlevel 49 Mike McGann, Urban Koisten
  167. X!     * Fix book code to calloc (Urban)
  168. X!     * Fixed other code (Mike)
  169. X! Sun Jun 7 Patchlevel 48 Stuart Cracraft (cracraft@rice-chex.ai.mit.edu)
  170. X!     * Fix gnuan.c output to be more uniform. And tested that it
  171. X!       works.
  172. X! Sat Jun 6 Patchlevel 47 Stuart Cracraft (cracraft@rice-chex.ai.mit.edu)
  173. X!     * Fix Makefile to correctly define BINBOOK so that parsed
  174. X!       opening book gets used (if available.)
  175. X! Sat Jun 6 Patchlevel 46 Stuart Cracraft (cracraft@rice-chex.ai.mit.edu)
  176. X!     * Various patches from various people to mostly robustify the
  177. X!       code (exit values to exit, etc.)
  178. X!     * New book.c handling code and gnuchess.h from Urban to handle
  179. X!       mega book now under discussion.
  180. X!     * New Xboard.
  181. X! Wed Jun  3 Patchlevel 45 Stuart Cracraft (cracraft@rice-chex.ai.mit.edu)
  182. X!     * Encapsulate Xboard with GNU Chess distribution
  183. X! Sun May 31 Patchlevel 44 Bart Massey (bart@cs.uoregon.edu)
  184. X      * Rename structure element move to bmove in book.c since
  185. X        curses.h defines a move macro.
  186. X      * Get rid of superfluous returns in dspcom.c and checkbook.c
  187. Xdiff -c ../../../../gnuchess4/misc/gnuchess.book misc/gnuchess.book
  188. X*** ../../../../gnuchess4/misc/gnuchess.book    Sat May 30 07:40:34 1992
  189. X--- misc/gnuchess.book    Tue Jun  2 06:32:44 1992
  190. X***************
  191. X*** 3743,3762 ****
  192. X  b5c6  c8d7
  193. X  c6a8? d7g4
  194. X  ! Cochrane Gambit
  195. X! ! Avoid blunder as black, don't play the gambit as white
  196. X  e2e4  e7e5
  197. X  g1f3  g8f6
  198. X  f3e5  d7d6
  199. X  e5f7? e8f7
  200. X- d2d4  f6e4?
  201. X- d1h5
  202. X- ! Cochrane Gambit
  203. X- ! BCO2's main line.  UCO agrees up to b1c3.
  204. X- ! Many BCO2 side lines omitted
  205. X- e2e4  e7e5
  206. X- g1f3  g8f6
  207. X- f3e5  d7d6
  208. X- e5f7? e8f7
  209. X  d2d4  g7g6
  210. X  b1c3  d8e8
  211. X  f1c4  c8e6
  212. X--- 3743,3756 ----
  213. X  b5c6  c8d7
  214. X  c6a8? d7g4
  215. X  ! Cochrane Gambit
  216. X! ! Playing this gambit as white does not suit gnuchess's style, but 
  217. X! !  gnuchess needs to know how to defend against it.
  218. X! ! This is BCO2's main line.  Most BCO2 side lines only show how to refute
  219. X! !  inferior moves by black, so we don't need them here.
  220. X  e2e4  e7e5
  221. X  g1f3  g8f6
  222. X  f3e5  d7d6
  223. X  e5f7? e8f7
  224. X  d2d4  g7g6
  225. X  b1c3  d8e8
  226. X  f1c4  c8e6
  227. X***************
  228. X*** 3770,3827 ****
  229. X  d6c7  b8a6
  230. X  c1f4  e8c8
  231. X  ! Cochrane Gambit
  232. X! ! UCO's main line
  233. X! ! Many UCO side lines omitted
  234. X  e2e4  e7e5
  235. X  g1f3  g8f6
  236. X  f3e5  d7d6
  237. X  e5f7? e8f7
  238. X! d2d4  g7g6
  239. X! b1c3  f8g7
  240. X! f1c4  c8e6
  241. X! c4e6  f7e6
  242. X! f2f4  e6f7
  243. X! e4e5  f6e8
  244. X! d1f3  c7c6
  245. X! c3e4  d8a5
  246. X! c1d2  a5d5
  247. X! f4f5  h8f8
  248. X! f5f6  f7g8
  249. X! f3b3  d5b3
  250. X! a2b3  e8f6
  251. X! e5f6  g7f6
  252. X! e4d6  f6d4
  253. X! o-o-o
  254. X! ! Cochrane Gambit
  255. X! ! UCO side line
  256. X! e2e4  e7e5
  257. X! g1f3  g8f6
  258. X! f3e5  d7d6
  259. X! e5f7? e8f7
  260. X! d2d4  g7g6
  261. X! b1c3  f8g7
  262. X! f1c4  c8e6
  263. X! c4e6  f7e6
  264. X! f2f4  e6f7
  265. X! e4e5  h8e8
  266. X! o-o   b8c6
  267. X! e5f6  d8f6
  268. X! d4d5  c6d4
  269. X! f4f5  g6f5
  270. X! c1f4
  271. X! ! Cochrane Gambit
  272. X! ! UCO side line
  273. X! e2e4  e7e5
  274. X! g1f3  g8f6
  275. X! f3e5  d7d6
  276. X! e5f7? e8f7
  277. X! d2d4  g7g6
  278. X! b1c3  f8g7
  279. X! f1c4  c8e6
  280. X! c4e6  f7e6
  281. X! f2f4  e6f7
  282. X! e4e5  h8e8
  283. X! o-o   b8c6
  284. X! d4d5  d6e5
  285. X! d5c6  d8d1
  286. X! c3d1  b7c6
  287. X--- 3764,3773 ----
  288. X  d6c7  b8a6
  289. X  c1f4  e8c8
  290. X  ! Cochrane Gambit
  291. X! ! Refute bad line for white (5. f1c4)
  292. X  e2e4  e7e5
  293. X  g1f3  g8f6
  294. X  f3e5  d7d6
  295. X  e5f7? e8f7
  296. X! f1c4? d6d5
  297. X! e4d5  f8d6
  298. Xdiff -c ../../../../gnuchess4/misc/gnuchess.lang misc/gnuchess.lang
  299. X*** ../../../../gnuchess4/misc/gnuchess.lang    Mon May 11 09:29:34 1992
  300. X--- misc/gnuchess.lang    Thu Jun 18 15:17:26 1992
  301. X***************
  302. X*** 100,106 ****
  303. X  100:eng:{Random: %s}
  304. X  101:eng:{Repetition}
  305. X  102:eng:{Gnuchess version %s patchlevel %s\n}
  306. X! 103:eng:{S=%d m%d p%d ps%d ss%d m%d p%d ps%d ss%d}
  307. X  104:eng:{Score= %d}
  308. X  105:eng:{Score}
  309. X  106:eng:{Setup successful\n}
  310. X--- 100,106 ----
  311. X  100:eng:{Random: %s}
  312. X  101:eng:{Repetition}
  313. X  102:eng:{Gnuchess version %s patchlevel %s\n}
  314. X! 103:eng:{S%d m%d ps%d m%d ps%d}
  315. X  104:eng:{Score= %d}
  316. X  105:eng:{Score}
  317. X  106:eng:{Setup successful\n}
  318. X***************
  319. X*** 220,224 ****
  320. X  220:eng:{Time Control Error}
  321. X  221:eng:{material}
  322. X  222:eng:{time %d %d}
  323. X! 223:eng:{I have no idea}
  324. X  224:eng:{Not Enough Material}
  325. X--- 220,224 ----
  326. X  220:eng:{Time Control Error}
  327. X  221:eng:{material}
  328. X  222:eng:{time %d %d}
  329. X! 223:eng:{I have no idea\n}
  330. X  224:eng:{Not Enough Material}
  331. END_OF_FILE
  332. if test 6684 -ne `wc -c <'patch01.01'`; then
  333.     echo shar: \"'patch01.01'\" unpacked with wrong size!
  334. fi
  335. # end of 'patch01.01'
  336. fi
  337. echo shar: End of archive 1 \(of 2\).
  338. cp /dev/null ark1isdone
  339. MISSING=""
  340. for I in 1 2 ; do
  341.     if test ! -f ark${I}isdone ; then
  342.     MISSING="${MISSING} ${I}"
  343.     fi
  344. done
  345. if test "${MISSING}" = "" ; then
  346.     echo You have unpacked both archives.
  347.     rm -f ark[1-9]isdone
  348.     cat patch01.01 patch01.02 >patches01
  349.     rm patch01.01 patch01.02
  350.     echo Now type \"'patch -p < patches01'\" to apply the patches
  351. else
  352.     echo You still need to unpack the following archives:
  353.     echo "        " ${MISSING}
  354. fi
  355. ##  End of shell archive.
  356. exit 0
  357.