Oleg,
Sorry for the attachment. I downloaded the zip file of Arasan 9.5 for windows http://www.arasanchess.org/downld.html and found the Engineco.cpp in which the thread and write/read to/from any chess engine (it seems that all engines could be used as soon as they do stdin/stdout); I did not run it but I did use another engine from http://transversale.fr/Arion/Arion.htm. If I run Arion from a start/execute windows I enter a move such as 'e2e4' and the engine do some calculation, display about 20 lines and a proposal such as 'move e7e6' and wait for the next input. With my J program, Arion always receives something similar at what it would receive if I just do enter from the windows console and display an error message and then loop.
Hope it is a little bit clearer...


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


Attachments don't work in Forum.

Please send the text inline. Preferably
a very small program that demos each necessary
operation just once, not the whole chess session.

And a brief instruction what do I need to do
to download, install and run the chess engine
with that C++ program on Windows
(of course Windows, what else is "task" for :) ).


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

Oleg,
Sorry for my preceding post, I forgot to send the C++ code
JC Coez

> > 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




____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------------------------
Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
Aucun virus connu a ce jour par nos services n'a ete detecte.





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

Reply via email to