id ask you to go through the whole thing if you wouldnt mind....
i cant really make sense of it...i will go through it slowly but it would help a great deal if you could possibly go through it and...
Type: Posts; User: jonnybgood
id ask you to go through the whole thing if you wouldnt mind....
i cant really make sense of it...i will go through it slowly but it would help a great deal if you could possibly go through it and...
i thought it would tell me whether there is a wall or not..
i thought it did the following
say maze[xstart][ystart] is 6
in binary this is 0 1 1 0
i want to & this with 1 0 0 0 (north wall)
then...
here is my whole prog so far... im sure you can see what it does...
can you tell me where i ma going wrong (probably everywhere)
#include<stdio.h>
int main(void)
{
int maze[10][10];
int...
no..it is
move to [start][ystart+1] (move in the south dircection)is it not????
sorry that last line is:
move to [start+1][ystart] (move in the south dircection)
ok..i have onyl been doing c for a week.. and not much.. this is really the first time i have sat down and started programming.
is the following right....
i think i should scan in my file using...
yeah i know.
right
im trying to & an array element with 0x8..it looks like this.
maze[xstart][ystart] & W_NORTH
it doesnt like it..
any help would be useful..
thnks
oh...i didnt explain that very well....
the only input i have is to give the program an input file. then after that the next thing the program shoudl do is output a string/array showing the quickest...
nope..
ive managed to fscanf it...and can printf the maze...so that is 1 step.
now i need to start implementing the & thing.
i have an array maze[i][j]. which contains the maze info...
how...
ok..not sure if i understand the whole unsigned char bit but i will have a look into it....
ok..im having great trouble actually scanning in the file that has the maze info.
the file would be a...
hardcode???
sorry i am a newbie to C...
could you exaplin your idea in a bit more detail plz?
thnks
Hi
this is not the first thread on this topic...the previous one can be found at
http://cboard.cprogramming.com/showthread.php?t=71922
i have now found a way to move around the maze but i have now...
ok cool..that makes perfect sense...
there is another problem that i have been trying to work out..
after i have worked out whether there is a wall in a certain coordinate how do i tell the program...
to answer your first question, yes 14 would mean north, west and south have walls.
Im not 100% sure on what exactly the code example you gave does. Could you possibly exaplin it in more detail...
Hi
I am a 4th year and have been given a project involving solving a maze (using C language). I have never done C before although i have done about 6 months of JAVA.
Any help to the following...