Skip to content

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

Notifications You must be signed in to change notification settings

DevonCrawford/A-Pathfinding-in-C-command-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published