0

I'm currently working on a word game and I need to find word possibilities in a 4x4 array.

Here's what the array looks like:

   0 1 2 3
  --------
0| d r o k
1| b o v l
2| u o y t
3| p e x i

The player can only combine adjacent letters. Example: The word "book" will be [0,1][1,1][2,0][3,0]

What's the fastest way to do this? And by the way. I only need to know if the word is possible to make or not witch means a function to return true or false would be enough. something like this: validateWord($array, $word) Thanks in advance

pavel
  • 26,538
  • 10
  • 45
  • 61
Bez Roht
  • 61
  • 1
  • 6

0 Answers0