And by adjacent, I only mean one unit left, right, up, or down. Diagonals don't count. You know the x,y grid coordinates of both positions.
Ultimately this is for AS3, but answers in pseudo code would be sufficient.
And by adjacent, I only mean one unit left, right, up, or down. Diagonals don't count. You know the x,y grid coordinates of both positions.
Ultimately this is for AS3, but answers in pseudo code would be sufficient.