Implementing Backtracking Search and A* algorithm in SWI-PROLOG, for solving a maze-like task.
- Assignment submission for Artifical Intelligence course
Access a live version at https://swish.swi-prolog.org/p/AhmedNouralla.pl
- Run swipl
- Load the main Knowledge Base, i.e.,
['main.pl'].
- Query
test.
to generate a random map and run both algorithm for comparison- No need to reload the KB for generating a new map, just rewrite the query.
- Instructions for custom maps are included as comments in the file
['main.pl'].
- A - Actor
- C - Covid
- P - Protection (Mask/Doctor)
- H - Home
- + - Empty cell