This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Menu

By: a guest on Mar 23rd, 2013  |  syntax: Java  |  size: 0.79 KB  |  views: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package Game;
  2.  
  3. public class Menu {
  4.        
  5.         private Menu(){}
  6.        
  7.         public static final String startGamePattern = "[Ss]|[Ss]tart|start|[Ss]tart [Gg]ame";
  8.         public static final String quitGamePattern = "[Qq]|[Qq]uit|[Qq]uit [Gg]ame";
  9.         public static final String reportGamePattern = "[Rr]|[Rr]eport|[Ss]tatus [Rr]eport";
  10.         public static final String makeGuessPattern = "[Gg]|[Mm]|[Gg]uess|[Mm]ake [Gg]uess";
  11.        
  12.         // Super hacky, clean this up.
  13.         public static void welcomeMessage() {
  14.                 System.out.println("Guessing Game");
  15.                 System.out.println("-------------\n");
  16.         }
  17.        
  18.         public static void showCommands() {
  19.                 System.out.println("Commands:\n");
  20.                 System.out.println("(S)tart game");
  21.                 System.out.println("(Q)uit game");
  22.                 System.out.println("Status (R)port\n");
  23.                 System.out.println("Make (G)uess");
  24.         }      
  25. }
clone this paste RAW Paste Data