🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5954

Small fix to game listings

#5954
From: Randy Ray
Date: Wed, 11 Sep 1991 21:17
96 lines
4087 bytes
Some time back, I submitted to this group some patches that did two things
for gnuchess: (1) Fixed a bug in the ListGame() procedure in uxdsp.c and
nuxdsp.c, and (2) Allowed a user to verufy desire for a game listing and
also specify a possible alternative to the filename, "~/chess.lst". The
second was a matter of personal preference. Perhaps because of the second
part, the first part was not present in 3.1+, but the bug that it fixes
was still present. For those that wonder, here is a listing of the first
3 moves of a Ruy Lopez line, from an unmodified uxdsp.c:ListGame:

       score  depth   nodes  time                score  depth   nodes  time
          e2e4      0      0       0     2
 e7e5      0      0       0     0          g1f3      0      0       0     8
 b8c6      0      0       0     0          f1b5      0      0       0    20
 d7d6      0      0       0     0

Here is a listing, after the patch is applied:

       score  depth   nodes  time                score  depth   nodes  time
 e2e4      0      0       0     6          e7e5      0      0       0     7
 g1f3      0      0       0    10          b8c6      0      0       0     1
 f1b5      0      0       0     4          d7d6      0      0       0     8


In my opinion, the difference between these two listings is not nit-picking.
Additionally, the program to translate various notation styles, posted
severl months back, obviously cannot read the former version. It is my
hope that these diffs, sans the listing verification process, will get
through to the author(s) of gnuchess.

Randy
---------------CUT HERE-----------------


*** uxdsp.c.old	Wed Sep 11 14:52:07 1991
--- uxdsp.c	Wed Sep 11 14:46:41 1991
***************
*** 994,1006 ****
        f = GameList[i].gmove >> 8;
        t = (GameList[i].gmove & 0xFF);
        algbr (f, t, false);
        if ((i % 2) == 0)
  	fprintf (fd, "\n");
        else
  	fprintf (fd, "         ");
-       fprintf (fd, "%5s  %5d     %2d %7ld %5d", mvstr[0],
- 	       GameList[i].score, GameList[i].depth,
- 	       GameList[i].nodes, GameList[i].time);
      }
    fprintf (fd, "\n\n");
    fclose (fd);
--- 994,1006 ----
        f = GameList[i].gmove >> 8;
        t = (GameList[i].gmove & 0xFF);
        algbr (f, t, false);
+       fprintf (fd, "%5s  %5d     %2d %7ld %5d", mvstr[0],
+ 	       GameList[i].score, GameList[i].depth,
+ 	       GameList[i].nodes, GameList[i].time);
        if ((i % 2) == 0)
  	fprintf (fd, "\n");
        else
  	fprintf (fd, "         ");
      }
    fprintf (fd, "\n\n");
    fclose (fd);
*** nuxdsp.c.old	Wed Sep 11 14:52:19 1991
--- nuxdsp.c	Wed Sep 11 14:49:03 1991
***************
*** 1160,1172 ****
        f = GameList[i].gmove >> 8;
        t = (GameList[i].gmove & 0xFF);
        algbr (f, t, false);
        if ((i % 2) == 0)
  	fprintf (fd, "\n");
        else
  	fprintf (fd, "         ");
-       fprintf (fd, "%5s  %5d     %2d %7ld %5d", mvstr[0],
- 	       GameList[i].score, GameList[i].depth,
- 	       GameList[i].nodes, GameList[i].time);
      }
    fprintf (fd, "\n\n");
    fclose (fd);
--- 1160,1172 ----
        f = GameList[i].gmove >> 8;
        t = (GameList[i].gmove & 0xFF);
        algbr (f, t, false);
+       fprintf (fd, "%5s  %5d     %2d %7ld %5d", mvstr[0],
+ 	       GameList[i].score, GameList[i].depth,
+ 	       GameList[i].nodes, GameList[i].time);
        if ((i % 2) == 0)
  	fprintf (fd, "\n");
        else
  	fprintf (fd, "         ");
      }
    fprintf (fd, "\n\n");
    fclose (fd);
Technical Details
Message-ID: <9109112118.AA15195@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!ucbvax!SPECLAB.CR.USGS.GOV!rray

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,f60edc3164a08c24,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1991-09-11 23:45:22 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!ucbvax!SPECLAB.CR.USGS.GOV!rray
From: rray@SPECLAB.CR.USGS.GOV (Randy Ray)
Newsgroups: gnu.chess
Subject: Small fix to game listings
Message-ID: <9109112118.AA15195@ucbvax.Berkeley.EDU>
Date: 11 Sep 91 21:17:13 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 96