No problem.  You might also be able to use my Ruby GTP implementation:
 http://fantius.com/Gtp.html


On Dec 7, 2007 5:49 AM, Edward de Grijs <[EMAIL PROTECTED]> wrote:
>
>
>
>  Hi,
>
>  I have a solution now, thanks for all the help.
>
>  For those interested, the solution for me:
>  I use a ruby script (thanks Chris), to open de mogo
>  program (with IO.popen) and with gets en puts
>  it is possible to read the commands from stdin,
>  and outputs these commands to mogo.
>  Obvously ruby can send these commands without EOF,
>  so mogo does work properly this way.
>  I noticed however that is could be necessary to wait
>  for the reply of mogo before sending another command,
>  because otherwise it sometimes fails.
>
>  Thanks,
>  Edward.
>
>
>
>
>  ________________________________
>  From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: RE: [computer-go] Re: Update of MoGo binary release, and windows
> version available!
> Date: Wed, 5 Dec 2007 11:23:42 +0100
>
>
>
>
> Hi to all,
>
> Can someone help me with this problem, for which I cannot
> find a solution:
> I am trying to run MoGo in an automatic way, using the
> cygwin toolkit.
> The problem in its simplest form is this:
> If I use MoGo on the command line, typing the commands which
> are send by stdin (i suppose) it works perfectly.
> If I make a file with command like:
> > boardsize 9
> > genmove w
> Then MoGo will continue to perform a genmove, and can only
> be stopped by killing it.
> I vagely suspect that it has something to do with non-blocking
> input, but I also do not know all the aspects of this.
> To be honest, I tried to implement pondering using non-blocking
> input, but that did not work out this way, because of some alike
> problems...
>
> Now I can run GoGui, and this program seems to work fine
> with Mogo, so it must be possible to interact automatically.
>
> Can you help me?
> What am I doing wrong?
>
> Thanks,
> Edward
>
>
>
>
>
>  ________________________________
>  Pas je zoekresultaten aan op JOUW wensen met Live.nl! Live.nl
> ________________________________
> Windows Live Messenger het beste van de toekomst Download NU! Windows Live
> Messenger!
> _______________________________________________
> computer-go mailing list
> [email protected]
> http://www.computer-go.org/mailman/listinfo/computer-go/
>
_______________________________________________
computer-go mailing list
[email protected]
http://www.computer-go.org/mailman/listinfo/computer-go/

Reply via email to