@@ -0,0 +1,1829 @@
+package com.game.maze;%0A%0A/** Combine everything you've learned so far to write a very simple maze game.%0A *  (The maze is simple, not the program! Compare to Rogue and NetHack.)%0A *  Overview%0A *  Write a turn-based maze game.%0A *  The maze is a simple 12x8 rectangle with a single exit.(So it's really just a big room, not a maze.) %0A *  The player is represented by a single character on the screen.%0A *  The player starts at a random place somewhere in the maze-room, and the %0A *  exit is at some random location on the right/east side of the maze-room.%0A *  Each turn, print the current map of the maze-room and ask the user which direction they want to move.%0A *  The game ends when the player reaches the exit. Print some congratulatory message and end the program.%0A *  %0A *  Requirements%0A *  Drawing the map. The map must be the requested size, but which characters you use for the player, %0A *  exit, and floor are up to you (as long as each is different). Here is what the maze might look %0A *  like on the screen using '*' for the player, '=' for the exit, and '.' for the room floor.%0A *  %0A *  @author vilpesh%0A */%0Apublic class MazeError %7B%0A%09%0A%09public static final int NO_ERROR = 0;%0A%09public static final int ERROR = 1;%0A%09%0A%09protected int isValidInput(String inData) %7B%0A%09%09if (inData != null) %7B%0A%09%09%09if (inData.length() == 0) %7B%0A%09%09%09%09System.out.println(%22Enter a valid Character !!%22);%0A%09%09%09%7D else if (inData.length() %3E 1) %7B%0A%09%09%09%09System.out.println(%22Enter only 1 Character !!%22);%0A%09%09%09%7D else %7B%0A%09%09%09%09if(inData.equals(MazeMain.SYMBOL_UP) %7C%7C inData.equals(MazeMain.SYMBOL_DOWN) %7C%7C inData.equals(MazeMain.SYMBOL_LEFT) %7C%7C inData.equals(MazeMain.SYMBOL_RIGHT)) %7B%0A%09%09%09%09%09%09System.out.println(%22Valid input %22 + inData);%0A%09%09%09%09%09%09return MazeError.NO_ERROR;%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09System.out.println(%22InValid input %22 + inData);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return MazeError.ERROR;%0A%09%7D%0A%7D%0A

Create MazeError.java