PathFindingCpp is a small project designed to explore and learn the fundamentals of pathfinding algorithms in C++ 23. This project demonstrates the basics of pathfinding through simple implementations of well-known algorithms.
- Algorithms: Gain insights into the inner workings of pathfinding with these algorithms:
- A* (A-Star): A heuristic-based algorithm for optimal pathfinding.
- Greedy Search: A faster, less memory-intensive algorithm with locally optimal choices.
Follow the steps below to build and run PathFindingCpp.
- CMake (version 3.16 or later recommended)
- C++ 23-compatible compiler
- MSVC (Microsoft Visual C++) or Mingw: Required for building this project. Ensure that your MSVC installation is up to date.
To build PathFindingCpp in Debug mode, follow these steps
- Configure the build:
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -H.
- Compile the project (replace 1 with the number of threads you want to use for a faster build)::
cmake --build build -j1
If you prefer, a prebuild binary is available:
- Location:
bin/PathFinding.exe
- MD5 Checksum: The folder also contains an md5sum file to verify the integrity of the binary.
Once built (or using the prebuilt binary), you can run PathFindingCpp as follows:
.\bin\PathFinding.exe --help
This command provides usage instructions and available command-line options.
- Fix too large height reported by
GetConsoleScreenBufferInfo