public HeuristicFunction(ref Board solution) { this.solution = solution; this.heuristics[0] = this.Manhattan; this.heuristics[1] = this.Euclidian; this.heuristics[2] = this.Oklop; this.heuristics[3] = this.Gwynefis; this.heuristics[4] = this.UniformCost; this.heuristic = heuristics[1]; }
public void SetHeuristic(Types type) { this.heuristic = heuristics[(int)type]; }