void Start() { Debug.Log("testscript is beginning"); UCIAdapter uciAdapter = new UCIAdapter(Application.dataPath + "/Engine/stockfish_10_x64.exe"); uciAdapter.Start(); }
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; }