A C++17 solver for multi-agent path finding (MAPF) on grid maps: every agent must reach its goal without two agents ever occupying the same cell or swapping places along the same edge.
Built as a semester project for BI-ZUM Fundamentals of Artificial Intelligence at the Faculty of Information Technology, Czech Technical University in Prague (summer 2022/23).
- Conflict-based search (CBS): a high-level search over a constraint tree, ordered by total cost, adds a constraint whenever two agents' paths collide (vertex or edge conflicts).
- Low-level search: per-agent A* in space–time that respects the constraints of the current node.
- Visualisation: the solution is animated step by step in the terminal.
The write-up (in Czech) is in Protokol.pdf, with its LaTeX source in report/.
cmake -B build && cmake --build build
./build/mapf examples/Map1 examples/Agents1A map file is a character grid (X wall, space free); an agents file has one line per agent: start_x start_y goal_x goal_y.