OmerZo / Self-Driving-Car

0 stars 1 forks source link

Self-Driving Car Project

Overview

This project is a self-driving car simulation implemented in JavaScript without any external libraries.

Learning

Basically the learning process happens by creating many different cars with different weights and baises randomly, and every time you save the best car "brain" and refresh the game, a new set of cars will be created based on the last "brain" you saved, with a defined percentage of similarity to this brain. In this way you can explore a vest field of random weights and baises at the same time to find the right parameters to avoid the obstacles.

Features

Usage

  1. Setup: Clone the repository to your local machine.
  2. Open: Open the index.html file in a web browser.
  3. Interaction:
    • Click on the ๐Ÿ’พ button once you find a successful car relative to others, to store the best-performing car's brain.
    • Click on the ๐Ÿ”‚ button to refresh the game with new cars based on the last saved brain.
    • Adjust the number of cars (๐Ÿš—) for each iteration as per your preference.
  4. Enjoy: Watch as the self-driving cars learn and adapt based on their performance.

Note

Credits