Beispiel #1
0
 public RandomNodeMultiple(List<ITreeNode> nodeList, ITreeNode backNode, DecisionTree tree)
 {
     this.nodeList = nodeList;
     rnd = new Random();
     permutation = new int[nodeList.Count];
     this.tree = tree;
     this.backNode = backNode;
 }
Beispiel #2
0
 public ForBestRoadNode(ITreeNode trueNode, ITreeNode falseNode, DecisionTree tree)
     : base(trueNode, falseNode, null)
 {
     this.tree = tree;
 }
Beispiel #3
0
 public FakeActionNode(DelAction action, DecisionTree tree)
     : base(action, tree)
 {
 }
Beispiel #4
0
 public ActionNode(DelAction action, DecisionTree tree)
 {
     this.action = action;
     this.tree = tree;
 }
Beispiel #5
0
 public SerialNode(List<ITreeNode> nodeList, ITreeNode backNode, DecisionTree tree)
 {
     this.nodeList = nodeList;
     this.backNode = backNode;
     this.tree = tree;
 }
Beispiel #6
0
        public void InitAIComponent(IMapController mapController, int [][] koef)
        {
            this.mapController = mapController;
            Fitness.SetMapController(mapController, this);

            freeTownPlaces = new List<ITown>();
            towns = new List<ITown>();
            freeRoadPlaces = new List<IRoad>();
            freeHexaInTown = 0;
            sourceNormal = new int[5];
            for (int loop1 = 0; loop1 < 5; loop1++)
                sourceNormal[loop1] = 0;

            licenceAmount = 0;
            upgradeAmount = 0;

            decisionTree = new DecisionTree(mapController, this);
        }
 public ForEachFreeHexInTownNode(ITreeNode trueNode, ITreeNode falseNode, bool sourceBuilding, DecisionTree tree)
     : base(trueNode, falseNode, null)
 {
     this.tree = tree;
     this.sourceBuilding = sourceBuilding;
 }
 public ForBestFortHexaNeighbourNode(ITreeNode trueNode, ITreeNode falseNode, DecisionTree tree)
     : base(trueNode, falseNode, null)
 {
     this.tree = tree;
 }