간만에 숙제 한다고 집중 좀 했음!!
대충해서 마이너 버그가 있을거 같지만 5, 6번 한다고 시간 좀 썼네~
Download the 2 attached Java class definition files. The Grid class stores a rectangular map of rows and columns with an object to move inside the defined area. Use the JGrasp tool to build documentation to find out what methods are available to you in this Grid class. The GraphicGrid class uses a Grid object to display a Graphical window so you can see the results of your programming steps. There is no need to worry about any of the methods in the GraphicGrid class as you do not need to use any of them.
A Grid object has a maximum size of 22 rows by 36 columns. When you pass the row and column values when you create a Grid object, it creates a map of the size you specify.
The constructor method when passing two integer values to the Grid object includes a border on the outside of your map with 1 spot empty, or an exit from the Grid. The exit is in a random position each time you run a Grid program. It also places a mover object at a random position inside your map and the mover object is facing a random direction, NORTH, SOUTH, EAST or WEST.
You are to write a program that uses both a Grid object and a GraphicGrid object that:
1. Asks the user for the number of rows (Validate the value is between 3 and 22)
2. Asks the user for the number of columns (Validate the value is between 3 and 36)
3. Create the desired Grid object
4. Passes the Grid object to create a GraphicGrid object
5. Navigates through EVERY point in the Grid so that all dots disappear
6. Finds the exit and ends the program without falling off the Grid
Submit your source code for credit. I do not necessarily expect all of you to individually solve this logic puzzle, so step 5 and 6 may not be complete, but your code should compile and should have step 1-4 completed and then steps 5 & 6 to the best you can figure out.
To solve the logic, think of how you as a human would perform the steps using only the methods that are defined in the Grid class. The solution I am looking for will accomplish both tasks 5 & 6, but do not be concerned about retracing steps or trying to solve the problem in the fewest number of steps. Those types of solutions are for the algorithms class, not our beginning programming class.
java GridCreator

I believe the dots will somehow connect in my future.