A small 2D simulation in which cars learn to drive by themselves.
A small 2D simulation in which cars learn to drive by themselves using a neural network and genetics algorithms.
Created by Gregman-js
Just visit and enjoy. gregman-js.github.io/Neural-Network-Car-Racing/
You don’t need to install libraries and others dependencies.
index.html
- default page with car simulationtrackgen.html
- create your own terrain json fileterrain.json
- JSON file with track vectors, if you want, replace with your tracklib/
- folder with librariessource/
- the hearth of simulation
Access following keys in simualtion:e
- stop simulations
- 100x generation proccessg
- force new generationq
- save best car to localStorager
- restore neural network from localStoragec
- turn on/off car collisions←↓→
- control your camera position with arraw keys+/-
- zoom in / out our camera