Page 2 of 2

Re: gogui-twogtp

Posted: Mon Jan 16, 2012 10:46 am
by karaklis
A question that I am interested in as well. I am considerung to make an engine as well, but not before EGC 2012 as I am still focused on improving my own play until then :D But I am already collecting tons of ideas.

Few questions regarding your question.

What programming language do you use? Is it something C like? I used to do some programming with chess engines some 14 years ago (using winboard protocol, without much success though) and remember that it used anonymous pipes.
Does your bot work with GoGui - not via twogtp but directly?
Another GUI that supports GTP is Drago. Could be an option to check whether the bot works with that.

Re: gogui-twogtp

Posted: Mon Jan 16, 2012 2:08 pm
by Rémi
Phelan wrote:I've been working on a new gobot, but am now having trouble getting it to interface with twogtp. When I run my bot from the commandline, it seems to accept all necessary gtp input and respond appropriately, but when I call it through twogtp, the bot doesn't respond at all, even to the 'protocol_version' command...

If anyone is interested in helping me find out what's wrong, let me know, and I'll give you access to the source.

make sure your i/o is unbuffered:
http://home.hccnet.nl/h.g.muller/engine-intf.html#6
and don't forget the extra new-line needed by the gtp protocol.

Rémi

Re: gogui-twogtp

Posted: Mon Jan 16, 2012 5:52 pm
by Phelan
Thanks Rémi, it was exactly those two things I had to change to make it work. :)

karaklis, it's written entirely in ANSI C, I think. I'm planning on putting the code up tomorrow. Don't expect nothing groundbreaking, it was mostly just a way to learn how GTP works.
My next objective is to get it on CGOS, and maybe KGS.

Re: gogui-twogtp

Posted: Tue Jan 17, 2012 1:47 am
by Rémi
I recommend the computer-go mailing list for such questions. All the programmers are there.

Re: gogui-twogtp

Posted: Tue Jan 17, 2012 5:32 am
by Phelan
Just signed up, thanks. :)

Re: gogui-twogtp

Posted: Tue Jan 17, 2012 6:35 am
by Phelan
Just posted lithos GTP.

Re: gogui-twogtp

Posted: Wed Jan 18, 2012 10:01 am
by skan
Hello

I use directly the main GoGUI interface->Program-> there I add a program


"C:\Program Files (x86)\GoGui\gogui-twogtp.exe" -black "gnugo391.exe --mode gtp --chinese-rules -M 256" -white "fuego.exe" -size 19 -komi 7.5 -alternate -auto -computer-both



Or


"C:\Program Files (x86)\GoGui\gogui-twogtp.exe" -black "gnugo391.exe --quiet --mode gtp --chinese-rules -M 1000" -white "fuego.exe --config fuegosettings.gtp"

in the latter case you need to write this lines inside fuegosettings.gtp

uct_max_memory 1000000000
uct_param_player ponder 1
uct_param_search lock_free 1
uct_param_player reuse_subtree 1
uct_param_search number_threads 8


Both work for me.
The only thing that doesn't work properly is the timing.
Does anybody know why?

Re: gogui-twogtp

Posted: Fri Feb 10, 2012 5:32 pm
by skan
I don't use gogui-twogtp since a long time ago but I've reacalled that something is missing from my instructions: I can't get the two engines to play the time I want, for example 10sec each.
You can modify this parameter at each engine's configration and from gogui-twogtp but I don't the proper way to do it. maybe this time is not exact but a recomendation.