made a riddle class

This commit is contained in:
Luca Carnegie
2019-05-27 22:54:35 -04:00
parent 0acb8bd223
commit 1d3188cb53
3 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
Enemy Name: HenryPellatt
Enemy Name: Henry_Pellatt
Description: The owner of the Castle
Starting Room: Circle Room
Damage Given: 25

View File

@@ -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());

View File

@@ -0,0 +1,5 @@
package com.bayviewglen.zork.Items;
public class Riddle {
}