[go: up one dir, main page]

Skip to content

Syedomershah99/rat-in-a-maze-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React - Rat in a maze visualization

Check out the link in the repository details to view the application

About the algorithm

The rat in a maze is a very famous algorithm where you have a rat at some position in a grid and this rat is supposed to get to a cheese block.

The algorithm uses backtracking to avoid paths that would not lead to the destination.

This algorithm is built in way that the rat can only make new moves in only down and right directions.

About the project

In this application, you can use various grid sizes and also adjust the visualization speed. You first set the grid size and set the visualization speed. After which you click on the boxes to add them as barriers for the rat. Then click on the start button to start the visualization.

Output

Here are some snapshots from the visualization:

1: Barriers set and algorithm to be started

maze before the algorithm starts


2: Halfway of the algorithm running

halfway snapshot of algorithm running


3: The end result

end result

About

Rat in a maze visualization using React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.3%
  • CSS 21.2%
  • HTML 6.5%