*I'm trying to open my RANDOM exit's maze in the right side from my maze there: Exit Maze and here is my code:
private int hauteur;
private int largeur;
private static final int LMURET = 8;
private static final int HMURET = 4;
private char[][] dessinLaby;
public Labyrinthe(int h, int w) //en nbre de cases
{
this.hauteur = h;
this.largeur = w;
this.dessinLaby = new char[this.hauteur*HMURET+1][this.largeur*LMURET+1];
}
public void dessineOuverture(int j)
{
for(int x=(j*LMURET+1)-1; x<j*LMURET+1; x++)
{
int a = (int) ( Math.random()*((hauteur*HMURET+1)-2) );
if( (a%4) != 0)
{
for(int b=0; b<2; b++)
{
System.out.println(this.dessinLaby[a][(j*LMURET+1)-1] = ' '); // dans le cas ou ca tombe sur 1
}
}
}
}
But nothing happening, can you help me please ?*