Difference between revisions of "GTP"
From HexWiki
(Created a page for GTP) |
(→Example session: Added example session) |
||
| Line 27: | Line 27: | ||
== Example session == | == Example session == | ||
| − | + | boardsize 7 7 | |
| + | = | ||
| + | |||
| + | showboard | ||
| + | = | ||
| + | |||
| + | dcf37c659c5632f9 | ||
| + | a b c d e f g | ||
| + | 1\. . . . . . .\1 | ||
| + | 2\. . . . . . .\2 | ||
| + | 3\. . . . . . .\3 | ||
| + | 4\. . . . . . .\4 | ||
| + | 5\. . . . . . .\5 | ||
| + | 6\. . . . . . .\6 | ||
| + | 7\. . . . . . .\7 | ||
| + | a b c d e f g | ||
| + | |||
| + | play black c3 | ||
| + | = | ||
| + | |||
| + | showboard | ||
| + | = | ||
| + | |||
| + | 63d78dc21cfe93dc | ||
| + | a b c d e f g | ||
| + | 1\. . . . . . .\1 | ||
| + | 2\. . . . . . .\2 | ||
| + | 3\. . B . . . .\3 | ||
| + | 4\. . . . . . .\4 | ||
| + | 5\. . . . . . .\5 | ||
| + | 6\. . . . . . .\6 | ||
| + | 7\. . . . . . .\7 | ||
| + | a b c d e f g | ||
| + | |||
| + | play white d5 | ||
| + | = | ||
| + | |||
| + | showboard | ||
| + | = | ||
| + | |||
| + | 7edf0d0dfa16e804 | ||
| + | a b c d e f g | ||
| + | 1\. . . . . . .\1 | ||
| + | 2\. . . . . . .\2 | ||
| + | 3\. . B . . . .\3 | ||
| + | 4\. . . . . . .\4 | ||
| + | 5\. . . W . . .\5 | ||
| + | 6\. . . . . . .\6 | ||
| + | 7\. . . . . . .\7 | ||
| + | a b c d e f g | ||
| + | |||
| + | genmove black | ||
| + | f6707 info: Winning SC. | ||
| + | = b6 | ||
| + | |||
| + | showboard | ||
| + | = | ||
| + | |||
| + | b3d2f7b4917a6c30 | ||
| + | a b c d e f g | ||
| + | 1\. . . . . . .\1 | ||
| + | 2\. . . . . . .\2 | ||
| + | 3\. . B . . . .\3 | ||
| + | 4\. . . . . . .\4 | ||
| + | 5\. . . W . . .\5 | ||
| + | 6\. B . . . . .\6 | ||
| + | 7\. . . . . . .\7 | ||
| + | a b c d e f g | ||
| + | |||
| + | undo | ||
| + | = | ||
| + | |||
| + | showboard | ||
| + | = | ||
| + | |||
| + | 7edf0d0dfa16e804 | ||
| + | a b c d e f g | ||
| + | 1\. . . . . . .\1 | ||
| + | 2\. . . . . . .\2 | ||
| + | 3\. . B . . . .\3 | ||
| + | 4\. . . . . . .\4 | ||
| + | 5\. . . W . . .\5 | ||
| + | 6\. . . . . . .\6 | ||
| + | 7\. . . . . . .\7 | ||
| + | a b c d e f g | ||
| + | |||
| + | quit | ||
| + | = | ||
Revision as of 17:45, 1 March 2020
Hex GTP (or simply GTP) is a text-based interface for interacting with Hex software. A typical use is to separate front-end software, which provides graphical display of game boards, from back-end software, which implements a Hex strategy engine. The use of a standardized protocol in principle permits any strategy engine, such as Six, MoHex, or Wolve, to be plugged into any graphical front-end, such as HexGui.
Moreover, GTP can also be used by humans to interact with a strategy engine directly, i.e., without the use of a graphical front-end.
Contents
History
Hex GTP is based on the Go Text Protocol (GTP), which was originally developed for Go as part of the GNU Go software.
Software supporting GTP
Frontends
- HexGui
- Todo: add more
Backends
Protocol specification
Not yet written.
Example session
boardsize 7 7 =
showboard
=
dcf37c659c5632f9
a b c d e f g
1\. . . . . . .\1
2\. . . . . . .\2
3\. . . . . . .\3
4\. . . . . . .\4
5\. . . . . . .\5
6\. . . . . . .\6
7\. . . . . . .\7
a b c d e f g
play black c3 =
showboard
=
63d78dc21cfe93dc
a b c d e f g
1\. . . . . . .\1
2\. . . . . . .\2
3\. . B . . . .\3
4\. . . . . . .\4
5\. . . . . . .\5
6\. . . . . . .\6
7\. . . . . . .\7
a b c d e f g
play white d5 =
showboard
=
7edf0d0dfa16e804
a b c d e f g
1\. . . . . . .\1
2\. . . . . . .\2
3\. . B . . . .\3
4\. . . . . . .\4
5\. . . W . . .\5
6\. . . . . . .\6
7\. . . . . . .\7
a b c d e f g
genmove black f6707 info: Winning SC. = b6
showboard
=
b3d2f7b4917a6c30
a b c d e f g
1\. . . . . . .\1
2\. . . . . . .\2
3\. . B . . . .\3
4\. . . . . . .\4
5\. . . W . . .\5
6\. B . . . . .\6
7\. . . . . . .\7
a b c d e f g
undo =
showboard
=
7edf0d0dfa16e804
a b c d e f g
1\. . . . . . .\1
2\. . . . . . .\2
3\. . B . . . .\3
4\. . . . . . .\4
5\. . . W . . .\5
6\. . . . . . .\6
7\. . . . . . .\7
a b c d e f g
quit =