Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 4 specific questions about Chest

Author: Roy Eassa

Date: 10:58:17 04/05/02

Go up one level in this thread


On April 05, 2002 at 13:44:38, Heiner Marxen wrote:

>On April 05, 2002 at 12:44:26, Roy Eassa wrote:
>
>>
>>I will try to create a simple Windows GUI app that just allows a user to paste
>>an EPD string and send it to Chest to be solved.  If I can get it to work at
>>all, then I can start to add features.
>>
>>Question 1: Is there a way to invoke Chest with the EPD string right on the
>>command line?
>
>No.
>
>>Question 2: If the answer to #1 is "no," is there a way for a program to send
>>commands to Chest other than by writing them to a file and invoking Chest with
>>that file as a parameter (i.e., is there a way to spoof a DOS app's stdin)?
>
>If invoked without a filename argument, Chest will read stdin.


I understand that it reads stdin.  I was wondering if there was a way for
another app to "send" something that, to Chest, looked like it was coming from
stdin.  This question is aimed at those who are experienced with programming
tricks in Windows and/or DOS.


>
>>Question 3: What's the easiest way to ask Chest to report only a) how many mates
>>there are in the # of moves specified, and b) what the first move(s) of the
>>mate(s) is/are?
>
>Either:   chest -b
>That is "bulk mode": EPD in, EPD out.
>Unfortunately, if there is no mate, there also is no output.
>That could probably be hacked (small source change),
>but then you would depend on a changed Chest.
>
>Or:       chest -r
>With a job to be read from stdin.
>Such a job most easily looks like:
>
>LE
>F rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -
>z9w
>.
>


That's exactly what I did (manually in DOS), and it worked.  I just left off the
"-r" but it still seemed to work fine.


>The 1st line set language to english, the enters a FEN (4 parts)
>the 3rd is "z" followed by the depth to search and the side to move (w or b).
>The single dot completes the job, and starts analysis.
>
>The output contains more than you asked for, but currently there is no
>option to reduce it further.
>
>Cheers,
>Heiner
>
>
>>Question 4: I'm prefectly happy to allow the user to look at the results in the
>>Chest output window rather than having the program somehow grab stdout from
>>Chest and copy it into a separate GUI window.  Would one of these two approaches
>>be a lot easier than the other?


Thank you to Heiner and to anybody else who might offer insight here!



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.