-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
36 lines (33 loc) · 783 Bytes
/
Main.java
File metadata and controls
36 lines (33 loc) · 783 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
import java.util.*;
class Main {
public static boolean debugMode = false;
public static void main(String[] args) {
Game();
//Testing();
}
public static void Game(){
Scanner input = new Scanner(System.in);
Game game = new Game();
game.SetupInput(input);
game.Start();
if(game.over){
System.out.println("Would you like to go again? y/n");
String goAgain = input.nextLine();
if(goAgain.toLowerCase().equals("y")){
Game();
return;
} else {
System.out.println("Thanks for playing!");
return;
}
}
}
public static void Testing(){
Game game = new Game();
game.createSkills();
game.createTypes();
game.createSpells();
//SkillsTree.printSkillsTree(SkillsTree.getSkillFromName("Weather 2"));
//game.TestWeights();
}
}