-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMain.java
More file actions
23 lines (21 loc) · 770 Bytes
/
Main.java
File metadata and controls
23 lines (21 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.*;
/**
* Driver class, sets up game
* Look to comments to see what you need to do to test your game
*/
public class Main
{
public static void main(String [] args)
{
Player [] players = new Player[2]; //need to update array based on number of players
boolean printsRun = false; //printsRun is a boolean set to display moves as game goes, used for debugging
//add players to game
players[0] = new Example1();
players[1] = new PlayerExample();
//construct the game with the classes in the players array, calls on play and displays the score
//DO NOT CHANGE
Game newGame = new Game(players, printsRun);
newGame.play();
newGame.displayScore();
}
}