GitXplorerGitXplorer
s

A-star

public
34 stars
12 forks
1 issues

Commits

List of commits on branch master.
Unverified
19651b0b933371c0c3fcd29be0ae6192850355cf

Updated the image assets.

ssumimakito committed 7 years ago
Unverified
966cb1301db4b6adda122c51933f89d142aeef7b

Issue #1

ssumimakito committed 7 years ago
Unverified
fdc9769e3a301a37a1ca3cd5559a914714c7cc3f

Fixed a typo

ssumimakito committed 8 years ago
Unverified
2d2647c3d5986e6e370a809eb518a409f19c32b5

Minor modifications

ssumimakito committed 8 years ago
Unverified
e62e04a6b922b778ef071a95b68e100217ae002d

Removed useless table headers

ssumimakito committed 8 years ago
Unverified
5f03efe1ab1a20292851d48082da2d894f7139e1

Removed incorrect inline attrs

ssumimakito committed 8 years ago

README

The README file for this repository.

A-star

A* pathfinding algorithm (a.k.a. A* search algorithm) written in C++

This is an widely used pathfinding and searching algorithm; learn more about A* at Wikipedia.

OpenCV is not necessarily required, provided that you have found another way to convert input images into arrays which have the same format used in the example.

Since there might still be some problems in my implementation, so please feel free to give me any advice!

Map samples

Map 50px 1 Map 50px 2 Map 50px 3
Map 50px 1 Map 50px 2 Map 50px 3

Previews

DO NOT use images below as input images, they have been scaled up for better visual effect.

Input Output (Original) Output (Improved, see #1)
Input Output Output
Input Output Output
Input Output Output

Special thanks

Thanks @HjalteBested for pointing out the problem and giving me some useful advice on how to improve the algorithm in the issue #1.

License

Beloved MIT

MIT License

Copyright (c) 2017 Makito Sumi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.