package grafy; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Labirynt{ static W tab[][] = new W[100][100]; static void BFS(List graf, int s){ List list = new ArrayList(); for(int i=0;i graf, W ws, W wk){ MakePath(ws, wk); for(int i=0;i<50;++i){ for(int j=0;j<50;++j){ System.out.print(tab[i][j].c); } System.out.println(); } } public static void main(String[] args) throws FileNotFoundException { // TODO Auto-generated method stub Scanner sc = new Scanner(new File("H:\\java\\workspace\\klasa3\\src\\grafy\\labirynt.txt")); List graf = new ArrayList(); W w; Kr kr; // w.BFS(graf, 0); // sc.close(); int Sx =0, Sy =0, Kx=0, Ky=0, y=0; // W tab[][] = new W[100][100]; for(W[] t: tab){ for(W z: t){ z=null; } } int asd=0; while(sc.hasNext()){ String str = sc.nextLine(); if(str.charAt(0)=='*')continue; for(int x=0; x