The simplest way should be an extra break condition where you compare the parameters r and c to the row and column class var. But I'm not sure if you will go through the maze the right way then. ...
Type: Posts; User: janpiel
The simplest way should be an extra break condition where you compare the parameters r and c to the row and column class var. But I'm not sure if you will go through the maze the right way then. ...
It happens at the exit of the maze. The exit condition doesnt work in this case becaus there is no wall.
char[][] test = new char[][] {
{ '*', '*', '*', '*', '*' },
{ '*', ' ', ' ',...