2025-10-16 09:49:40 +02:00
2025-10-16 09:49:05 +02:00
2025-09-29 11:04:26 +02:00
2025-09-22 10:15:02 +02:00
2025-10-16 09:49:40 +02:00
2025-09-23 15:30:31 +02:00
2025-10-16 09:46:05 +02:00
2025-10-16 09:30:56 +02:00
2025-10-16 09:30:56 +02:00

Pathfinding demo

C++ pathfinding demo

Work in progress

This is a demo of pathfinding on a 2D grid. It consists of 2 main parts:

  • python notes and implementation
    • jupyter notebook file
    • standalone python script
  • C++ interactive demo

Python

Standalone script

Run python pathfinding_demo.py. Requires numpy and matplotlib to be installed.

Jupyter notebook

Contains the same demo as the standalone script and some notes. Since Github supports Jupyter Notebooks now, you can go directly to the file.

C++

Windows

Dependencies

  • vcpkg needs to be installed and VCPKG_ROOT set. See the installation instructions.
  • Visual Studio with Desktop development with C++ workload (or MSVC Build Tools)

Build - option 1: CLI

Run "Developer Command Prompt for VS 20xx":

cmake --preset=vcpkg
cmake --build build

Run the pathfinding.exe binary in the build folder.

Build - option 2: Visual Studio

TODO

Linux

Dependencies

  • SDL3
  • SDL3-image
  • GLEW

e.g. on Archlinux:

pacman -S glew sdl3 sdl3_image

Build

cmake
cmake --build build -j 16

Optionally you can also build the compilation database (TODO)

Run the pathfinding binary in the build folder.

Description
Python and C++ implementation of selected pathfinding algorithms
Readme 1.1 MiB
Languages
C++ 58.4%
Jupyter Notebook 31.5%
Python 6.8%
CMake 3.2%
Shell 0.1%