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.
Just spin up a http server at the root of the repository and open the index file.
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
Many thanks to
- The processing foundation, especially the p5*js community.
- The Coding Train for the inspiration and the wonderful work of Daniel Shiffman
- Laurent Alvaro (BeTomorrow) for his introduction to neural networks (= the click in my understanding of neural networks)
No giraf nor pedestrian was hurt during this experiment