if(x == xFinish && y == yFinish)
{
    string path="";
    while(!(x == xStart && y == yStart))
    {
        j = dir_map[x][y];
        c ='0' + (j+dir/2)%dir;
        path = c + path;
        x += dx[i];
        y += dy[j];
    }
Galeria / Screens