Skip to content
/ Star Public

Showcase for a random maze generator and A* algorithm

License

Notifications You must be signed in to change notification settings

bogdumi/Star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Star

star.c is an implementation of the A* pathfinding algorithm on a randomly generated maze. The maze is generated using a depth-first search algorithm. The maze is output to the console and uses '#' for walls, and '.' for the found path. The entrance is at the top left hand corner, the exit is at the bottom right hand corner and a path between the entrance and exit is guaranteed to exist. The height and width provided have to be odd.

Install

A Makefile is included in the repo with the necessary flags, and it will work on Windows, MacOS and any Linux distro, so just type make in the console in the folder with the huff.c source file.

Running

The program can be run with:

  • ./star for testing
  • ./star <height> <width> to generate a random maze
  • ./star <height> <width> Astar to generate and solve a maze

Resources used:

About

Showcase for a random maze generator and A* algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published