-
Notifications
You must be signed in to change notification settings - Fork 0
/
DNDR.java
57 lines (49 loc) · 1.77 KB
/
DNDR.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import java.util.Scanner;
public class DNDR
{
public static void main (String[] args)
{
Roll roll = new Roll();
Government gov = new Government();
Scanner scan = new Scanner(System.in);
Dungeon dungeon = new Dungeon();
int amount; String answer; boolean satisfied = false; int choice;
System.out.println("Welcome to the D&D Randomizer by d4wnbreaker.");
System.out.println("At this moment, we just have two options, more options are being added daily.");
System.out.println("You can suggest additions directly to him: @d4wnbreaker.");
System.out.println("What do you want to roll?");
System.out.println("Dungeons (1), Forms of Government (2)");
choice = scan.nextInt();
switch(choice)
{
case 1:
roll.d20();
roll.storedRoll();
roll.resultPrint();
dungeon.DeathTrap(roll.storedRoll());
roll.d20();
roll.storedRoll();
roll.resultPrint();
dungeon.Purpose(roll.storedRoll());
roll.d20();
roll.storedRoll();
roll.resultPrint();
dungeon.Maze(roll.storedRoll());
roll.d20();
roll.storedRoll();
roll.resultPrint();
dungeon.Mine(roll.storedRoll());
roll.d100();
roll.storedRoll();
roll.resultPrint();
dungeon.PlanarGate(roll.storedRoll());
break;
case 2:
roll.d100();
roll.storedRoll();
roll.resultPrint();
gov.formsOfGovernment(roll.storedRoll());
break;
}
}
}