Skip to content

Commit 8df6573

Browse files
Creating the repo
1 parent 1b19c33 commit 8df6573

35 files changed

+1193
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.

docs/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Pathfinfing Algorithms
2+
3+
This project provides simple implementations of several graph traversal and pathfinding algorithms in Python. The algorithms included are designed to find the shortest path between two points on a graph or grid.
4+
5+
Algorithms Implemented:
6+
1. Depth First Search (DFS)
7+
2. Dijkstra's Algorithm
8+
3. Bidirectional Search
9+
4. A* Algorithm
10+
5. Jump Point Search (JPS)
11+
6. Theta* Algorithm
12+
13+
Prerequisites
14+
Python 3.x
15+
Required libraries:
16+
pygame
17+
You can install the required libraries using the following command:
18+
pip install -r requirements.txt
19+
20+
Packaging the Project with PyInstaller
21+
To package this project into a standalone executable, you can use PyInstaller. Follow the instructions below to create the executable:
22+
pyinstaller --noconfirm --onefile --windowed --icon "C:\Users\muahm\Documents\Programming Projects\Python programs\Pathfinfing-Algorithms\src\assets\images\icon.ico" --name "Pathfinding Algorithms" --add-data "C:\Users\muahm\Documents\Programming Projects\Python programs\Pathfinfing-Algorithms\src;src/" --add-data "C:\Users\muahm\Documents\Programming Projects\Python programs\Pathfinfing-Algorithms\src\assets;assets/" --hidden-import "pygame" --hidden-import "qeue" "C:\Users\muahm\Documents\Programming Projects\Python programs\Pathfinfing-Algorithms\src\__main__.py"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pygame

src/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from modules.gui import main, WINDOW
2+
3+
if __name__ == "__main__":
4+
main(WINDOW)
621 Bytes
Binary file not shown.

src/assets/colors.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
''' a file that contains all the colors that will be used in the project. '''
2+
3+
WHITE = (255, 255, 255)
4+
BLACK = (0, 0, 0)
5+
GRAY = (128, 128, 128)
6+
RED = (255, 0, 0)
7+
GREEN = (0, 255, 0)
8+
BLUE = (0, 0, 255)
9+
YELLOW = (255, 255, 0)
10+
PURPLE = (128, 0, 128)
11+
ORANGE = (255, 165, 0)
12+
TURQUOISE = (64, 224, 208)

src/assets/images/icon.ico

34.8 KB
Binary file not shown.

src/assets/images/icon.png

35.2 KB
Loading

0 commit comments

Comments
 (0)