Skip to content

pifparfait/python-astar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-astar

simple implementation of the a-star algorithm in python

using it is quite obvious, see example provided in module.

Here is an example of what is basically does :


+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|##|           |                    |        |              |
+ #+  +--+--+  +  +--+--+  +--+  +--+  +--+  +  +--+--+--+  +
| #|  |     |     |     |     |           |  |     |     |  |
+ #+  +  +  +--+--+  +  +--+  +--+--+--+--+  +--+  +  +  +  +
| #   |  |     |     |  |  |        |           |  |  |  |  |
+ #+--+  +  +--+  +--+  +  +  +--+--+  +--+--+  +  +--+  +  +
| #|     |  |     |  |  |     |     |        |  |  |     |  |
+ #+  +  +  +  +--+  +  +  +--+  +  +--+--+  +  +  +  +--+  +
| #|  |  |  |     |  |  |     |  |  |        |  |  |  |     |
+ #+--+  +--+--+  +  +  +--+--+  +  +  +--+--+  +  +  +  +  +
| ####|    ####|  |     |        |     |     |  |     |  |  |
+--+ #+--+ #+ #+  +  +--+  +--+--+--+--+  +  +--+--+  +  +  +
|  | ####| #| #|  |        |              |        |  |  |  |
+  +--+ #+ #+ #+  +--+--+  +  +--+--+--+--+--+  +--+  +  +--+
| ####| ####| #|     |     |        |  |        |     |     |
+ #+ #+--+--+ #+--+  +--+--+--+--+  +  +  +--+--+  +--+--+  +
| #| ####   | ### |              |  |  |        |     |     |
+ #+--+ #+--+--+# +--+--+--+  +  +  +  +--+--+  +--+  +  +--+
| ####| ######### |        |  |  |  |        |     |  |  |  |
+--+ #+--+--+--+--+--+--+  +  +--+  +--+--+  +--+  +  +  +  +
|  | ################## |  |                 |     |  |     |
+  +--+--+--+--+--+--+# +  +--+--+--+--+--+--+  +  +  +--+--+
|           | #######|#       |        |        |  |  |     |
+  +--+--+--+ #+--+ #+# +--+--+  +--+  +  +--+--+--+  +  +  +
|           | #|  | #|# |     |  |  |     |        |  |  |  |
+  +--+--+  + #+  + #+# +  +  +  +  +--+  +  +--+  +  +--+  +
|  |     |  | #|  | ### |  |     |        |  |     |  |     |
+  +--+  +  + #+  +--+--+  +--+--+--+--+--+  +  +--+  +  +--+
|     |  |  | #| ###### |                    |        |     |
+--+  +  +  + #+ #+--+# +--+--+--+--+--+--+--+--+--+--+  +  +
|  |  |  |  | #| #| ### |    ##########|    ####|        |  |
+  +  +  +  + #+ #+ #+--+  + #+--+--+ #+--+ #+ #+--+--+--+  +
|     |  |  | ####| ### |  | ###### | ####| #| #| ####|     |
+  +--+  +  +--+--+--+# +--+--+--+# +--+ #+ #+ #+ #+ #+  +--+
|  |     |        | ### | ######### |  | ####| ####| #|     |
+  +  +  +--+  +  + #+--+ #+--+--+--+  +--+--+--+--+ #+--+  +
|     |  |     |  | #######|        |              | ####|  |
+--+--+  +  +--+--+--+--+--+  +--+  +  +--+--+  +--+--+ #+  +
|        |                       |           |          ####|
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

enjoy -

About

simple implementation of the a-star algorithm in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%