Skip to content

thanusiv/A.I-Dots

Repository files navigation

A.I Dots

Table of Contents

Overview

A.I Dots is a simulation where a population of dots have an objective to reach the blue goal and try to avoid any red obstacles that may be in the way. The dots evolve each generation through the use of the Genetic Algorithm. Try it out for yourself! Note: Cross-over was simply a clone of the parent's brain since the simulation is relatively simple.

Demo

How to Load Project

Clone the Github repository to a local directory. Create a virtual environment if wanted and use pip install -r requirements.txt to install all the required dependencies. Open and run the main.py file using an IDE or from the terminal.

Features

  • See how dots' movements evolve as they find their way around obstacles to reach the goal
  • Can add more obstacles to see how dots behave
  • Implemented the Genetic Algorithm from scratch (fitness calculation, natural selection, cross-over, mutation)
  • Use of OOP in Python can be used as template for future projects

Technologies Used

Acknowledgements

  • Thanks to Code Bullet for providing this idea and teaching me how to go about this!

About

Simulation of adapting dots using the Genetic Algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages