Tianshou/AlphaGo/test.py

15 lines
298 B
Python
Raw Normal View History

2017-12-08 17:05:33 +08:00
import sys
from game import Game
from engine import GTPEngine
# import utils
game = Game()
engine = GTPEngine(game_obj=game, name='tianshou')
cmd = raw_input
while not engine.disconnect:
command = cmd()
result = engine.run_cmd(command)
sys.stdout.write(result)
sys.stdout.flush()