CS361

Project 5
Adding another solitaire game
due: Monday, April 7, before I leave for the day

Assignment

Add a second game to the Swing window that you created in Project 4: Clock solitaire

Details

  1. Add a new "Game" menu with two menu items containing the names of the two solitaire games (Carpet and Clock).
  2. When the user selects one of these menu items, a new game of the chosen type is created for the user to play. The former game the user was playing just disappears.
  3. 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.
  4. All of the menu items you created for Carpet solitaire must work for Clock solitaire, except for the "Shuffle" menu item, which should be disabled.
  5. The statistics should apply only to each kind of game and should not combine the types.
  6. 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.
  7. Create a UML class diagram of the classes in your application. Don't display the methods and fields in each class.
  8. For rules to Clock solitaire, see me and/or go to http://en.wikipedia.org/wiki/Clock_solitaire
  9. Here are what the Clock solitaire game should look like:

Clock solitaire
clock 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 4 that has my red marks on it.

For fun: An Ambiguous Recommendation

"I most enthusiastically recommend Andrew with no qualifications whatsoever."