deformhead / Flappy

🎮 'flappy bird' game - ai example (with neural network and genetic algorithm)

Home Page:https://deformhead.github.io/Flappy/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License

Flappy

Flappy

Launch Flappy

This project is an implementation of a Flappy Bird game with machine learning and genetic algorithm.

Overview

The purpose of this project is understanding how a population of Birds with artificial intelligence would evolve playing a Flappy Bird game;

It uses an artificial neural network per Bird entity with a 4-4-1 shape like so :

  • 4 inputs
    • Bird y position
    • Bird y velocity
    • Pipe x position
    • Pipe y position
  • 4 hidden nodes
  • 1 output telling if Bird should jump

When an entire population dies, a genetic algorithm performs the selection of the best Bird entity, retrieve its artificial neural network, mutates it to create a new artificial intelligence for each new Bird of the next generation.

Launch Flappy


This game is built with the Theatre game framework generator (see : generator-theatre).

About

🎮 'flappy bird' game - ai example (with neural network and genetic algorithm)

https://deformhead.github.io/Flappy/index.html

License:MIT License


Languages

Language:JavaScript 100.0%