[alicebot-style] Multiple choice quiz in AIML

Dr. Rich Wallace alicebot-style@list.alicebot.org
Thu, 7 Jul 2005 16:49:17 -0400 (EDT)


Hi, I need some help working out all the bugs in a multiple-choice quiz in
AIML.   Kim Sullivan worked on something like this a long time ago:
http://list.alicebot.org/pipermail/alicebot-style/2002-June/000150.html
Here is my latest stab at it:
http://www.alicebot.org/aiml/aaa/Multiple.aiml

The basic idea is to force the bot to ask a series of multiple choice
questions and accept only the answers A, B or C for each one, or else tell
the client he/she must answer A, B or C.   The client must keep trying to
answer the same question until they give the correct answer, and then move
onto the next question.

I know you are thinking, why use AIML for this task?  BASIC would be
better.  Let's just say it's a challenge.  My code works alright in
isolation, but loaded together with the rest of the AAA set it runs into
problems if the client answers something like "B. Virginia" and there is
another pattern somewhere "B *".




-- 
Dr. Rich
W A L L A C E
ALICE A.I. Foundation
drwallace@www.alicebot.org
Winner, Loebner Prize 2000, 2001, 2004