I am working on creating a game ai player that will move around and fight with other ai.
I am currently wondering how the best way to allow the ai to check the area around itself for objects to collide with and enemies without the use of Pygame and rects. (I could use pyglet though, if that has a similar rect functionality). All I care about understanding is how I should go about getting what is in the area around the ai.
Any recommendations would be amazing.