-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameRunner
More file actions
30 lines (24 loc) · 728 Bytes
/
GameRunner
File metadata and controls
30 lines (24 loc) · 728 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
import java.util.Scanner;
public class GameRunner
{
public static void main(String[] args)
{
String Resp;
char Response;
Scanner input = new Scanner(System.in);
Cave_Jungle test2 = new Cave_Jungle();
System.out.println("\t\s\sRNG Adventure"); // Main menu
System.out.println("Made by name :: Evan R, Stowe B, Preston N, London \n\n");
System.out.println(" \t[ (P)lay (Q)uit ]");
do
{
Resp = input.next();
Response = Resp.charAt(0);
if(Response == 'P' || Response == 'p') // Start the game
{
test2.Adventure_Start();
}
}while(Response != 'Q' && Response != 'q'); // End game
System.out.println("System has ended, restart program to play again");
}
}