Пример #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;
    }