Offline Solitaire, an HTML5 browser application and Chrome application.

Click here for the Chrome application

Click here to play online

Does the world really need yet another implementation of Solitaire for the browser? Yes, absolutely!

When I acquired a Chromebook recently I looked for Solitaire Chrome apps (my gaming tastes aren’t particularly sophisticated) only to be disappointed by over-presented apps heavy in Flash and Ad-laden.

I just wanted an implementation of regular Klondike Solitaire that matched the simplicity of the old Windows-bundled version. The one played for years by bored office workers worldwide before the internet took over as principal time-wasting activity.

Also I wanted one that would work offline (when user have no internet connection). Solitaire is an ideal activity on the plane or train.

Another motivation was simply that I felt like writing a card game having never developed one before. Also I wanted to understand how feasible the idea of offline browser applications is.

Here it is, a minimal implementation of classic Klondike Solitaire to be played in the browser, developed with HTML5 technology including JavaScript. It’s also presented as a working Chrome application, that can be installed to Chrome with just two clicks.

It was developed using Eclipse and Chrome Developer Tools. Cards were adapted in Photoshop and Inkscape from public domain and Creative Commons resources.

Click here for the Chrome application

Click here to play online

  1. Larry’s avatar

    Great stuff for my green cocoon stays in the forests of Sweden, where data isn’t always in the air.
    Thanks!

  2. Gary’s avatar

    Hello,

    Thanks for writing Offline Solitaire. I play it often on my Chromebook.

    I’m having a slight problem on Ubuntu 12.04. I’m playing using Chrome Version 26.0.1410.43. I did something to lock up the game and now each time I go back in to play I have a green background with the deck not dealing out to start the game. The “settings” wheel is unresponsive.

    I’ve tried exiting the browser and going back in but t hat doesn’t work.

    I am assuming there must be a way to reset the data the game uses.

    Thanks,
    Gary

  3. jimblackler’s avatar

    This is a problem with the settings wheel not being clickable because the way the game is written currently it does show you the end of the old game when you go back (in retrospect I should have made the redeal automatic when you hit refresh).

    If you type this text exactly in the URL bar (you can’t copy paste unfortunately)

    javascript:localStorage.clear()

    That will reset your game. It’s a workaround but it should fix your issue.

    There are other ways to reset the local data probably in Chrome settings.

Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>