So I have a game in which basically everything is a
square inside a big grid. It's easy to check if a
square is inside a box whose center is another square:
*** x
*o* --> x is not in o's
square
***
**x
*o* --> x IS in o's
square
***
This can be done by simply subtracting the coordinates of o and x, then taking the largest
…