42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
import java.util.Random;
|
|
import javax.swing.JFrame;
|
|
import javax.swing.JOptionPane;
|
|
|
|
public class AlgoDeter {
|
|
public static final int MUR = 1;
|
|
public static final int PARCOURU = 0;
|
|
|
|
private int[][] Parcours;
|
|
private boolean[][] map;
|
|
private Cellules[][] grille;
|
|
private int[] coordGate;
|
|
|
|
private int cetteTaille;
|
|
private int comptErreur=0;
|
|
|
|
private These notreThese;
|
|
|
|
private JFrame cetteFrame;
|
|
|
|
public AlgoDeter(int uneTaille, boolean[][] tableau, Cellules[][] uneGrille, JFrame uneFrame) {
|
|
this.cetteTaille = uneTaille;
|
|
this.map = tableau;
|
|
this.grille = uneGrille;
|
|
this.cetteFrame = uneFrame;
|
|
}
|
|
|
|
public void auto() {
|
|
int decompte = 0;
|
|
|
|
this.coordGate = outils.ParcoursCell(this.grille, this.cetteTaille);
|
|
//this.notreThese = new These(this.coordGate[0], this.coordGate[1], this.cetteTaille, this.map);
|
|
|
|
Parcours ceParcours = new Parcours(this.grille, this.coordGate[0], this.coordGate[1], this.cetteTaille);
|
|
}
|
|
|
|
public void manuel(){
|
|
this.coordGate = outils.ParcoursCell(this.grille, this.cetteTaille);
|
|
ParcoursManuel ceParcour = new ParcoursManuel(this.grille, this.coordGate[0], this.coordGate[1], this.cetteTaille);
|
|
}
|
|
}
|