You are invited to Log in or Register a free Frihost Account!

Welcome to Quizroom !

Finally, after some hurdles with Python + MySQL here on Frihost, my little Python project "Quizroom" went live here on Frihost, after I re-wrote my server code to use SQLite as a backend rather than MySQL.

Quizroom is a little quiz game asking you multiple-choice questions in several categories I have set up so far, as we have currently:

* Geography
* Movies
* Science

Quizroom auto-generates questions based on facts I have stored in its database, so there is no need to setup pre-defined questions and answers. In a later blog posting I explain a bit more about how it works.

For now, here is the quick user's guide:

When you start the game you first select one of the categories or "all" if you wanna play them all. Then you click on the upper center field to get started and the first question is displayed together with 4 possible answers. A timer starts running, as you see a progress bar advancing from the left to the right at the bottom of the browser window.
The sooner you answer right, the better !
The time you get is 10 seconds plus 1 second for every 30 words you have to read ( question + all answers ).
If you answer right you gain as many points as seconds were left before you would have been running into a timeout.
If you answer wrong you loose one energy point per 100 points you have scored so far, which basically means: the higher your score the more energy you loose when answering wrong.
A right answer gets you 1 energy point, up to a maximum of 20. You start with 10.
If you run out of energy game is over for you. At this time - if you made it into the high score list - you have the opportunity to leave your name ( or Frihost user name or whatever ) in the high score list. You can also click the closing "x" at the top right corner of that dialog box if you do not want to show up on the highscore list.

A push button in the right column of the screen lets you re-start the game. While the game is running you also can end it any time thru another push-button in the right column of the browser window.

That's basically it. Give it a try and have fun playing. Click HERE to ge started.

7 blog comments below

Not a bad design. If you can find a way to make querying the database a bit faster, it would be a bit more responsive; as it is it occasionally feels a little laggy between questions.
Ankhanu on Mon Apr 29, 2013 8:19 pm
Nice work. Building a database of questions/answers with fact checking is going to be a huge task I would imagine.
standready on Mon Apr 29, 2013 9:22 pm
Well done Amagard! I'm particularly interested in James Bond at the moment, as I had a positive viewing experience of Quantum of Solace over the weekend .... then realized I need to get the last videos by Daniel Craig for my collection that has all of the James Bond movies in it. Plenty of quizz questions possible for the James Bond movies.
deanhills on Mon Apr 29, 2013 9:30 pm
Thanks for your comments so far !
Yes, could be a bit faster here and then. One reason might be that I am using SQLite currently as my database since I couldn't get Python to play with MySQL here on Frihost, as I mentioned above.
Another means to improve response time would be to build in some cash to let the server pre-generate questions while the user is still thinking about the answer to the previous one.

standready, it certainly has been a bit tricky, but once I explain how it works ( stay tuned for my next blog posting here ) you'll see it is not really rocket science.

deanhills, may be I should add a separate category "James Bond" Wink . Actually I am thinking about introducing sub-categories, so "James Bond" would be a nice one for "Movies". Just need to find sufficient number of facts and question templates to fuel the database.
amagard on Tue Apr 30, 2013 8:43 am
just tried out your quiz game. pretty cool. I didn't do so well though. I'll try it again later.
Nice program Smile
boosscortez on Thu Aug 15, 2013 3:26 am
Great, and I didn't notice it was slow. If you changed the cursor to a pointer cursor when hovering a button it would make it more clear that you can click on it.
Peterssidan on Sun Sep 22, 2013 6:13 pm
Finally Quizroom is back after the crash of Server 4 and my move to Server 1. Today I deployed files from a backup, had to do some debugging and now it is working again. Still need to figure out one issue with background images, but so far it seems to be working.
amagard on Sun Oct 16, 2016 5:52 pm

© 2005-2011 Frihost, forums powered by phpBB.