Amazing-Python-Scripts

Форк
0

README.md

Shortest Path Finder (GUI)

Shortest Path finder is a GUI application which finds the shortest possible path between two points placed by the user on the board. The shortest path is marked with "Purple" colour. The program also shows the area of the board tracked by the algorithm in "Red" colour to find the shortest path. The "Green" border represents the border of the area tracked. The user can create obstacles simply by clicking on the cell on the board which is represented by "Black" colour. The start point is marked with "Yellow" colour and the end point is marked with "Sky Blue" colour.

Setup instructions

In order to run this script, You just need the following modules:

  • Pygame: It is a set of Python modules designed for writing video games.
pip install pygame

Controls

  • Click on boxes to mark start(Yellow Coloured) and end point(Sky Blue Coloured).
  • Then make some obstacles(Black Coloured).
  • Then finally press "SPACE" to find the shortest path between the start and end point.
  • The shortest path is represented by "Purple

Screenshots

1. Marked Start and End Point.png
1. Marked Start and End Point

2. Made Obstacles.png
2. Made the Obstacles

3. Shortest Path marked in Purple by the Algorithm.png
3. Shortest Path marked in Purple by the Algorithm

Author

Vishal Patil

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.