made a riddle class
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Enemy Name: HenryPellatt
|
||||
Enemy Name: Henry_Pellatt
|
||||
Description: The owner of the Castle
|
||||
Starting Room: Circle Room
|
||||
Damage Given: 25
|
||||
@@ -169,9 +169,9 @@ class Game {
|
||||
while(isNotValid) {
|
||||
System.out.print("> ");
|
||||
String i = in.nextLine();
|
||||
if(i.toLowerCase().equals("play")) {
|
||||
if(i.toLowerCase().equals("play") || i.toLowerCase().equals("p")) {
|
||||
return true;
|
||||
}else if(i.toLowerCase().equals("quit")) {
|
||||
}else if(i.toLowerCase().equals("quit") || i.toLowerCase().equals("q")) {
|
||||
in.close();
|
||||
return false;
|
||||
}
|
||||
@@ -191,7 +191,7 @@ class Game {
|
||||
// Enter the main command loop. Here we repeatedly read commands and
|
||||
// execute them until the game is over.
|
||||
System.out.println("\nType 'help' if you need help, consult the wiki \non GitHub if you are confused and enjoy the game!\n");
|
||||
System.out.println("\n\nEscape Casa Loma: A text-based adventure game");
|
||||
System.out.println("\n\nEscape Casa Loma");
|
||||
System.out.println("---------------------\n");
|
||||
System.out.print(currentRoom.longDescription());
|
||||
System.out.println(currentRoom.exitString());
|
||||
|
||||
5
src/com/bayviewglen/zork/Items/Riddle.java
Normal file
5
src/com/bayviewglen/zork/Items/Riddle.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package com.bayviewglen.zork.Items;
|
||||
|
||||
public class Riddle {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user