Skip to main content

A package to solve maze problem using A-star Algorithm.

Project description

Usage

To Install this package. Use :

  pip install pathsolver

To launch the application :

  from pathsolver import solve

  maze = [[0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 1, 1, 1, 1, 1, 0],
        [0, 1, 0, 0, 0, 0, 0, 0],
        [0, 0, 1, 0, 0, 0, 1, 0],
        [0, 0, 0, 0, 0, 0, 0, 0],
        [0, 0, 0, 0, 0, 0, 0, 0]]

  start = (5, 3)
  end = (2, 2)

  output, path = solve(maze, start, end)

Credits: Nicholas-Swift (https://gist.github.com/Nicholas-Swift/003e1932ef2804bebef2710527008f44)
Visit our GitHub Repository for more information: https://github.com/toshihiroryuu/PyPi--Package---pathsolver

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pathsolver-1.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

pathsolver-1.0.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page