Help in gaming??Brute force??

Brute Force????

Say for instance i have an array surface of [40][40] and the base station for my car is situated at
the centre [19][19]. The car is able to move North,East,South and West. Some of the blocks of the surface have obstacles
and the car cannot move through them. The car can survey a maximum of 5 blocks at a time,after that it must come back
to the base station to recharge before is can survey again.
Can someone help me write a code that the car will use to survey as much surface as possible at the same time be
able to come back to the base to recharge?

thanking you in advance
Topic archived. No new replies allowed.