Boggle Game and searching for Words
I am sure everyone knows what boggle is. So this is my method
private boolean searchWord(int row, int col, String[] word) {
and if it finds a word it will return, true. so it will need to start of searching at row, col so i guess [0][0]. and needs to search going left, right, up, down, and diagonally in all directions. so basically when i run the program as of now it randomly generates letters on the board, for ex)
h d f z
q o p m
a c b e
u y n i
I do know that i need a few FOR loops. I struggle very much with nested FOR loops. I am guessing it starts of like this
for ( int row = 0; row < row.length; row++) {
for (int col = 0; col < col.length[row]; col ++) {
Please and thank you for help.