15Gammons: Backgammon in TurboGears

I’ve finally launched it. screenshot.jpg

15Gammons is an online realtime backgammon website. Its backend is written entirely in Python using TurboGears and Twisted.

In fact, it is the first TurboGears project I’ve started (over 18 months ago); and the last one I ended… I finally had the time to give it the final touches and open it to the public.

Back in 2005 I learned, together with everyone else, that web browsers are capable of doing much more than they were originally designed to do. Javascript libraries were popping out every few days giving drag and drop and animation effects. Everyone were talking about AJAX. I couldn’t stop myself from starting to code a game using the latest tools at the time.

15Gammons utilizes the so-called Comet technique of streaming events to the browser over a long-lived HTTP connection for achieving low latency. The Comet part is written using Twisted. I am planning to share some useful code in a later post.

The user interface was written using the Script.aculo.us library. Flash is not required, but is optional if you like sound effects.

Check it out – play backgammon online in 15Gammons.com!

This entry was posted in python, turbogears. Bookmark the permalink.

7 Responses to 15Gammons: Backgammon in TurboGears

  1. Uriel Katz says:

    who you managed to make Twisted to work with TurboGears,via some RPC?

  2. thesamet says:

    Yes. TurboGears is talking to the Twisted process via XMLRPC.

  3. cesar romero says:

    Ok i tried it and even though I’m not really a backgammon player, i got a good impression. Nice to know you can do such things with TG.

    Congratulations for making a game that doesn’t need flash

  4. deepak says:

    I have to create an account, complete with email verification?

    Just to play backgammon?

  5. Nadav Samet says:

    Yes. I’d like each player of the site to have a rating and a nickname, so existing players can choose who they want to play with.

  6. craig sands says:

    Backgammon is my favorite game! I love it and am so glad it’s finally on Facebook now – anyone wants to join me for a game? Check out http://apps.facebook.com/backgammonpro

  7. Hope says:

    Ok i tried it and even though I’m not rlaely a backgammon player, i got a good impression. Nice to know you can do such things with TG. Congratulations for making a game that doesn’t need flash

Leave a Reply

Your email address will not be published. Required fields are marked *