Michael Burris

Greenhorn
+ Follow
since Oct 15, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Burris

Thanks for all the great help. Seems that book has what I need to finish the project. Much appreciated for all the insight.
10 years ago
I haven't learned about Map/HashMap yet, but thanks for the suggestion anyway. I was curious if you could help me with the class that actually solves the maze though. I've gotten part of it written, I'm just having issues with having the solver look at the places around it's current location to see if it is the finish or not. I don't expect you to help me because I know you're not obligated to, but it would be appreciated if you could. Here is the code I have so far for the solver:



The MazeSquare is the same as the enum Square from the previous class, I just changed it because it was causing confusion the other way.
10 years ago
I changed a few things around and now it is printing out all of the elements in the maze, but they are all on one line. Here is my new code:



EDIT:

I got the code working properly thanks to your suggestions and a few from a friend. Thank you.
10 years ago
I have to write code that will solve a maze that has enumerated types and I have to have a class that will read in the maze, a class to solve the maze, and a class to display the solution. My problem is in the class that reads the maze. When I choose the file that it is supposed to read, it doesn't put out the file correctly. Here is what it's supposed to show:
7 4
#######
#...#o#
#*#...#
#######

But when I run my test it only returns this:

#.##

I was wondering if maybe I made a mistake in creating the enumerated type or elsewhere. Any help is appreciated. Here is the code that I have.

10 years ago