protected void Init(cuttOfType cuttFunc, evalMethodType evalFunc, BaseGameAlgorithm <TravelGameState> algo, int goal, UndoGameAgent otherPlayer) { _algo = algo; _cuttFunc = cuttFunc; _evalFunc = evalFunc; Goal = goal; _otherPlayer = otherPlayer; }
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); }
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); }
public BaseGameAgent(cuttOfType cuttFunc, evalMethodType evalFunc, BaseGameAlgorithm <TravelGameState> algo, int startLocation, int goal, UndoGameAgent otherPlayer) : base(startLocation) { Init(cuttFunc, evalFunc, algo, goal, otherPlayer); }