You can find my Ruby Mogo controller here: http://fantius.com/Mogo.rb
I created and used this for MechaGoZilla in the November KGS Computer Go Tournament. On Dec 5, 2007 8:53 AM, Edward de Grijs <[EMAIL PROTECTED]> wrote: > > > Hi Hideki, > > The file is used by: > cat file | mogo <arguments> > > Adding quit to the file lets mogo quit the game, but > I want to let mogo wait for the obvious next command like > play b <vertex> > > Normally I use the pipe with a self made server program > that send a new line through the pipe each time one of > the two programs, which are competing, generate a move. > This works for my program, and also for gnugo, but > mogo reacts differently. > > Maybe I am using a wrong method, or there are much > better ways to do this, please let me know. > > How do others let programs play against each other > while maintaining full control as a server? > > Thanks, > Edward. > > > > > > > > > > Date: Wed, 5 Dec 2007 22:17:03 +0900 > > From: [EMAIL PROTECTED] > > Subject: Re: [computer-go] Re: Update of MoGo binary release, and windows > version available! > > To: computer-go@computer-go.org > > > > > > Adding "quit" does not help? > > > > Edward de Grijs: <[EMAIL PROTECTED]>: > > > > > > > > > > > >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 > > > > > > ________________________________ > Windows Live Mail: Nu 2gb aan opslag - dat zijn maar liefst 1000 foto's - en > nog steeds gratis! Windows Live Mail > _______________________________________________ > computer-go mailing list > computer-go@computer-go.org > http://www.computer-go.org/mailman/listinfo/computer-go/ > _______________________________________________ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/