Beispiel #1
0
        /// <summary>
        ///   Finds the specified state.
        /// </summary>
        /// <param name="state">The state.</param>
        /// <returns>ISuccessor.</returns>
        public override TSuccessor Find(IAdversarialState state)
        {
            Root = new Node(state);
            var a = state.Player ? Max(Root, double.NegativeInfinity, double.PositiveInfinity) : Min(Root, double.NegativeInfinity, double.PositiveInfinity);

            return(a.Successor as TSuccessor);
        }
Beispiel #2
0
        /// <summary>
        ///   Finds the specified state.
        /// </summary>
        /// <param name="state">The state.</param>
        /// <returns>ISuccessor.</returns>
        public override TSuccessor Find(IAdversarialState state)
        {
            Root = new Node(state);
            var a = state.Player ? Max(Root) : Min(Root);

            return((TSuccessor)a.Successor);
        }
Beispiel #3
0
        public override ISuccessor Find(IAdversarialState state)
        {
            Root = new Node(state);
            Node a;

            if (state.Player)
                a = Max(Root, double.NegativeInfinity, double.PositiveInfinity);
            else
                a = Min(Root, double.NegativeInfinity, double.PositiveInfinity);

            return a.Successor;
        }
Beispiel #4
0
        public override ISuccessor Find(IAdversarialState state)
        {
            Root = new Node(state);
            Node a;

            if (state.Player)
                a = Max(Root);
            else
                a = Min(Root);

            return a.Successor;
        }
Beispiel #5
0
        public override ISuccessor Find(IAdversarialState state)
        {
            Root = new Node(state);
            Node a;

            if (state.Player)
            {
                a = Max(Root, double.NegativeInfinity, double.PositiveInfinity);
            }
            else
            {
                a = Min(Root, double.NegativeInfinity, double.PositiveInfinity);
            }

            return(a.Successor);
        }
Beispiel #6
0
        public override ISuccessor Find(IAdversarialState state)
        {
            Root = new Node(state);
            Node a;

            if (state.Player)
            {
                a = Max(Root);
            }
            else
            {
                a = Min(Root);
            }

            return(a.Successor);
        }
Beispiel #7
0
 /// <summary>
 ///   Finds the specified state.
 /// </summary>
 /// <param name="state">The state.</param>
 /// <returns>ISuccessor.</returns>
 public abstract TSuccessor Find(IAdversarialState state);
Beispiel #8
0
 public abstract ISuccessor Find(IAdversarialState state);