Exemplo n.º 1
0
        public static Point get_move(Board b)
        {
            tmp_board curr = new tmp_board(b);

            curr.make_path();
            Point p = curr.get_move();

            return(p);
        }
Exemplo n.º 2
0
        public static tmp_board[] get_all(Board b)
        {
            Point[]     points = b.get_free_space();
            tmp_board[] o      = new tmp_board[points.Length];

            for (int i = 0; i < points.Length; i++)
            {
                o[i] = new tmp_board(b);
                o[i].point_plcae(points[i]);
            }

            return(o);
        }
Exemplo n.º 3
0
        public Point get_move()
        {
            tmp_board o = moves[0];

            foreach (tmp_board b in moves)
            {
                if (o.score < b.score)
                {
                    o = b;
                }
            }
            return(o.move_made);
        }