示例#1
0
    void Start()
    {
        Debug.Log("testscript is beginning");
        UCIAdapter uciAdapter = new UCIAdapter(Application.dataPath + "/Engine/stockfish_10_x64.exe");

        uciAdapter.Start();
    }
示例#2
0
    public AIPlayer(PlayerColor playerColor)
    {
        this.playerColor             = playerColor;
        uciAdapter                   = new UCIAdapter(Application.dataPath + RELATIVE_ENGINE_PATH);
        uciAdapter.EngineMovedEvent += OnEngineMoved;
        uciAdapter.Start();
        while (!uciAdapter.IsReady)
        {
        }
        UCIThreadAdapter uciThreadAdapter = UCIThreadAdapter.GetInstance();

        uciThreadAdapter.playerActedEvent += OnPlayerAct;
    }