Exemple #1
0
    protected override void OnBoardModelUpdated()
    {
        base.OnBoardModelUpdated();
        if (IsMyTurn())
        {
            Communicator.MoveData move = Communicator.CalcOptimalMove(Controller.GetBoardSnapshot(), Color, recurenceDeep);
            if (move.IsPass())
            {
                return;
            }

            StartCoroutine(ApplyMove(move.I, move.J));
        }
    }