Skip to content

pncsoares/self-driving-car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

42 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Self-driving Car

A self-driving car that uses neural networks and machine learning to move without colliding with other cars or objects.

Here is an example of the neural network passing with success all the cars on the road without colliding ๐Ÿ‘‡

neural network best brain

How to

Try

  1. Open the url: https://pncsoares.github.io/self-driving-car/src
  2. Watch the car driving like a Tesla but without colliding to other vehicles or walls ๐Ÿ˜†

Create better mutations

  1. Click the save button when you see a good car* so the next generation inherit it's brain and mutate to the next generations
  2. Refresh the tab
  3. Redo this steps as many as you want ๐Ÿ’ช

good car : the one that avoids more traffic and reaches the farthest distance

๐Ÿง  The more times you run, the better the AI becomes!

Checklist

  • Car driving mechanics
  • Road definition
  • Artificial sensors
  • Collision detection
  • Traffic simulation
  • Neural network
  • Visualizing neural networks
  • Parallelize AI
  • Save best car's brain
  • Genetic algorithm
  • Mutation

Technologies

Setup

Clone repository

Create and go to the directory where you want to place the repository

  cd my-directory

Clone the project

  git clone https://github.com/pncsoares/self-driving-car.git

Go to the project directory

  cd self-driving-car

Open in Visual Studio Code

  code .

License

MIT