public static Evaluator Get(Map map) { if (map.Mines.Length == 4) { return(FourMinesEvaluator.Create(map)); } return(new Evaluator()); }
public static FourMinesEvaluator Create(Map map) { var evaluator = new FourMinesEvaluator(); evaluator.Map = map; evaluator.MineDistances = map.GetDistances(map.Mines); return(evaluator); }