Closed HackYardo closed 3 months ago
In your gtp
function, should you really be launching a new bot_run
every loop iteration?
Absolutely not. It shouldn't launch a new gtp session every loop iteration. Thank you so much, it blocks me for a week.
Hello there, your blog about python subprocess 2017 is pretty helpful! But here is a special use case:
I use python to interact with gnugo, a GoTextProtocl engine, to play the game of Go. In short, the gtp protocol follows:
In shell, it works fine:
The "X" and "O" stand for the pieces of player black and player white.
In python, it works weird?
Two players move at the same point "A1" and the board is empty. Why python clears the cache of external programes?
The
gotextprotol.py
: