Tianshou/AlphaGo/test.py
2017-12-07 17:51:58 +08:00

15 lines
296 B
Python

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()