|
-
January 7th, 2004, 10:23 PM
#1
Scrabble -- find words on board?
I know HOW to find words made on the board... im just not sure what alogithm to use that will work. I've thought of two main ones, neither of which are ideal.
The first is after checking the spot, set a boolean flag to true so that spot is not checked again. The problem with this is that the letter can very well be used in multiple directions to form words.
The second option is to store found words in an array and only add unique ones to it. This is also a problem, because there could be duplicate words.
Any tips or suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|