Example #1
0
        public NeutralAgent(int startLocation, int goal, UndoGameAgent otherPlayer, int depth, int MaxMoves) : base(startLocation)
        {
            var cuttOf = new BasicCuttof();

            cuttOf.SetParams(this, depth);
            NaturalEval eval = new NaturalEval(goal, this, MaxMoves);

            Init(cuttOf.Run, eval.Run, new MaxiMax <TravelGameState>(false), goal, otherPlayer);
        }
Example #2
0
        public CompetetiveAgent(int startLocation, int goal, UndoGameAgent otherPlayer, int depth, int MaxMoves)
            : base(startLocation)
        {
            var cuttOf = new BasicCuttof();

            cuttOf.SetParams(this, depth);
            RivalsEval eval = new RivalsEval();

            eval.SetParams(this, otherPlayer, MaxMoves);
            Init(cuttOf.Run, eval.Run, new MiniMax <TravelGameState>(), goal, otherPlayer);
        }