Author: Robert Hyatt
Date: 18:18:56 02/18/03
Go up one level in this thread
On February 18, 2003 at 11:29:54, Gaƫtan Garcia wrote: > Hi all, > > My students and I are currently developing a freeware chess training >software (not a chess playing program). We would like to be able to call >an existing freely available engine from our program to evaluate positions >and give feedback to the user. > I read through the documentation of Crafty and know how to use it >from the command line in a DOS box. Now I would like to find information >on how to call Crafty (or another free engine) from our own software. >Ideally, we would input a position in FEN and get as output an evaluation >and a PV (or several PVs). > Since Crafty if available as source code, I understand that it is >possible to customize the code and recompile. But is there some way to >call an executable version, as we do not wish to concentrate on the >(complex) chess playing algorithm, but rather on the chess training part. > Thanks for any input. > > G. Garcia Download the source for winboard or xboard (depending on whether your O/S platform is windows or unix based.) That will show you _exactly_ how to create pipes, spawn a child process, and force it to read/write from the pipes to talk to your driver program.
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.