Solitaire

If you have the Tcl/Tk Plugin for browsers , you will see an application below. If you don't, go get the plugin or just download the sol.tcl program and run the program using tcl's wish ( #wish sol.tcl).

This is less than 1000 lines of Tcl/Tk code. If you are interested, you can see the code by saving the sol.tcl link and viewing it using a standard text editor.

Like what you see? Imagine what you could build if you had a little Tcl/Tk expertise!
Check out the many links for Tcl/Tk and plugins at www.tcl.tk or their plugin test and demo page.

Instructions

The Solitaire game has three main areas: The object of Solitaire is to build four suit piles of cards in order, starting from the Ace card finishing with the King. You do this by drawing (clicking and dragging) cards from the deck and moving them to the suit or run piles. Your final score is determined by the time (in seconds) it takes to create four complete suit piles.

You build run piles by placing cards in descending order on the pile, alternating between red and black suits. You may move partial runs (one or more cards which are face up) to another run pile, so long as they fit the sequence. If the top card of a pile is face down, you can click on it to turn it over. To win, it's important to uncover and turn over cards in the run piles. If a run pile becomes empty, you may start a new pile with a King.

You build suit piles by placing cards in ascending order of the same suit on a pile. You must start a suit pile (which is initially empty) with an Ace.

You can flip cards from the deck over by clicking on the deck pile. Three cards are flipped at a time, but only the top card may be moved to a suit or run pile.

Preferences

When you click the Preferences... button, you will get a panel of options for the game. If you enable the "hint" mode, the Solitaire game will automatically highlight any cards that can be played. You can also change the card back design for the deck of cards used in the game.