-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJava_DND_Game.java
More file actions
39 lines (25 loc) · 989 Bytes
/
Java_DND_Game.java
File metadata and controls
39 lines (25 loc) · 989 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
37
38
39
import java.util.Scanner;
import java.io.*;
public class Java_DND_Game {
static public Scanner console = new Scanner (System.in);
public SpellCasting SpellCasting = new SpellCasting();
public Combat Combat = new Combat();
public static void main(String[] args) throws IOException{
System.out.println("Hello world! And welcome to this test program for DND.");
//for(int i = 0; i < 3; i++) {
Player_Info player = new Player_Info();
player.StatCreation();
System.out.println("Now, please choose a Race: ");
player.RaceChoice(console.next());
System.out.println("Now, choose what class you would like to play as: ");
player.ClassSelect(console.next());
player.ModifierCalc(player);
System.out.println("Finally, what would you like you're name to be?");
player.name = console.nextLine();
//}
player.printPlayer();
player.printStats();
console.close();
System.exit(0);
}
}