-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalcJeopardy.java
42 lines (36 loc) · 1.32 KB
/
CalcJeopardy.java
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
40
41
42
/**
* Names: Ishan Garg, Krish Patel, Pranav Mahabal
* Course: MCV4U0-1
* Date: January 18, 2023
* Teacher: Ms Iulia Gugoiu.
*/
public class CalcJeopardy {
static int numPlayers = 2;
/**
* Creates question generators.
*/
static MysteryQuestions vectQ = new MysteryQuestions();
static DiffQuestions diffQ = new DiffQuestions();
static ApplyDiffQuestions curveQ = new ApplyDiffQuestions();
static ApplyIntQuestions hopQ = new ApplyIntQuestions();
static IntegrationQuestions intQ = new IntegrationQuestions();
/**
* Main method to start the main program's thread.
* @param args command line arguments.
*/
public static void main(String[] args) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
AskQuestion dialog = new AskQuestion(new javax.swing.JFrame(), true, numPlayers, vectQ, diffQ, curveQ,
hopQ, intQ);
dialog.addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
}
});
dialog.setVisible(true);
}
});
}
}