It is currently Fri May 02, 2025 11:31 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
Offline
 Post subject: GTP and time settings
Post #1 Posted: Tue Dec 06, 2011 8:25 am 
Lives in sente
User avatar

Posts: 796
Liked others: 93
Was liked: 105
GD Posts: 600
I am currently studying the "Go Text Protocol" (GTP) which is used for communication between a GUI and a go engine. I stumbled upon the paragraph about the time settings. It says that GTP (the latest version 2 which is a draft that exists since 2002 and hasn't changed for ten years) only supports Canadian byoyomi. Does anybody know whether there are GUIs/engines that use a non-standard exstension that supports other time settings like Japanese byoyomi or Fischer?

I am brainstorming for creating a go engine, and one of the points is to have an efficient time handling, which also may be more human-like. Besides it is possibly more fun to play an engine that makes obvious moves rather quickly so that it has more time to ponder on difficult situations.


Last edited by karaklis on Tue Dec 06, 2011 10:39 am, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: GTP and time settings
Post #2 Posted: Tue Dec 06, 2011 10:21 am 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
kgs uses its own extension command, kgs-time_settings. Quoting from the docs:

Quote:
Similar to the boardsize command, you may get several
time settings commands; any settings that your engine cannot play with,
you should return an error. If your engine supports the
kgs-time_settings command, then you will get that instead of
the standard time_settings command. The reson for the
KGS-specific time setting is that GTP's standard time settings has no
way to describe the byo-yomi time system. This system is quite popular
in tournaments and is used often on KGS. The format for the
kgs-time_settings command is the same as
time_settings, but another parameter is inserted
as the first parameter, which describes the time system as either
none, absolute, byoyomi, or canadian.
For the none and absolute time systems there will be
fewer than two options. If you do not support kgs-time_settings
and your engine is put into a byo-yomi game, kgsGtp will tell your engine
that it is an absolute time game with no byo-yomi periods and a total time
equal to the main time and all of the periods.


So if you want to support other time controls I think that's the way to do it.

Top
 Profile  
 
Offline
 Post subject: Re: GTP and time settings
Post #3 Posted: Tue Dec 06, 2011 10:25 am 
Gosei
User avatar

Posts: 1744
Liked others: 704
Was liked: 288
KGS: greendemon
Tygem: greendemon
DGS: smaragdaemon
OGS: emeraldemon
Just an aside, if you plan to run your engine on KGS you should definitely implement final_status_list and kgs-genmove_cleanup, although those won't matter as much if you're playing tromp-taylor rules.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group