This is a web app I built for fun, using JavaScript and React, which animates depth-first search and breadth-first search algorithms as they act on a "graph" of pixels.
- Resize the grid to custom sizes
- Set a custom animation speed (in milliseconds per visit/pixel update)
- Select DFS or BFS algorithm to use to paint the pixels
- Enable or disable random neighbor selection (vs. a fixed order of neighbor directions)
- Highlights the current pixel that is being visited for easier visualization
- Install Node.js: https://nodejs.org/en
- Use Git to clone this repo
npm install
npm start
The last step will open a new browser tab pointed at localhost:3000
with the app running