Hi Charles,

Yes, but its a case of easier said than done. I've never been good with string comparisons and in a case like this the key word would have to be simply Washington since his titles such as General and President are irrelevant in this case, and his first name is simply optional.

I suppose what I'd have to do is get the length of the string the player typed, slice it, and then see if the last 10 characters are washington or Washington, and yes string comparison is cap specific in a lot of cases. Kind of a pain in the backside since some people have a habit of using improper capitalization of pronouns. Believe me when I say it would be many times easier just to go with multiple choice from a programming standpoint.

Cheers!

On 5/25/2012 10:32 PM, Charles Rivard wrote:


You would have to program the game so that it would check for "George Washington" is anywhere in the question.

---
Shepherds are the best beasts, but Labs are a close second.


---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to