1. game
- Posted by alan123 Sep 25, 2009
- 1064 views
I want to write a word recognition routine for a game. It will pick out words in a sentence and try to make sense of them in line with the game.
2. Re: game
- Posted by alanjohnoxley Sep 25, 2009
- 1049 views
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
3. Re: game
- Posted by ChrisB (moderator) Sep 25, 2009
- 1001 views
Yup, and I came last in that one, so if you want some advice you know where to come.
(in fact I think one of my entries is still running somewhere)
Chris
4. Re: game
- Posted by gbonvehi Sep 25, 2009
- 1065 views
Yep, they are there :)
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=contest
Cheers,
Guillermo