Ejemplo n.º 1
0
 public Minimax(int i, Heuristic f)
     : base("Minimax " + i + "(" + f.ToString() + ")")
 {
     treeDepth = i;
     scoringFunction = f;
 }
Ejemplo n.º 2
0
 public Greedy(Heuristic scoringFunction)
 {
     this.scoringFunction = scoringFunction;
     name = "Greedy " + scoringFunction.ToString();
 }
Ejemplo n.º 3
0
 public static void Save(string name, Heuristic fn)
 {
     System.IO.File.AppendAllText(save, name + ":" + fn.ToString() + "\n");
 }