I am working on a game in c++:
Set on a grid, a player tries to navigate to a certain cordinate while
an enemy, like a homing device, moves everytime the player does, ultimately trying to get the player. Now to get the AI to recognize the boundaries of the grid, my teacher told me to have the bot check its neighbors, or surroundings. I am not sure how to do this. Any help would be
greatly appreciated. Thanks.