Skip to content

A simple program written in C to solve a user-inputted maze. Part of my course titled "Data Structures/Algorithms"

Notifications You must be signed in to change notification settings

NageshEranki/rat_maze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maze solver

C program that reads in a user defined maze, solves it using the stack data structure. Mazes are defined as a matrix of 1s and 0s; with 0s representing the walls and 1s representing the positions a rat could occupy.

Program assumes there is a valid solution to reach the bottom right corner, from any point of entry; behaviour is undefined if there is none.

Illustration

maze

Sample input

input

Known Failure modes

  1. No exit at bottom right corner
  2. No solution

About

A simple program written in C to solve a user-inputted maze. Part of my course titled "Data Structures/Algorithms"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages