Re: game

new topic     » goto parent     » topic index » view thread      » older message » newer message

Finding the words would be easy... Just parse the user input, delimit words nicely, and compare that to known words that you have defined. The problem though is context. Eg, if someone said "fire" would that mean "fire all weapons", "fire the selected weapon" or maybe even "light a fire". Obviously, the order of the words would be important too, and what about variations due to ethnic backgrounds or even spelling mistakes? I'd advise to only allow limited words / very short sentences.

Rob Craig (The Euphoria inventor) had a competition years back, where the objective was to find words in a large unknown sample, like the Bible. There were a few solutions. Have a look in the Euphoria Archive.

Regards Alan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu