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

Re: computer-go: Go Text Protocol (GTP)



Philipp Garcia wrote:

> I have implemented the following commands: boardsize, version, black, white,
> quit, loadsgf, echo, new, print, is_legal, prisoners, showboard, all_legal,
> what_color. It's certainly not complete and I'm not completely sure if the
> output is the same as in GNU Go. A standards document would be helpful in
> this area. I find that GTP very useful during development; especially when
> testing. I can easily setup test problems and assert assumptions.

Don Dailey wrote:

> I am interested in a standards document for GTP too.  I  can go in and
> start  making up my own commands,  but I want   whatever I use to have
> some hope of being useful to others.

It seems that a standards document is badly needed.

Don, what commands does your implementation implement?
I think seeing what commands the early applications make
use of is a step towards a standard.

I've put up a revised version of the twogtp script at:

http://www.gnu.org/software/gnugo/patches/twogtp

This GPL'd perl script (originally by Teun Burgers, and
inspired by Jean-Louis Martineau's twogmp program) plays
two gtp processes against each other. In its revised
(useful!) form it can play tournaments consisting of
multiple games and record each game in an sgf file. It
gets the location of handicap stones from the gtp. It
makes use of the following commands:

boardsize, komi, fixed_handicap, genmove_black,
genmove_white, black, white, new_score and quit.

Dan