protected char walkAround(char[][] grid) { | protected char walkAround(char[][] grid) { | ||||
if (steps == 0) { | if (steps == 0) { | ||||
steps = random.nextInt(20); | steps = random.nextInt(20); | ||||
return '>'; | |||||
if(random.nextBoolean()) | |||||
return '<'; | |||||
else | |||||
return '>'; | |||||
} else { | } else { | ||||
steps--; | steps--; | ||||
return safeMove(grid); | return safeMove(grid); |