hi, I gotta robot i am working on programming, this robot can go F/B L/R U/D and plots its location, along with the obstacles it detects.

However I need help with an algorithm that can store the coordinates of obstacles... recall them, and calculate which the shortest distance is to take.

I am writing this in basic, but any assistance could help.

THNX!