public static void main(String args[]) throws Exception{
        Carte carte = null;
        carte = ParseurCarteTxt.parseCarte(new BufferedReader(new FileReader(args[0])));
        Noeud ni = carte.getNoeud(args[1]);
        if(ni==null) throw new Exception("Noeud " + args[1] + " inexistant dans la carte!");
        Etat etatinitial = new Etat(ni);
        Noeud nb = carte.getNoeud(args[2]);
        if(nb==null) throw new Exception("Noeud " + args[2] + " inexistant dans la carte!");        
        But but = new But(nb);
        astar.Heuristique h = but;
        List<astar.Action> plan = astar.AStar.genererPlan(carte, etatinitial, but, h);
        System.out.print("#Chemin:");
        if(plan==null)
            System.out.println("<Aucune solution>");
        else
            for(astar.Action action : plan)
                System.out.print(action.toString()+ " ");
        System.out.println();
    }