This repository contains a project implementing a genetic algorithm aimed at leading dots to find a target. The algorithm evolves over time, optimising the paths of the dots to successfully reach the target.
FindTheTarget uses a genetic algorithm to simulate and visualise the process of dots finding a target. The project showcases evolutionary principles by progressively improving the dot paths through generations.
- Genetic Algorithm: Simulates the evolution of dot paths to find a target.
- Visualisation: Displays the movement and evolution of dots in real-time.
- Obstacles: Incorporates obstacles that dots must navigate around to reach the target.
- Performance Graph: Displays a graph showing the performance improvement over time.
- P5.js: JavaScript library for creating graphic and interactive experiences.
- HTML/CSS: Markup and styling for the interface.
- JavaScript: Core programming language for the algorithm and visualisation.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/jaydickson02/FindTheTarget.git
-
Navigate to the project directory:
cd FindTheTarget -
Open the
index.htmlfile in your web browser to view the simulation.
Simply open the index.html file in any modern web browser to see the genetic algorithm in action. No additional setup is required.
This project is licensed under the MIT License. See the LICENSE file for more details.