[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [computer-go] GTP with GNUGo on Windows
Download gogui!
http://www.markus-enzenberger.de/compgo/gogui.html
If your program can respond to gtp commands on standard input then you
can use the java program "twogtp" which comes with gogui. There is no
need to write controller code (your program do not have to talk directly
to gnugo, it needs only repond to commands from twogtp (or any other
controller program).
Then you need a .bat file with the following content (I do not remember
the exact syntax since I did it only once on my computer back home).
(the stuff that start java) twogtp.jar "myprogram -op1 -op2" "oppprogram
-opA -opB" -o1 -o2
This will start three processes
myprogram -op1 -op2
oppprogram -opA -opB
twogtp -o1 -o2
Where twogtp is the controller who administer games between myprogram
and oppprogram.
Twogtp has a lot of useful options and saves all games as sgf. It also
keep track of all results in a special file which can be converted into
a really nice report in html with the distributions of the results and
statistics over winning probabilities as well as mean score. If you
match two weak programs which cannot compute the final score then you
can use a third program (gnugo) as referee.
It is easier to say what twogtp cannot do:
It cannot load a library of opening position where the programs play
once as black and once as white. This would be nice if the programs you
use are too deterministic and end up playing the same games over and
over.
If you need some Delphi code for windows for doing this I have some
crude code. It seems that at least Deplhi 5 can be a little tricky with
std in/out communication part.
And by the way if you are able to do the stuff above, then it is almost
trivial to use KGSgtp to connect to KGS.
Best wishes
Magnus
--
Magnus Persson
Center for Adaptive Behavior and Cognition
> -----Original Message-----
> From: Frank de Groot [mailto:frank@xxxxxxxxxxxxxxxxx]
> Sent: Sonntag, 19. September 2004 19:37
> To: computer-go
> Subject: [computer-go] GTP with GNUGo on Windows
>
> I read the GTP specification but I do not understand how to use the
GTP
> with
> GNUGo when the client resides on the same machine as GNUGo (I hope I
wrote
> it correctly).
>
> Is GNUGo listening on a socket? A port? A named pipe? (if something
like
> that exists in Windows).
> Do I need to set up a TCP/IP connection or does everything go via
stdin &
> stdout (if something like that exists on Windows..). Can GNUGo be
> configured
> to do GTP over a RS232 port?
>
> It would be nice if someone could shed some light on exactly HOW to
reach
> GNU Go whith GTP.
> There might be some people who have some examples specific to Delphi,
but
> the slightest hint will get me going, I don't need actual source code.
>
> I understand the GTP protocol, I understand there is a GNUGo.exe but
even
> after spending hours of reading the specs & Googling, I haven't got
the
> slightest clue on how to open up a communication channel with GNU Go..
>
> I assume it is so obvious that it does not merit any explanation, or
that
> I
> have failed to find it, yet I give up :)
>
> _______________________________________________
> computer-go mailing list
> computer-go@xxxxxxxxxxxxxxxxx
> http://www.computer-go.org/mailman/listinfo/computer-go/
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/