Worried about AI

Worried about AI

Ah hello, i am new here. please call me Rex. Nice to meet you.

I have not actually started any project, but i am already worried about how to make a good working AI, that does not get stuck to places,
know how to find path and also not very space consuming in its scripts?

If there is any mistake in my wording, i apologize. Regards.