< Prev | The SiMPLE Program Gallery | Next >

  Pat Hand Solitaire  

The object of Pat Hand solitaire is to form 5 pat hands using 25 cards. There are three types of pat hands:

1. A flush: 5 cards of the same suit

2. A full house: 3 of one rank, and 2 of another rank (e.g. 3 jacks and 2 aces)

3. A straight: 5 cards in sequence (e.g. 2,3,4,5,6)

Note that an ace may be played high or low in a straight (i.e. A,2,3,4,5 and 10,J,Q,K,A are both valid straights).

In this version, 25 cards are dealt one at a time. Click on a empty space in the (5x5) tableau to place the card. Each row represents one hand. Once all 25 cards have been played, you may swap any two cards in the tableau. Click on a card to select it, then click on a second card to swap the first card with the second. To unselect the first card (rather than make a swap), simply click the first card again and it will be unselected.

Almost all games can be won, but there are a few that cannot. For example, if the 25 cards are:

Clubs: 2,3,4,5,6,7,8,9 Diamonds: 2,3,4,5,6,7,8,9 Hearts: 2,3,4,5,6,7,8,9 Spades: J

The jack of spades cannot be part of flush since there is only one spade. It cannot be part of a full house since there is only one jack. It cannot be part of a straight since there are no tens and no queens. Since the jack of spades cannot be a part of any pat hand, this game cannot be won.

This program does not check to see if it is possible to win the game, which is why there is a restart button.

I should point out that with right strategy, most games of Pat Hand Solitaire are not particularly challenging and will require few swaps. So as not to spoil anyone's fun, I will let you figure out a strategy for yourself. (On the other hand, you could play "spot what I learned from last from last time" with the program listing; then again, that isn't very challenging either. )

The rules for Pat Hand solitaire appeared on p.4 of in the February 1983 issue of Games magazine and were the inspiration for this version.

Source Listing


How To Run The Program

If you're feeling ambitious and have nothing better to do, you could just copy
the source listing by hand! However, there is a much easier way to do it:

  1. Copy the source listing into the Windows Clipboard

  2. Paste the Clipboard into a new text document

  3. Drop that text document onto the "Drop SiMPLE Listing Here" icon


Or, if you don't have SiMPLE installed on your computer,
click here to run the precompiled version of the program.

(If you would like to contribute any of your SiMPLE programs to The Gallery, just e-mail them to us.)




  [ Webmaster | FAQ's | Home Page | Contact Us ]

© Copyright 2008 SiMPLE CodeWorks, Inc. All rights reserved.