Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,
I want to make a simple maze program.It will read a txt(txt contains 1 and 0)
if program reads 1 there will be wall,if program reads 0, there will be a door.
At the end program will show a way from enter to exit.(shortest way not necessary)

can you help me?(emergency)
Posted
Comments
[no name] 22-May-14 4:00am    
Do you want us to do this for you? Where are you having problem?
ferhatdenli 22-May-14 4:29am    
I'am new starter.So I don't know where to started.If you can do,I would be grateful.
It is for my study.

We don't do homework here. We will help, but we won't write your progam for you.
Ok, let’s break it down into smaller pieces.

Use the StreamReader class to retreive the data from your text file: Read from text file.[^]
Put the 1s and 0s into an array (line by line): Convert string to char array.[^]
Iterate through the arrays: Iterating through an array.[^]
Solve the maze using shortest path: Maze Solver (shortest path finder)[^]

As with any program, it is a series of smaller problems that need to be solved assembled into a larger structure. Learning to put them together in the right order or location in the program flow is a very, very important part of programming. You need to learn this skill or you will not become a good programmer.

Now get going, you have little time.
 
Share this answer
 
Comments
[no name] 22-May-14 9:10am    
+5
ferhatdenli 22-May-14 9:58am    
Thanks for response.
[no name] 22-May-14 11:11am    
You should send this comment to S Houghtelin :) ...and I think also accept such a helpful answer.
Yes, we could help you. However you should start coding yourself and ask here just specific questions.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900