Giter VIP home page Giter VIP logo

pathfinder's Introduction

PathFinder

Overview

PathFinder is an open-source application which I (Matthew Egan) have developed for the sole purpose of curiosity. The application is powered by Kivy, a Python GUI framework. The PathFinder Agent implements the A* search algorithm which, using a heuristic, will find the optimal path through some state space (in our case, a maze of 2 dimensional co-ordinates) from some starting state to a goal state.

Heuristics

The heuristic I have decided to use by default is the diagonal distance heuristic which will estimate the minimum amount of steps to the goal when allowed 8 directions of movement.

Running Pathfinder

To run PathFinder, simply clone the repository:

clone https://github.com/mattjegan/PathFinder

Install Kivy, and then run:

kivy PathFinder.py

Contribution

If you would like to contribute to PathFinder please make a pull request.

Customization

Permanent Customization

To customize PathFinder colours and value permanently, simply edit values in Settings.py.

Temporary Customization

It is possible to customize PathFinder from the command line. This is primarily for the case when a user wants to run multiple simulations of the PathFinder Agent with different constraints. Due to Kivy already parsing command line arguments we must interact with PathFinder through piped arguments:

echo '5 2000 300 50' | kivy PathFinder.py

The string is of the form CELL_SIZE NUM_OBSTACLES GRID_WIDTH GRID_HEIGHT

pathfinder's People

Stargazers

Andrea Fontalvo Echavez avatar Marc Rifkin avatar Vijeth avatar

Watchers

James Cloos avatar Matt Egan avatar  avatar Youssri Ahmed Hamdy AboElseod avatar

Forkers

norxn

pathfinder's Issues

Add feature to draw own map

Add a feature that is passed through echo '--map' | kivy PathFinder.py that allows a user to paint roughly on the map before pressing space to begin the search.

Agent and goal are still randomly placed.

Agent searches off the grid

The Agent is able to search off the grid and occasionally will take a path that leaves the window and enters somewhere else.

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.