----- Original Message ----- From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Monday, April 02, 2007 12:51 AM
Subject: Re: [Jprogramming] stdin/stdout


I suspect that the chess game uses interactive
stdin/stdout conversation, as opposed to single
in/out exchange that all the task operations are
constructed for.

Yes that's right.

> Is there a sample of a small complete session
with the chess programm written in C or Perl, etc?
Preferably reproducible in a simple way.

I found at http://www.arasanchess.org/ the Engineco.cpp which is probably a good implementation.
Thanks Oleg for your advice.


--- JC Coez <[EMAIL PROTECTED]> wrote:

I used "spawn" (from task.ijs) and I understand now that the chess engine is
always requiring some data and loops with a reply such as 'invalid
command,try...' until the variable which receives the data is 32meg. and J hangs... I don't know how to modify the ReadAll so that the loop would not
occur and the process would only wait until new data colud be sent to the
engine. Is that possible ?

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to