Git Product home page Git Product logo

shortest_path_astar's Introduction

Finds the shortest path between two points and drows the path on a given map image. Can also draw a path if given a set of destinations to visit on the way, with the shortest path taken between them. Takes elevation into consideration if an elevation file is provided.

Design decision: A pixel’s neighbors are 4 pixels that share an edge.

Each terrain type is represented by a unique color. Terrain penalties are as follows:

(248,148,18) : [4, "open land"],
(255,192,0): [5, "rough meadow"],
(255,255,255) : [6, "easy movement forest"],
(2,208,60) : [7, "slow run forest"],
(2,136,40) : [8, "walk forest"],
(5,73,24) : [15, "impassable vegetarian"],
(0,0,255) : [20, "lake/swamp/marsh"],
(71,51,3) : [2, "paved road"],
(0,0,0) : [3, "footpath"],
(205,0,101): [100, "out of bounds"]

Note that, the higher the number, the higher the penalty.

shortest_path_astar's People

Contributors

snehilsharma12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.