tars icon indicating copy to clipboard operation
tars copied to clipboard

Tesla Autopilot Racing Simuator

Tesla Autopilot Racing Simulator (TARS)

This is the code behind the slidedeck "How to learn neuroevolution by creating an autonomous car in your browser".

It's available in French on speakerdeck.

Getting started

Just spin up a http server at the root of the repository and open the index file.

What's inside

The folder structure follows the presentation. You will find animated examples inside each folder and you may explore the code behind.

  • What are Vectors ?
  • Vector addition
  • Draw a static car
  • Let's make the car move
  • Let's drive the car
  • Draw few walls
  • Let's fire few rays #HanShotFirst
  • How to find vectors intersection point ?
  • Ray casting in action
  • An autonomous but stupid car (but autonomous)
  • A whole population (of autonomous but stupid car but ...)
  • Roulette selection algorithm
  • Neuroevolution in action

Bonus

  • MarI/O code

Greetings

Many thanks to

Disclaimer

No giraf nor pedestrian was hurt during this experiment