GithubHelp home page GithubHelp logo

path-finding-visualiser's Introduction

Path Finding Visualizer

Introduction

This is a software that visualizes how a computer finds the shortest path from the start position to the end position in a maze using various search algorithms. I built this software to implement the search algorithms I learnt from taking Harvard's CS50 AI course.

About

The visualizations were made with a simple tkinter canvas. The actual process of the finding the path were done with these search algoritms



How to use

Requirements

  • python 3.x

Image

It starts on an empty 30 by 50 maze.

  • The green box represents the start position. You can change it by clicking on it.

  • The red box represents the goal position. You can change it by clicking on it.

  • To draw obstacles click on an empty area anywhere on the maze, move mouse around to draw obstacles(represented by white) then click again to stop drawing.

  • To erase obstacles right click on an empty area anywhere on the maze, move mouse around to erase obstacles then click again to stop erasing.

  • You can specify the algorithm to use by changing the drop down list at the top.

  • Hit <spacebar> to start the path finding.

  • The pink boxes are the boxes that were explored when finding path and the yellow boxes trail is the path

  • After its done hit <backspace> to reset maze.

path-finding-visualiser's People

Contributors

demaxl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.