Maze Solver Project by Neeru Rani

AttainU
AttainU

Maze Solver

About maze solver project :

In this project we build a python program that runs as a command-line tool.It should take the input and output file name as command-line arguments.Using the square matrix present in the input file it should generate a path to reach the end of the maze and put it in the output file.If the maze is unsolvable, it should return -1 as the only value in the output file.In the maze matrix, 0 means the block is a dead end and 1 means the block can be used in the path from source to destination.

Following are the import we use in this project:

  1. Defaultdict
  2. Sys
  3. Argparse

 

Run Command :

maze.py -i inputfile.txt -o outputfile.txt -s 0,0 -d 4,4 

when we don't give through inputfile and outfile in command it will take default value. s = source point d = dest point

Demo :