Due dates: Beginning of lab October 2
You will be expected to demo the running program for the
TA at the beginning of lab Monday, October 2
| File Type | File name | Who writes it |
| Java class | WarGameMain.java This class contains the main( ) method. It creates an object of type Game, and calls its instance method playGame( ) |
Provided by me. DO NOT ALTER. This is how we will run your game. |
| Java class | Game.java This class will instantiate the objects needed to play the game, and call the methods that manipulate those objects. | Provided by you and me. (Mostly you) |
| Java class | Card.java. A class that models playing cards. You may make whatever changes you want to this class. | Provided by me and you. |
| Java classes | Other classes you create for the card game war. | Provided by you. |
The top level class of your program must be called Game. It must have a
default constructor and a void method named playGame() with zero parameters that
runs one complete game to execution. Your program must run correctly when
the main method of class WarGameMain.java is called.
******Get this much running before you add the other features listed below******
Example of a war.
| 1st up card. (causes war) | down card | down card | down card | 2nd up card. (resolves war) | |
| player 1 | 10 of Clubs | Down | Down | Down | 3 of Clubs |
| player 2 | 10 of Hearts | Down | Down | Down | 2 of Spades |