Esempio n. 1
0
from dlgo.gtp import GTPFrontend
from dlgo.agent.predict import load_prediction_agent
from dlgo.agent import termination
import h5py

model_file = h5py.File("agents/deep_bot.h5", "r")
agent = load_prediction_agent(model_file)
strategy = termination.get("opponent_passes")
termination_agent = termination.TerminationAgent(agent, strategy)

frontend = GTPFrontend(termination_agent)
frontend.run()
Esempio n. 2
0
#!/usr/bin/python2
from dlgo.gtp import GTPFrontend
from dlgo.agent.predict import load_prediction_agent
from dlgo.agent import termination
import h5py

agent = load_prediction_agent(h5py.File("agents/betago.hdf5", "r"))
termination = termination.get("opponent_passes")

frontend = GTPFrontend(agent, termination)
frontend.run()
Esempio n. 3
0
import h5py

from dlgo.gtp import GTPFrontend
from dlgo.agent.predict import load_prediction_agent
from dlgo.agent import termination

model_file = h5py.File('./agents/deep_bot.h5', 'r')
agent = load_prediction_agent(model_file)
strategy = termination.get('opponent_passes')
termination_agent = termination.TerminationAgent(agent, strategy)

frontend = GTPFrontend(termination_agent)
frontend.run()