import sys from conf import conf from play import game_init, index2coord, coord2index, make_play, new_tree from nomodel_self_play import select_play from predicting_queue_worker import put_predict_request import string from __init__ import __version__ import numpy as np from simulation_workers import init_simulation_workers_by_gpuid from predicting_queue_worker import init_predicting_workers, destroy_predicting_workers import logging from app_log import setup_logging setup_logging() logger = logging.getLogger("sejonggo") COLOR_TO_PLAYER = {'B': 1, 'W': -1} SIZE = conf['SIZE'] class SejongGoEngine(object): def __init__(self, mcts_simulations, board, resign=None, temperature=0, add_noise=False, process_id=0): self.mcts_simulations = mcts_simulations self.resign = resign self.temperature = temperature self.board = board
def call_main_window(): app = QtGui.QApplication(sys.argv) setup_logging() GUI = Top_Window() sys.exit(app.exec_())