Card Sorter game


Java Swing card sorter game.  Watch the video demo.

Seven random cards from a standard deck are initially displayed in the top panel.  (The same card may appear more than once.)   When a card is clicked in the top panel, it is moved to the right end of the cards in the lower panel. If the card is out of order, an error message popup dialog appears.  If all seven cards are placed in order, a win message appears.

The correct order is by suit, then rank.  Hearts, Clubs, Diamonds, Spades.

The status panel displays a Help button, a Try Again button, and the count of won and lost games.  

You may use these public domain card images (zip).

Here is a skeleton of the application.   You may add helper methods if you like.  You may define other classes (like a Card class).