-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameDriver.java
More file actions
29 lines (24 loc) · 826 Bytes
/
GameDriver.java
File metadata and controls
29 lines (24 loc) · 826 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
/**
* This class acts as the driver for the shortest path finder
* game. It instantiates one instance of GamePanel class, which in turn
* creates all the subpanels and then allows the user to play the game.
* <p>
* Michelle was primarily responsible for the implementation of this class.
*
* @author Michelle Gao
* @version December 2 2014
*/
import javax.swing.*;
public class GameDriver {
/**
* Creates and displays the Path Finder game, then allows the user to play.
*/
public static void main(String[] args) {
JFrame frame = new JFrame("Path Finder");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//creates an instance of a GamePanel class and adds it to the frame
frame.getContentPane().add(new GamePanel());
frame.pack();
frame.setVisible(true);
}
}