Version 8 of Freecell

Updated 2007-12-14 03:02:54 by stevenaaus

MG Nov 26 2007 - Quite some time ago, I wrote a copy of Freecell, one of the card games shipped with Windows XP (and other versions, I think) with a friend of mine. I've finally gotten around to uploading the code, which you can find on my website (http://www.talvo.com/tcl-code.php ) as it's rather large for a wiki page.

It's pretty similar to the Windows version, though is definitely missing at least one feature: when you move cards, it always moves the most it can, rather than giving you the choice between moving a single card/the column.

The friend I wrote it with is also multi-lingual, so it runs in four different languages, using msgcat.

Comments, criticisms, suggestions for improvement, etc, welcome as ever.


IDG Nov 26 2007 - Nice - unlike the version that comes with Suse Linux which is unplayable. However SystemButtonFace is an unknown colour under Linux, so I had to change this before statistics would display.

MG Thanks; I'd only tried it on Windows. I've updated that now to use

  $toplevel cget -background

to get the correct background colour, which should work on all platforms, I think.


IDG Nov. 27 - I think there are some bugs in the statistics code, by the way. I managed to get a negative number of games lost at one point ...

MG I've not seen that problem, but I'll take a look at the code and see if I can see what might be causing it.


Steven [L1 ] Dec 14 - I like the way the undo feature works... When did you write this game ?

> Total:

> Played: 5
> Won:    0
> Lost:   5
> Current Streak: 1 loss

I thought that would mean my current streak was 5 loss ? Actually, i remember winning one game. I then selected i didn't want to play again, or something. There might be a little bug here somewhere.

.... Sometimes it clears a card to the pen, other times not. What are the criteria about clearing cards ?


Category Games