#include <iostream>
#include <vector>
using namespace std;


#include "path.hpp"


void affiche(const char * map,int w, int h)
{
    for (int y=0;y<h;y++)
    {
        for (int x=0;x<w;x++)
            cout << *(map+_index(x,y,w));
        cout << endl;
    }
}

int main()
{

    vector<node> * tmp = pathfind('A','D');
    
    vector<node>::iterator it = tmp->begin();
    while (it!=tmp->end())
    {
        cout << it->index << " " << it->cost << " from " << it->parent << endl;
        it++;
    }
    
    return 0;
}
