SteeveDroz / drive-alone

Neural network about cars trying to drive without hitting walls

Home Page:https://steevedroz.github.io/drive-alone/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drive alone

Some time ago, I discovered a very nice video (obviously not from me) : Alt text for your video

I decided to retro-engineer that, without a glimpse at the source code. Also, I decided to do everything in vanilla Javascript, from scratch. That's right! No plugin, no framework, no Node.js.

What I did

Graphics

Displaying the cars, the track, the captors, etc. is a project in itself.

Neural network

A non-usual neural network, without any back propagation, but slight random modifications from a generation to the other.

Unit tests

Yeah, because when you do everything from scratch, you also do the unit tests from scratch. So there is also a fully functional unit test library included in this project.

More

A few things are also included, but I'll let you find out by looking in the source code 😉. The most important thing about this project is:

Nothing is perfect! I've been learning while doing it.

Collaborate

Please feel free to collaborate, I'll look at any pull request and consider any idea. As usual on my projects: newbies welcome.

About

Neural network about cars trying to drive without hitting walls

https://steevedroz.github.io/drive-alone/

License:MIT License


Languages

Language:JavaScript 85.3%Language:HTML 12.9%Language:CSS 1.8%