-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (27 loc) · 1.24 KB
/
Main.java
File metadata and controls
35 lines (27 loc) · 1.24 KB
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
import java.util.Scanner;
import character.Character_Creation;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Java RPG Version 1");
System.out.println("Please enter the name of your character: ");
String player_name = scanner.next();
System.out.println("Welcome, "+player_name+", do you wish to create a custom character or use a default one ?");
System.out.println("Please type yes or no");
String custom_character_choice = scanner.next();
switch (custom_character_choice) {
case "yes": case "y":
System.out.println("You have decided to make a new character, please wait a moment.");
character.Character_Creation.custom_character(player_name);
break;
case "no": case "n":
System.out.println("You have decided to go for a default character. The better choice");
character.Character_Creation.default_character(player_name);
break;
default:
System.out.println("You probably did something wrong ?");
break;
}
// What happens next ?
}
}