Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Calling a program from another to perform analysis

Author: Ed Schröder

Date: 23:10:20 04/22/98

Go up one level in this thread


>Posted by Andrew Templeton on April 22, 1998 at 15:38:55:

>   I read in the readme file that comes with Rebel9 that you can call
>the program from another and pass it an EPD file on its commandline. The
>program is supposed to read the EPD file and perform an analysis on all
>the positions it contains. At least, this is what I gather from the
>readme file.
>   I tried to call Rebel using the C spawn() function and passed it the
>full pathname of a valid EPD file. At first, all I got was some error
>message from Rebel telling me to reinstall the program. Eventually I
>determined that the EPD file had to be in the C:\Rebel9 directory and
>that the Current Working Directory had to be changed to C:\Rebel9 before
>attempting the spawn(). When these changes were made the following
>happened:
>   Rebel9 started up, skipping the welcome screen, and brought up the
>screen as usual. It began to perform the analysis on the first EPD
>record in the file. After the program had 'choosen' a good move for
>White it then started Black's clock and began to wait for the user to
>enter a Black move.
>   Is there some kind of commandline switch that must also be passed to
>Rebel9 to indicate to it that it is being called via another program to
>perform analysis? Have I misunderstood the readme file about Rebel9
>being callable from other programs? Any help here would be gratefully
>appreciated.

Here is what the README says about it...

 Additions to the manual (part 3)
 --------------------------------

 9. Every time you exit REBEL 9.0 the current board position
    is written to an EPD file called "REBEL.EPD" including, if
    present, REBEL's main variation (time, score, ply depth etc.)

10. If you start REBEL 9.0 including a PGN or EPD in the command
    line, REBEL 9.0 will bypass the welcome screen and will
    automatically analyze the loaded PGN or EPD file with the
    last time control setting you used.

    The above points 9 and 10 are useful for third party programs
    to call REBEL 9.0 and get the REBEL 9.0 analysis and pass
    the results to their own application.  We received many
    requests for such a facility.

The goals are:

#1. REBEL.EXE TESTPOS.EPD
    This will load the first position in the EPD file. It will override
    the usual 'last position on exit', will bypass the welcome screen
    and immediately will calculate the given EPD position at the last
    time level Rebel 9.0 used.

#2. REBEL.EXE MYGAME.PGN
    This will load the first game of the PGN file. It will override
    the usual 'last position on exit', will bypass the welcome screen
    and immediately will calculate the last position of the given PGN
    game at the last time level Rebel 9.0 used.

#3. Third party programs can use these 2 command line options to call
    Rebel 9.0 within their application and pass the analysis result
    from Rebel 9.0 into their own application since the result of the
    analysis is stored in normal EPD format in the standard file
    REBEL.EPD

As far as I know these options are used in the following chess software:
- EPD2DIAG
- Chess Assistant
- Some software of New in Chess

Ed Schroder


>   Finally, does anyone know of a good chess program that is callable
>from another to perform analysis?



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.