Exemple #1
0
 protected void Init(cuttOfType cuttFunc, evalMethodType evalFunc, BaseGameAlgorithm <TravelGameState> algo, int goal, UndoGameAgent otherPlayer)
 {
     _algo        = algo;
     _cuttFunc    = cuttFunc;
     _evalFunc    = evalFunc;
     Goal         = goal;
     _otherPlayer = otherPlayer;
 }
Exemple #2
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);
        }
Exemple #3
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);
        }
        public CoopertiveAgent(int startLocation, int goal, UndoGameAgent otherPlayer, int depth, int MaxMoves)
            : base(startLocation)
        {
            var cuttOf = new CooperativeCuttof();

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

            eval.SetParams(this, otherPlayer, MaxMoves);
            Init(cuttOf.Run, eval.Run, new MaxiMax <TravelGameState>(true), goal, otherPlayer);
        }
Exemple #5
0
 public BaseGameAgent(cuttOfType cuttFunc, evalMethodType evalFunc,
                      BaseGameAlgorithm <TravelGameState> algo, int startLocation, int goal, UndoGameAgent otherPlayer)
     : base(startLocation)
 {
     Init(cuttFunc, evalFunc, algo, goal, otherPlayer);
 }