项目作者: c0de4un

项目描述 :
Pathfinding 2D AI example. Based on A* (BFS, Wave, Width) algorithm.
高级语言: C++
项目地址: git://github.com/c0de4un/pathfinder_2d.git
创建时间: 2019-03-10T04:07:09Z
项目社区:https://github.com/c0de4un/pathfinder_2d

开源协议:MIT License

下载


pathfinder_2d

Pathfinding 2D AI example. Based on Lee-Wave algorithm (A*, BFS, Width).

How-To

1) Data loaded from file.
2) Map printed to the console-output as chars ;
3) path finding ;
4) if path not found, message printed, if it is founded, map with route printed. Each step of the route
have its own number (step-index). Available option is to find route with longest length ;

Requirements

Only C++ 11 with a few includes.
Map data stored in file, where also start & finish are set.

Tools

Made with VSCode C++.

Changes

[1.0]

  • wave-search using C++ vector ;

[1.1]

  • wave-search using C++ stack ;
  • OOP, Factory ;
  • search options (Shortes/Longest, Diagonal) ;
  • Colorizing console-output on Windows ;