No, seriously. This AI will get better than you. I extended this code and made this project! https://scratch.mit.edu/projects/950301375/ Press the green flag to start, and wait for your AI to learn how to play flappy bird, perfectly. Use turbo mode if you want Press k to kill all clones ...the world best is scary!! #ai #neural #artificial #inteligence #brain #zconcordan #popular #trending #all #games #tutorial #minchelcoder #flappybird
Thanks to @Minchelcoder for the code, which I have modified a bit (and plan to use!). The rest is me HOW? (simple neural network tutorial part) This is a very simple neural network. Each AI has a 4-neuron "brain". The first two brain cells are the inputs: there's the y position of the ai and the y position of the pipes in the game. These two inputs are multiplied by two different weights and added together. Then, neuron 3 adds a biased value. The result is the output - if the number is bigger than 50, flap! All of the weights and biases started out generated randomly. Wait, what? But how does the AI know where to go? I have no idea. It's natural selection! (The best AI gets to reproduce its brain with a little variation, called mutation.)