madhudevaraj / FindPathsInAMaze

Given a complex maze, we find a path between two points and calculate this distance, in Prolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finding paths in a maze

Given a complex maze, we find a path between two points and calculate this distance, in Prolog.

Usage:

Load code included in repository:

Load solver:

| ?- consult(solveMaze.pl).

To test every possible path of the maze, run:

| ?- print_paths.

To check all the distances between every possible path on the maze, run:

| ?- print_distances.

Solutions will be written on the output.

About

Given a complex maze, we find a path between two points and calculate this distance, in Prolog


Languages

Language:Prolog 100.0%