I\'m making use of collision detection code from Programmer\'s Ranch to learn more about making ASCII games and among the collision detection is this:
if (ne