M
Maeco
I need help solving mazes...
i have a maze description in a file.
First row x x (dimensions)
second x x (where start)
third x x (where to arrive)
.... x x x x x
.... x x x x x
x x x x x
...ecc
where each x form the third row represents an integer from one to 15
es: 5=0101 (N-W-S-E walls)
1 means wall in that direction
0 means no wall in that.
Now i have read the matrix from the file and stored in an Array [j].
1)How design it in stdout
2)How have a binary description of integer
3)iterations to do for finding the path from starting point to end
thanks
i have a maze description in a file.
First row x x (dimensions)
second x x (where start)
third x x (where to arrive)
.... x x x x x
.... x x x x x
x x x x x
...ecc
where each x form the third row represents an integer from one to 15
es: 5=0101 (N-W-S-E walls)
1 means wall in that direction
0 means no wall in that.
Now i have read the matrix from the file and stored in an Array [j].
1)How design it in stdout
2)How have a binary description of integer
3)iterations to do for finding the path from starting point to end
thanks