-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDriver.java
24 lines (22 loc) · 869 Bytes
/
Driver.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
/** <b> This program, MyFarm, is a farming simulation game. </b>
* <p>
* There is 1 player, the Farmer, who carries out various farming tasks.
* The Farmer <b> possesses money </b> to utilize throughout the simulation.
* The Farmer also <b> gains income and experience from accomplishing farming tasks </b>.
* <p>
* Date Last Modified: 12/10/2022
* @author Daphne Go and Patricia Arao
*/
import View.*;
import Model.*;
import Controller.GameController;
public class Driver {
public static void main(String[] args) {
// creates an instance of the Graphical User Interface
MainFrameView game = new MainFrameView();
// creates an instance of the model
Farmer player = new Farmer("Player 1");
// creates an instance of the program controller
GameController controller = new GameController(game, player);
}
}