Article View: gnu.chess
Article #130Re: gnuan feature of gnuchess: questions
From: Jan Otto Munch Pedersen
Date: Mon, 12 Oct 1992 09:20
Date: Mon, 12 Oct 1992 09:20
29 lines
1313 bytes
1313 bytes
mwhite@osiris.cso.uiuc.edu (Dr. Michael J. White) writes:
>I don't think "gnuan" will solve a *position*. This would be
>a nice improvement (hint hint :). Most of the games I analyze
>have only a few moves that I'm puzzled over (big grin here)
>and I hate to wait a day for "gnuan" just to get to the move.
I hated this too, so I made a small "quick and dirty" update to gunan.c.
The three lines of code:
flag.force = 0;
SelectMove (computer, 1);
Undo ();
appears twice in gnuan.c (from line 825 and 871 in the distribution I have).
In both cases I have replaced them with:
if( s[ strlen( s ) - 1 ] == '#' )
s[ strlen( s ) - 1 ] = 0;
else {
flag.force = 0;
SelectMove (computer, 1);
Undo ();
}
This has the effect that moves suffixed with # in the input file aren't
analyzed, they are just entered.
Jan
Technical Details
Message-ID:
<1992Oct12.092045.18501@mentor.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!daimi!mentor!jompReferences:
<1b4ed7INNef@gap.caltech.edu> <BvzM76.9x8@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.chess Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!daimi!mentor!jomp From: jomp@mentor.dk (Jan Otto Munch Pedersen) Subject: Re: gnuan feature of gnuchess: questions Organization: Mentor Informatik A/S, Denmark Date: Mon, 12 Oct 92 09:20:45 GMT Message-ID: <1992Oct12.092045.18501@mentor.dk> References: <1b4ed7INNef@gap.caltech.edu> <BvzM76.9x8@news.cso.uiuc.edu> Lines: 29