Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.59 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.59 KB

Demo

Video Description

About the Project

In this project, I developed a simple visualization game that allows the user to find the optimal route between a start and end destination, and set barriers that the path cannot cross. The program uses A* search the find the shortest route, and a Manhattan distance heuristic.

Menu Route-Finder In Action

Local Setup / Getting Started

  1. Clone the repository in your terminal:
https://github.com/allisonhongberkeley/shortest-route-finder.git
  1. Make sure you are in the path-visualizer directory. Then, install / create the virtual environment.
pip3 install virtualenv
python<version> -m venv env
  1. Activate the virtual environment.
source env/bin/activate
  1. To install all dependencies, run:
pip3 install -r requirements.txt
  1. To start the game, run:
python3 main.py

Usage

  • Click 'Play'. Follow the step-by-step instructions below to run the simulation.
  • First, set a starting point. To do so, hover over a point in the grid and click 's'. The start point will turn green.
  • Next, set an ending point. Hover over a different grid point and 'click 'e'. The end point will turn red .
  • (optional) Set barriers. Hover over any number of points and click 'b'. Barriers will turn black.
  • (optional) To reset a block, hover over it and click 'r'.
  • To run the route-finder, click 'p'.
  • To reset the entire board, click 'a'.