I am making a Java Mine Sweeper program. So far everything is going well except for the cascading and reveal. What would be the method about checking if there are any other spaces without bombs. Can someone take a look and help me? any help would be appreciated. Thanks!
public static void RevealCell(int a, int b, int row, int col, char[][] emptyboard,
char [][] aBoard, boolean [][] revealed){
if( aBoard[a][b] == 'B'){
revealed[a][b]=true;
return;
}
if (aBoard[a][b] == '1' || aBoard[a][b] == '2'){
revealed[a][b] = true;
return;
}
if (aBoard[a][b] == '0') {
revealed[a][b] = true;
}
}