Giter Site home page Giter Site logo

wildgenie / flappy_birds_genetic_evol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrm8488/flappy_birds_genetic_evol

0.0 2.0 0.0 106 KB

Simulation of Flappy Birds game using a simple neural network and genetic evolution strategy

License: MIT License

JavaScript 90.33% HTML 9.67%

flappy_birds_genetic_evol's Introduction

Flappy Birds with genetic algorithm ๐Ÿฃ ๐Ÿฅ ๐Ÿฆ

Simulation of Flappy Birds game using a simple neural network and genetic evolution strategy

screenshot

How does it work?

We create a large population of birds that try to fly over the pipes. When all of them have died (crashed against the pipes) we copy the brain of the bird that went further and create another generation with that brain and some mutation (changes). We repeat it over and over until we get one or several birds that do not crash against the pipes.

The brain of each bird is a simple neural network with 5 input nodes, one hidden layer with 8 nodes and the output layer with 2 nodes and softmax as activation function (jump or not to jump)

Go to live demo

Network diagram:

Network schema

flappy_birds_genetic_evol's People

Contributors

mrm8488 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.