This project involved implementing an application to test and compare two pathfinding algorithms: BFS (Breadth-First Search) and D* Lite. The application was developed in C++ and Java, using Raylib for the graphical user interface in C++ and Swing in Java. The main objective was to evaluate the performance and memory usage of both languages.
- The application features a grid containing multiple cells.
- The user can select a start point (green colour) and a destination (yellow colour).
- Activated or deactivated by pressing CTRL. In this mode, the user can block (red colour) or unblock (light blue colour) cells.
- BFS: When pressing ENTER, the shortest path is calculated and coloured blue.
- D* Lite: When pressing SPACE, the shortest path is calculated and coloured blue.
- The application displays the performance and memory usage in the Terminal when the program is loaded and any pathfinding algorithm is executed.
- If no path is found between the start and destination, the application shows a message to the user indicating that no path can be found.
- Pressing ESC resets the grid to its initial state.