I have a two dimensional grid, and need to test if any given point on the grid is connected to any side of the grid, through any other combination of points. Would a recursive function be the best way to do this? If so, how would I do that without ending up with infinite recursion?
If recursion isn't the best option, my other thought was some straight loops, but I'm getting tired of that crap.
Edit: Wrong forum. I meant to put this in "Other Scripting Languages", not "Other Web Development". Move please. :o