A genetic algorithm that teaches virtual bots to navigate through a maze πΊοΈ. Built with JavaScript, HTML/CSS, and designed to run directly in the browser.
π± The goal: evolve generations of bots to find the optimal path from start to finish while avoiding walls.
Soon on GitHub Pages!!!
- 𧬠Evolutionary algorithm (crossover + mutation)
- πΉοΈ Interactive maze creation
- π Shows generation-by-generation progress (soon)
- β‘ Runs entirely in-browser, no installation required
- Clone the repository
git clone https://github.com/PTurquetti/MazeSolver_GeneticAlgorithm.git
- Open
index.htmlin your browser - Build your maze, set start and end points, and run the algorithm!
Soon available on GitHub Pages π
- Vanilla JavaScript (ES6 modules)
- HTML5 & CSS3
- GitHub Pages for hosting
Each bot is represented as a binary sequence of movements. Over generations, they:
- Mutate to explore new paths
- Crossover to combine successful strategies
- Evolve to reach the goal
Pull requests are welcome! Feel free to suggest improvements or report issues.
If you like this project, leave a β on this project's GitHub and share it!
