Coder Social home page Coder Social logo

shayan-taheri / a-pathfinding-in-c-command-line Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devoncrawford/a-pathfinding-in-c-command-line

0.0 1.0 0.0 97 KB

Recreation of my A* pathfinding algorithm except this time in C! Instead of a graphics interface this is meant to run on the command line and analyze a maze given by a .txt file

License: MIT License

C 98.24% Objective-C 1.76%

a-pathfinding-in-c-command-line's Introduction

A* Pathfinding in C (command line)

Recreation of my A* pathfinding algorithm except this time in C! Instead of a graphics interface this is meant to run on the command line and analyze a maze given by a .txt file. '#' characters are walls, 'O' characters are open, 'S' is the start and 'G' is the end. You can make any maze which is rectangular and this program will create a new file in the same directory called "nameSolution.txt". I included two test mazes named "maze.txt" and "sampleMaze2.txt".

I also time the performance to show the efficiency of my algorithm :)

How to run:

  • open command line
  • go to directory of executable (cd)
  • Make sure the maze file is in the same directory as the executable
  • type "c-pathfinding maze.txt" to run and analyze "maze.txt" file
  • you may analyze any file by typing name of executable SPACE name of mazefile.txt (or directory + name)

capture

Note: If you try to run executable without command line, it will close automatically because no file argument is given

a project by Devon Crawford.

a-pathfinding-in-c-command-line's People

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.