Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

how to integrate games for website

by romy_mathew (Beadle)
on Aug 10, 2012 at 10:42 UTC ( #986716=perlquestion: print w/replies, xml ) Need Help??
romy_mathew has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I am hoping to add games to the website that people take high score either by luck or logic, I need to fetch the result of the game and display on the score board of the 10 top results. Similar to games on facebooks

Something similar to

Any Suggestions..?

Replies are listed 'Best First'.
Re: how to integrate games for website
by marto (Bishop) on Aug 10, 2012 at 10:48 UTC

    Your question is pretty vague. I don't use facebook, I've no idea if you host some sort of web based game on a site, or wish to find results of a game hosted elsewhere. If the latter contact the people running that service and find out if they have an method of querying their system (API). If this isn't what you mean please provide an actual question.

    Update: Please mark updates you make to questions. I don't see where scores are recorded in the google doodles. You're going to have to ask an actual question.

      Hi marto,

      I looking for a free game api that I can use on website. Now when the people come and play the games i need to get the score of every game and record on the database.

        Securely store scores, user IDs etc via the usual methods (see one of your previous questions). Write a query to find the top 10 scores for each game, display it in a table. Regarding actually creating the games I suspect that's something you're going to have to decided on yourself based on whatever criteria/specifications you're working from.

Re: how to integrate games for website
by influx (Beadle) on Aug 10, 2012 at 12:04 UTC

    I don't know of any game sites that give out that information, but you may be able to ask them directly if they have some kind of API you can tap into. For example, contact Zynga (developers of popular Facebook games, such as FarmVille, CityVille, etc) and ask them if they have an API for developers to retrieve stats on their games. You could write your own module to easily extract that information via json, XML or whatever format they use.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://986716]
Approved by ansh batra
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-05-27 21:47 GMT
Find Nodes?
    Voting Booth?