|
I just saw this post in the jobs and kind of triggered my memory because I remembered I saw this post before, so here is some information, hope it helps.
If the game does not rely on some sort of timer then I think you can just allow users to register and once they register they can play the games, so when a user clicks on a game to play check your DB to see if they haven't played this game before and when they user submits a game update your records so that you know that this user has played this game, do the answer and other verification on the server end.(It would be kind of pointless to register and play a game just once, maybe you should let them play more than once and just accept their last score)
for the leader board, once the user submits the game, give them a correct a score for each question they get right, and at the end once you have finished marking them at the same time you are updating your DB also include their score, you can have this (the score) either in the same table as the users information or in a separate table, so when you want to display the score board just read the data from the score table (or field) and then output that.
What you’re asking for it seems straight forward, because it’s just a matter of the reading data from a sent form and then comparing that data to some other data (and also check for malicious content in the form submitted)
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
|
|