JAVA     

KTrivial

Created: 11.Jul.96
Last Update: 13.Aug.96

Jars Top 25% KTrivial Applet
    * Description
I've wrote this "kit" for Radio DeeJay an italian radio station (the one with the biggest audience rating). The purpose was to increment the game zone on their web.
This kit is a complete "trivia" kit, that let users to create their own trivia with the KTrivialMaker application, play with them on the net (or in local) with the KTrivial applet, having the opportunity to memorize the high-scores of every trivia thanks to the KTrivialHSServer application.
Once launched, this applet shows you a list of different avaiable trivias, letting the user to choose one of them. If the applet is setted up for working with the High-Score server, on the starting page the user must insert his name.
Once selected the trivia, the applet start reading the trivia from the net, prepare it and start showing every question to the player. For every question there are 5 answers, but only one is right.
At the end of all the questions, the trivia ends. Before returning to the starting screen, will show a score page. The score is a percentage value of right answers on total questions. If KTrivial is setted up for working with the High-Score server, on the score page there is the opportunity to watch high-scores.
One of the most interesting feature of this release of KTrivial is that you can use your preferred language. The applet uses the english language, but with a simple text file, you can realize and use the one you prefer. If you wanna try it, click
HERE to see the first Radio Deejay test Trivial all in italian.
Creating a trivial is very simple. I wrote an application, called
KTrivialMaker, that lets you create them from a simple text file. To see the instructions click HERE. The questions of a trivia are shuffled, so the sequence you save on the source file is not important. The answers are shuffled too.
Using the High-Score server is easy too. Click
HERE to see instructions about the High-Score Server application, called KTrivialHSServer.
     
    * Parameters
SIZE OF THE APPLET
Please provide the correct size to the applet:
WIDTH=500
HEIGHT=375
Trivials (filename, default="Trivials.lst")
This parameters contains the name of the file that lists all the trivias that user can try. The trivias must be inserted one per line, without extention. Click
here to see an example.
Language (filename, no default)
If used this parameter must contains the name of a language file. Click
here to see an example of a language file (italian). If not used default language (english) is used.
Hs_Host (string, no default)
This parameter contains the name of the server where the high-score application (KTrivialHSServer) is running
Hs_Port (filename, no default)
This parameter contains the port number of the server where the high-score application (KTrivialHSServer) is running
     
    * Download
KTrivial_Kit.zip
(all the last releases)
KTrivial.zip
(release 2.12)
KTrivialMaker.zip
(release 1.12)
KTrivialHSServer.zip
(release 1.10)
     
    * Example
Here is the tag used for the example above:
<APPLET CODE="KTrivial" WIDTH="500" HEIGHT="375">
 <PARAM NAME="trivials" VALUE="Trivials.lst">
</APPLET>