youd have summit like
for col = 1 to 3
for y=1 to 48
for x=1 to 48
if map(x,y)=col and map(x,y+1)=col and map(x,y+2)=col then whatever
next x
next y
for x=1 to 48
for y=1 to 48
if map(x,y)=col and map(x,y+1)=col and map(x,y+2)=col then whatever
next y
next x
for x=1 to 48
for y = 1 to 48
if map(x,y)=col and map(x+1,y+1)=col and map(x+2,y+2)=col then whatever
next y
next x
for x=1 to 48
for y = 50 to 2 step-1
if map(x,y)=col and map(x+1,y-1)=col and map(x+2,y-2)=col then whatever
next y
next x
for x=50 to 2 step-1
for y = 1 to 48
if map(x,y)=col and map(x-1,y+1)=col and map(x-2,y+2)=col then whatever
next y
next x
for x=50 to 2 step-1
for y = 50 to 2 step-1
if map(x,y)=col and map(x-1,y-1)=col and map(x-2,y-2)=col then whatever
next y
next x
next col
for diagnols.
i havnt tried this since im at collage, but it shuld work, though it may not be the best way, naybe there a better way involving vectors
[url=www.freewebs.com/tyhrfg][img]bruce.bmp[/img][/url]