enum Tiles
{
OPEN,
BLOCKED,
};
now, you need to assign the values to the map[][] array. then you just do: (im assuming you have map[y][x] and not map[x][y]
for(int y = 0; y < 10; y++){ for(int x = 0; x < 20; x++) { if(map[y][x] == BLOCKED) this tile is blocked; else if(map[y][x] == OPEN) this tile is open; }}
this will loop through each element of your map array and check its state. still a little confused on what your trying to do, but i hope this helps