Coder Social home page Coder Social logo

path-finding-heuristics's Introduction

Car-Path-finding

Description

This proyect is a simulation of a car that find the best path from the start to the end using differents heuristics.

Heuristics

How to use it

First of all we have to install the grafics library called sfml using this command sudo apt-get install libsfml-dev

Then to execute it you have to write make run and it will appear the menu of the program.

To run the program, open a terminal capable of compiling and executing C++ programs. This terminal must have as directory the folder where this file is located.

The program has a Makefile file, which has the commands "make" (to compile), "make clean" (to remove the compilation files) and "make run" (to run the program).

Once the program has started, a menu appears. You must choose by typing the number (This applies to all stages of execution that require you to choose an option within a menu to choose an option within a menu).

Generate environments

By file

To generate the environment by file, you must indicate the name of the file in .txt format file must be located in the same folder as this file, otherwise it will not be possible to open it. It will not be possible to open it. There are two files already made as examples ("ent1.txt" and "ent2.txt") but you can add and study as many as you want as long as they have the indicated format.

Randomly

In order to generate the environment with the random obstacles, the user will be asked to initialise the environment. Except for the dimensions of the environment, which can be entered as desired the numbers indicated in the options must be entered. Otherwise the question will be the question will be repeated until a valid option is given.

Manually

To generate the environment manually, it is done in a similar way to the automatic one. You will be asked for the dimensions and the heuristic function that you want to use, after indicating these options the environment will be opened with empty boxes for the user to enter them manually.

path-finding-heuristics's People

Contributors

lochdeve 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.