The Wayback Machine - https://web.archive.org/web/20200917221307/https://github.com/victorqribeiro/carGamePerceptron
Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
img
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Excuse me, would you let my Neural Network drive?

A Neural Network experiment involving a JavaScript game: can a perceptron drive a car?

Scrap

A live version of the code is hosted here

About

Not so long ago I published the simplest perceptron you'll ever see, code I wrote after a machine learning class, a while back. Ever since that I've been meaning to do something cool with it. So, browsing some more old codes I found a little game I made when I was studing fake 3D perspective, so I thought: can my perceptron play this game?

So I gave the game code a little brushing, wrote some more code to capture the data of me playing it (I played until I got a score of 33 points) and feed it to my neural net. After that I just played with the learning rate and iterations and let it play the game on it's own.

A Neuroevolution you say? Yes, I thought about that. I have a fully conected multilayer perceptron, that I'm about to realease, So I'm saving the ideia of evolving a neural net with genetic algorithm for that.

Quick reminder that the game is not fair. Sometimes two cars comes in parallel with each other, so not even a human could beat it.

Questions?

If you have any questions about the code or how I implemented it, or even how I got the data to feed the neural network (features), please feel free to contact me. (I left some comments on the code)

About

A Neural Network experiment involving a JavaScript game.

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.