Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: Don Ferguson on September 29, 2003, 09:19:25 pm

Title: Download This Demo Trivia Quiz Brain
Post by: Don Ferguson on September 29, 2003, 09:19:25 pm
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: (http://images/icon_paperclip.gif) Trivia Quiz Demo Brain.uhp ("http://www.zabaware.com/forum/uploaded/Don Ferguson/2003929211729_Trivia Quiz Demo Brain.uhp")
15.4 KB
Title: Download This Demo Trivia Quiz Brain
Post by: Larry on September 30, 2003, 07:18:18 pm
Don,

Dim Tries - Stay in the computer's memory in between exchanges?
Dim is for numbers... what about strings? The only reason I ask is because I'm having a problem using CustomMem which has nothing to do with CustomMem - but a bad memory card (sometimes)...
Title: Download This Demo Trivia Quiz Brain
Post by: Don Ferguson on February 26, 2004, 02:26:27 am
Hello,

I posted the above demo brain, and a number of others, a long while ago.

I am adding this posting in response to a new question this week about Hal's capability to teach.

Hal can certainly be programmed with any set of questions and answers, and can drill students in a manner similar to "flash cards" or "review quizzes."

The purpose of the demo brain above (and the other demo brains) is to give other code-writers ideas for future capabilities for Hal.

Sincerely,

Don
Title: Download This Demo Trivia Quiz Brain
Post by: Don Ferguson on February 26, 2004, 02:33:59 am
Hello,

In response to Larry's question (which I didn't answer promply due to my own inattention):

Yes, the "dim" statement can declare a variant in VBS that is not necessarily a numerical variant.  (Remember, the VBS language "decides for itself" whether a variant is a string or a number based on the content that you put into the variant.)

All we are doing is declaring the variant outside of (and previous to) any function.  By doing so, we cause it to have "global scope," which means that it is accessible to any and all functions that may be in the script, and also means that it will stay in the computer's RAM in-between one running of the script, and the next running of the script.

This is another way to make Hal remember variants from one remark cycle to the next.  Other postings on this forum have explained why it isn't a perfect solution, but it is useful (and not troublesome) on a single-user local computer.

Sincerely,

Don
Title: Download This Demo Trivia Quiz Brain
Post by: Larry on February 26, 2004, 04:33:52 am
Thanks Don...
Title: Download This Demo Trivia Quiz Brain
Post by: Don Ferguson on March 31, 2004, 12:36:56 am
Hello Kmac,

The brain posted at the top of this conversational thread demonstrates how the <topic> capability, and some VBS programming, can create a fun and entertaining educational quiz, delivered by Ultra Hal!

This is reference to the following forum posting:

http://www.zabaware.com/forum/topic.asp?TOPIC_ID=1299

Sincerely,

Don

Don