CS361

Project 6
Adding two other solitaire games
due: Monday, April 14, before I leave for the day

Assignment

Add two more new solitaire games to your application:

  1. Klondike
  2. Black Hole

Details

  1. Add to the "Game" menu two more menu items containing the names of the two new solitaire games. As before:
    1. when the user selects one of these menu items, a new game of the chosen type is created for the user to play.
    2. When a new kind of game is selected, the new game should appear in the same window as the old game. It is okay to resize the window for the new game.
    3. All of the menu items must work for all the kinds of games, except for the "Shuffle" menu item, which should be disabled for non-Carpet solitaires.
    4. The statistics should apply only to each kind of game and should not combine the types.
    5. When you open a saved game, the window should display that game regardless of whether it is the same kind of game as the current game you are playing.
  2. Create a UML class diagram of the classes in your application. Don't display the methods and fields in each class.
  3. For rules to these games, see me and/or go to these web sites:
    1. http://en.wikipedia.org/wiki/Klondike_(solitaire)
    2. http://en.wikipedia.org/wiki/Black_Hole_(solitaire)
  4. Here are what your new games should look like:
Klondike solitaire
klondike view

Black hole solitaire
black hole view

Extra Credit

What to hand in

Hand in a hard copy of all the source code files you created or modified and also zip up all source code files and send the zip file to me as an email attachment. See the course web page on handing in assignments for further details. Also, I want you to hand back in the hard copy of Project 5 that has my red marks on it.

For fun: An Ambiguous Recommendation

"No salary would be too much for Kevin."