Example #1
0
File: Solver.cs Project: MOAAS/IART
 /* Heuristic 3
  *  1 / Sum of the number of tiles that can be covered with the current layout
  */
 public static int Heuristic3(ZhedBoard board)
 {
     if (board.isOver)
     {
         return(0);
     }
     return(1000 / board.getBoardMaxValue());
 }
Example #2
0
File: Solver.cs Project: MOAAS/IART
        public int Heuristic3(ZhedBoard board)
        {
            if (board.isOver)
            {
                return(0);
            }
            int a = 1000 / board.getBoardMaxValue();

            //Console.WriteLine(a);
            return(a);
        }