I have defined a method to read any one of multiple maze files.
maze = []
def maze_reader
mz_file = File.open(“maze1.mz”)
while ! mz_file.eof?
line = mz_file.gets.chomp.split(" ")
maze << line
end
mz_file.close
Next I need to create a method to find specific letters in the maze, say
S for start and F for finish.
I have listened to tutorials; however, I have a learning problem that
often prevents me from memorizing spoken words, and the book I am using
does not appear to cover this yet.
Is there anyone who can point me in the right direction?