Web Niraj
  • Facebook
  • Flickr
  • Github
  • Google
  • Linkedin
  • Twitter
  • Youtube
Online portfolio, code examples and developer blog
  • Home
  • About Me
  • Contact Me
  • Portfolio
  • WordPress
  • Blog
Search the site...
Home» Portfolio » Betfair World Series of Poker Quiz

Betfair World Series of Poker Quiz

0
Betfair-Poker-500

The Betfair Quiz application used Flash and PHP to create a quiz related to the World Series of Poker Championship. In the game, the user is presented with a number of questions and five playing cards to choose from. If the user answers the question correctly, they can choose a card to add to their ‘hand’, if they get the answer wrong, a random card is chosen instead.

After the user collects five cards, they receive a score based on their poker hand. The score is entered into the application’s leaderboard. The aim of the application was to be the player on top of the leaderboard. The leaderboard was split into three sizes: the users friends, the user’s Facebook network, and all application users.

For this application I coded the entire application except for the Flash component used in the actual game. I created a API for use in the backend to handle the communication between the Flash game and the databases. The API was used to pass the user’s high score back to the server so it could be stored on the leaderboard. The questions were passed into the application using XML so they could easily be updated.

One of the challenges with this application was optimizing the SQL query used to generate the leaderboard. During testing we found that the query used to be slow when the user’s friends list or network was quite large. To overcome the issue we used the Facebook API to return only friends who had installed the application, and then use this sub-list in the SQL query.

Facebook, Flash

Leave a Reply Cancel reply

Recent Posts

  • Facebook API: Tracking Shares using the JavaScript SDK

    May 11, 2013
  • Backing Up MySQL Databases using Amazon S3

    April 19, 2013
  • Batch Resize Images on Linux Using Mogrify (ImageMagick)

    April 7, 2013
  • Using Amazon S3 to Backup Your Server

    March 24, 2013

    Contact Me

      • Linkedin
      • Facebook
      • Google
      • Twitter
      • Github

    StackExchange / StackOverflow

    profile for Niraj Shah on Stack Exchange, a network of free, community-driven Q&A sites

    Tags

    Amazon Web Services Android Apache API Application Backup Bebo Command Line Competition Deployment Example Facebook Facebook Graph API Facebook Places Facebook Social Plugins Fan Page Flash FQL Function Game Google Galaxy Nexus Google Nexus 7 Google Nexus One iGoogle Image Manipulation iPhone Java JavaScript jQuery Linux Microsite MySpace PHP Plugin Portfolio RSS Security Server SSL Sysadmin Tutorial Welcome Widget WordPress YouTube
    © 2011-2013 Niraj Shah