Maze Solver

This is a simple maze solver written in C. You have to input data through a file named ‘in’. It has the following format.

Ax,Ay,Bx,By
[maze in 1s and 0s, 1s are for the walls 0s are for the path]

An example

0,0,5,4
000000011
011110000
011000010
111101110
000000111

Ax,Ay is the starting point
Bx,By is the ending point

And it'll print out how it solved the maze and what path to follow.

Download Source and Linux Binary

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s