SabakiHQ / Sabaki

An elegant Go board and SGF editor for a more civilized age.
https://sabaki.yichuanshen.de/
MIT License
2.39k stars 376 forks source link

GTP `analyze` command #946

Closed p3achyjr closed 7 months ago

p3achyjr commented 1 year ago

Hello! The docs say, for analyze, that "The response will terminate when any input is written to stdin."

Is this literally any input, or can newlines suffice?

HackYardo commented 1 year ago

It's an unsolved GTP issue since LeelaZero. For GTP, a text protocol of Go programs, a blank new line means the end of a command output. While modern Go AIs support analyze command, which output is very long and hard to know the end. Finally LZ standardize it as is, and then Ray, SAI, KataGo follow as far as I know. A blank newline or any input will stop analyze command. The end of analyze command output is two blank newlines.