Skip to content
rookliftPublic

About

Match runner for Go Text Protocol (GTP) engines

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

80 Commits

Folders and files

Repository files navigation

Connect two Go (game) engines via Go Text Protocol (GTP).

Building

  • go get github.com/rooklift/sgf
  • go build twogtp.go

Features

  • Plays multiple games with alternating colours
  • Optional forced opening via SGF file
  • Crash detection
  • Legality checks
  • Match resumption
  • Timeouts
  • Automatic SGF saving

Notes

  • SGF files are saved in the same directory as the config file (which you pass to twogtp as its only command line argument).
  • Control whether the engines are restarted between games with the restart option. We try to send the GTP command clear_cache to all engines anyway, but this was added to Leela Zero only after 0.17. Without it LZ may reuse its cached data, which can only be prevented by restarting.
  • The passing_wins option is a cheap hack to allow LZ test matches to end early; the first engine to pass is considered the winner (this is usually correct).
  • Otherwise, we currently do not try to calculate the score if the game ends due to 2 passes.
  • Ongoing match results are saved directly into the config file, allowing match resumption.

About

Match runner for Go Text Protocol (GTP) engines

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages