Hello there, I am fairy new to C#, soo our teacher gave us homework to create a backtracking program in console to solve mazes. But really hate writing it by hand, soo I wanted to make a mze generator, but I cannot realize how make it do these things:
It will run in console
You will specify width and height
You will set filepath
Then you will press enter and you are done
It will write a height*width maze into a file, where 0 is empty space, 1 is a wall, 2 is a start and 3 is the end
This is NOT a homework, it is just to add some special features to it, and no, I will not show it to our teacher, because he want to explain everything, and I dont know how this program will be made.
I dont want it 100% recursive backtracking method, but I want to learn something on it too by myself.
Regards, DragonCz
Here is my code, it is in Czech language at the end, where it ends.
http://pastebin.com/At30CFf5
I know its not optimal or recursive, but works
You have to edit the path, too
It will run in console
You will specify width and height
You will set filepath
Then you will press enter and you are done
It will write a height*width maze into a file, where 0 is empty space, 1 is a wall, 2 is a start and 3 is the end
This is NOT a homework, it is just to add some special features to it, and no, I will not show it to our teacher, because he want to explain everything, and I dont know how this program will be made.
I dont want it 100% recursive backtracking method, but I want to learn something on it too by myself.
Regards, DragonCz
Here is my code, it is in Czech language at the end, where it ends.
http://pastebin.com/At30CFf5
I know its not optimal or recursive, but works
You have to edit the path, too
Last edited: