Morning all!
After a brief hiatus, I'm going back to a word game project I've been doing a bit of work on, for the iPhone (there seems to be a shortage of them, methinks
). Anyways, my actual question: do people have any suggestions on the best way to implement word validation? And more specifically, fast word validation.
I'd been thinking along the lines of using a set of valid words, and then just checking for membership, which should be reasonably fast. It is complicated somewhat by the fact that my master list will probably need to consist of word objects, not just strings (the game will require certain other word-specific data), so I was thinking that a dictionary, using the actual strings as keys would probably be my best option.
I feel like a bit of an idiot asking, but I figure there're gotta be a few people with more experience regarding word games and/or collections than I. Thanks in advance for responses!