[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] Running GnuGo with an IRC bot

From: Steve Kroon
Subject: Re: [gnugo-devel] Running GnuGo with an IRC bot
Date: Fri, 6 May 2005 08:20:14 +0000 (UTC)

Thanks a lot for your help - I think your suggestions are exactly what I 


On Thu, 5 May 2005, Evan Daniel wrote:

> On 5/3/05, Steve Kroon <address@hidden> wrote:
> > Hi there.
> > 
> > I am trying to set up an IRC bot where the channel can play against GnuGo,
> > using roughly the following format:
> > 
> > Player1> !bot start
> > Bot> Starting GnuGo...
> > Bot> <Outputs board>
> > <Players discuss move>
> > Player2>!bot move d4
> > Bot> <Outputs board after GnuGo has responded>
> > 
> > etc. etc.
> > 
> > To do this, I need to know how to send data to and receive data from
> > GnuGo.  I've tried using pipes (I'm using linux), and I can type my moves
> > in on the console, and GnuGo can pipe my moves out into a file, but I
> > cannot pipe moves into GnuGo.
> > 
> > My understanding is that my IRC Bot will have to implement (at least part
> > of) GTP.  If so, can you point me to a webpage or similar which explains
> > (a) how to connect to GnuGo with GTP, and (b) gives more details on GTP's
> > list of commands.
> > 
> > Thanks,
> Speaking GTP over pipes would be the normal way to do this.  The
> easiest way is probably to launch a GNU Go process as 'gnugo --mode
> gtp', send GTP commands to stdin, recieve answers from stdout.
> The basic commands you'll want are probably play, genmove, undo,
> boardsize, komi, clear_board, and showboard.
> The easiest way to learn more is probably to look at one of the
> programs that ships with GNU Go and speaks GTP; I would recommend
> twogtp-a or twogtp.pike (in interface/gtp_examples) as a good starting
> point.
> Hope this helps,
> Evan

Steve Kroon (address@hidden) 
Department of Statistics 
Stellenbosch University
South Africa

(084) 458-8062

"Never before have I felt so good about losing. Go is great."
-Tristen Taylor

reply via email to

[Prev in Thread] Current Thread [Next in Thread]