Author: F. Huber
Date: 04:30:20 07/28/02
Hello to all programmers, in the last few days I adapted a little mate-solving program (´Mater´ from Valentin Albillo) to the UCI-interface for running it from any UCI-GUI (e.g. Arena). I started my UCI experiments with this program, because it´s written in Borland-Pascal 7 (for DOS), and this is the language that I´m familiar with - until now I thought so! Ok, my program is running (under Arena), but now I have a BIG problem: I can´t find any possibility for the program to find out, if the calling program (i.e. Arena) wants to abort it, i.e. sends a ´stop´ command. But without such an interruption my program isn´t very much worth - mate solving can take very/too long time! I really can´t say, how many tricks I´ve tried - nothing worked. The normal way with the ´Read´ command doesn´t, because it is waiting until some input and so would stop the program. So I tried to handle the standard input via a named buffer variable (´settextbuf´) and checked for the contents of this buffer - also no success, it seems that this buffer is only used/filled AFTER a ´read´ command. And these are only a few examples of my unsuccessful trials! So my last chance maybe one of you: Is there any way for the called program to check the standard input, if the calling program is sending anything (via it´s standard output) WITHOUT or BEFORE actually reading this standard input by a ´read´ command? (Because such a ´read´ would wait until there´s really something in the input queue, it only should be executed after being sure to have some input). I really hope, that anyone could help me in solving this problem, otherwise I would have to stop the further development of this mate-solving program, although it would be nice to have such an UCI (maybe also WinBoard) engine for solving chess problems. Hopefully awaiting a lot of suggestions, best regards, Franz.
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.