Quote Originally Posted by jonnybgood
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 the result of this will be 0 0 0 0 which will tell ne that there isnt a wall at north so i can do something like move to maze[xstart][ystart+1] and do the loops again.

how would i go about the above
what I meant was...its not doing a damn thing. perhaps putting it in an if statement would get you the results..

Code:
if( whatever & 6 )
{
   // DO SOMETHING
}