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
- Add a new "Game" menu with two menu items containing the names of the two solitaire games (Carpet and Clock).
- 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.
- 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.
- 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.
- The statistics should apply only to each kind of game and should not combine the types.
- 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.
- Create a UML class diagram of the classes in your application. Don't display the methods and fields in each class.
- For rules to Clock solitaire, see me and/or go to
http://en.wikipedia.org/wiki/Clock_solitaire
- Here are what the Clock solitaire game should look like:
Clock solitaire
Extra Credit
- For one extra credit point, have the program ask the user whether she wants to save the current game when a new kind of game is selected or when the user quits.
- You can also make up your own enhancement. If it is well done, I will give you extra credit points for it. You might want to clear your idea with me first.
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."