Skip to content

andrew1k3/pathFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Path Finder Robot Visualiser

A visualiser for a path finding bot that solves this leetcode question.

Description

This program brings a visualisation to the 'depth first search' algorithm and how it can be applied to find all valid pathes.

  • A valid path is a path from start to finish that coverse EVERY square.

Preview

movie2-ezgif com-loop-count

Dependencies

  • Python 3.0.0+
  • MatPlotLib pip install matplotlib
  • Glob pip install glob
  • NumPy pip install numpy
  • ImageIO pip install imageio

How To Use

Go into /src/pathFinderBot.py and modify these variables at the bottom.

  • grid = Configure the grid for the bot to manuevere. (-1: Obstacle, 0: Nothing, 1: Robot, 2: Finish).
  • render = Enables rendering to the frames folder and tries to create a GIF of at movie.gif.
  • print = Enables printing to the console of recursive algorithm.

About

path finder algorithm and renderer for 'robot game'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages