But if you want to get algorithmic about it, you could track how far away she is horizontally and vertically, as two numbers.
Pero si quieres utilizar algoritmos, podrías calcular cuán lejos está horizontal y verticalmente, con dos números.