online-go / gtp2ogs

GTP Wrapper to allow bots to interface with the Online-Go.com Server
MIT License
88 stars 29 forks source link

Add support for a secondary "Resign Bot" #390

Closed anoek closed 1 year ago

anoek commented 1 year ago

This PR adds support for a new flag --resignbot "<cmd> <args>", which when specified will start up a second bot command to consult for each move, if the resulting move is a resignation, the bot will resign.

The goal of this is to allow weak bots, who sometimes have trouble realizing they should resign, to use a second presumably much stronger bot to handle resigning in a timely manner.

This PR also contains some non functional refactoring to switch from callback to async style processing in much of our bot and game code, which made adding this feature notably easier and reduces the overall complexity of the code base.

anoek commented 1 year ago

Closing in favor of v8 which incorporates support for this