예제 #1
0
 public static Evaluator Get(Map map)
 {
     if (map.Mines.Length == 4)
     {
         return(FourMinesEvaluator.Create(map));
     }
     return(new Evaluator());
 }
예제 #2
0
        public static FourMinesEvaluator Create(Map map)
        {
            var evaluator = new FourMinesEvaluator();

            evaluator.Map           = map;
            evaluator.MineDistances = map.GetDistances(map.Mines);

            return(evaluator);
        }