Hello,
The purpose of this demo brain is to show how Zabaware's "topic" tags with delayed-response feature works, and also to show how correct quiz answers can be detected and scored.
Hal asks random questions from a pool of questions about United States history.
Hal detects whether the user gets the right answer. As the quiz proceeds, Hal keeps track of the
correct answers and the
number of rounds, and says the
running score to the user.
This is kept to a pool of only ten questions for demo purposes -- I expect that you can write much more imaginative trivia quizzes by modifying and expanding this brain!
The code patterns to accomplish the job are annotated and hopefully they will make sense to you!
Best wishes to all programmers, and have a great day!
Don
P.S.: To download and install, right-click on the download below, choose SAVE TARGET AS, and save the file into the following directory/folder path on your local computer:
C:/Program Files/Zabaware/Ultra Hal Assistant 5
(Note that our forum software cannot display backslashes, but the forward slashes above are supposed to represent backslashes.)
The next time that you freshly start Hal, you should be able to find this brain when you choose OPTIONS, BRAIN.
Select this brain and you should be up and running.
Download Attachment:
Trivia Quiz Demo Brain.uhp15.4 KB