gogui-twogtp

For discussing go computing, software announcements, etc.
User avatar
karaklis
Lives in sente
Posts: 797
Joined: Tue Apr 20, 2010 2:14 pm
GD Posts: 600
Has thanked: 93 times
Been thanked: 105 times

Re: gogui-twogtp

Post 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.
Rémi
Lives with ko
Posts: 170
Joined: Sat Jan 14, 2012 4:11 pm
Rank: KGS 4 kyu
GD Posts: 0
Has thanked: 32 times
Been thanked: 119 times
Contact:

Re: gogui-twogtp

Post 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
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post 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.
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
Rémi
Lives with ko
Posts: 170
Joined: Sat Jan 14, 2012 4:11 pm
Rank: KGS 4 kyu
GD Posts: 0
Has thanked: 32 times
Been thanked: 119 times
Contact:

Re: gogui-twogtp

Post by Rémi »

I recommend the computer-go mailing list for such questions. All the programmers are there.
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

Just signed up, thanks. :)
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: gogui-twogtp

Post by Phelan »

Just posted lithos GTP.
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
skan
Dies in gote
Posts: 33
Joined: Fri Oct 07, 2011 4:52 pm
GD Posts: 0
Has thanked: 3 times

Re: gogui-twogtp

Post 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?
skan
Dies in gote
Posts: 33
Joined: Fri Oct 07, 2011 4:52 pm
GD Posts: 0
Has thanked: 3 times

Re: gogui-twogtp

Post 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.
Post Reply