Quiz game problem
ok. have whole quiz running correctly, game outputting if answer question, false or correct.
say answer question "hello";
"hello" <-- output correct answer sign.
"anythingelse" <-- output wrong answer sign.
i looking hint how build quiz smarter, show "almost correct" sign.
so if user types in: "hallo", "helli" or near right answer, correct sign show.
have done in as3? or point me in direction of kind of information found?
sincerely
skogemann142
it depends on definition of constitutes "almost correct" - so, need come rules.
as far implementation goes - best way deal strings use regular expressions.
http://help.adobe.com/en_us/as3/dev/ws5b3ccc516d4fbf351e63e3d118a9b90204-7fdb.html
More discussions in ActionScript 3
adobe
Comments
Post a Comment