-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathWar.java
More file actions
39 lines (32 loc) · 775 Bytes
/
War.java
File metadata and controls
39 lines (32 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* War game class
*
* @author Mr. Jaffe
* @version 2022-10-19
*/
public class War
{
/**
* Constructor for the game
* Include your initialization here -- card decks, shuffling, etc
* Run the event loop after you've done the initializations
*/
public War()
{
// Initializations here...
// ...then run the event loop
this.runEventLoop();
}
/**
* This is the game's event loop. The code in here should come
* from the War flowchart you created for this game
*/
public void runEventLoop() {
}
/**
* The main method is called when Java starts your program
*/
public static void main(String[] args) {
War war = new War();
}
}