Exemple #1
0
    /// <summary>
    /// Called when the analysis is completed.
    /// </summary>
    private void _analysisComplete()
    {
        _sortMovesOnBoardValue(Moves, MoveAsWhite);
        if (Moves.Count > 0)
        {
            _callback(Moves[0]);
        }

        CurrentBoardValue = _board.Evaluate();


        Finished = true;

        //stopwatch.Stop();
        //UnityEngine.Debug.Log("time: " + stopwatch.Elapsed);
    }
    /// <summary>
    /// Called when the analysis is completed.
    /// </summary>
    private void _analysisComplete()
    {
        _sortMovesOnBoardValue(moves, moveAsWhite);
        //UnityEngine.Debug.Log("Analysis complete. " + moves.Count);
        if (moves.Count > 0)
        {
            _callback(moves);
        }

        currentBoardValue = _board.Evaluate();


        finished = true;

        //stopwatch.Stop();
        //UnityEngine.Debug.Log("time: " + stopwatch.Elapsed);
    }