synnkfps / simple-path-finder

simple path finder in python (fastest way from x to y)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO

Map:

  • Customizable
    • Walls/Blocks that the "player" cannot pass thru
    • Has a "x", which once touched, you finish it

Functionality:

  • Check each direction (up, down, left, right)
  • Select a random direction (with random module)
  • In "background", try each direction and alculate the distance from the "player" to the "x"
  • The direction that is "valid" (can pass) and is closest (to the "x") than the other ones gets selected
  • Loop it until it gets completed
  • Print the final path to the user

About

simple path finder in python (fastest way from x to y)

License:GNU General Public License v3.0


Languages

Language:Python 100.0%