How is a search performed?

Hello everyone, I am new to this language, I would like you to help me or guide me to develop a search or identification model.
The problem is that a robot is in a room that can be divided into NxN locate an object, where X are the attempts and Y is the solution.

Please help me

While you can ask these type of homework questions here, do not expect an answer here.

To get started learning Prolog please use one of the free introduction books. :slightly_smiling_face:


Just now in checking some facts created for the London Tube in Prolog this was listed in a Google search.

The solution to the problem is not at all language specific. If you have a working algorithm you can present it, show how you attempted to implement it in Prolog, and ask for advice on how to improve it or maybe say what is blocking your progress.