Skip to content

jodusan/jj-farm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An application of NEAT in flappy bird

FlappyBird played by NEAT. Every bird has its own ANN and a fitness score that is measured by distance/time passed. For each generation top 50% of population is preserved and possibly mutated while the rest is discarded. Mutations can change ANN of each bird in various ways.

jj-farm

Install

Windows: If you haven't already, you need to add javac to path like here

git clone https://github.com/dulex123/jj-farm
cd jj-farm
javac game/FlappyBird.java

Run

When running on Ubuntu there will be a little bit of tearing.

# Windows
java game.FlappyBird

# For much smoother experience on *nix run with opengl 
java -Dsun.java2d.opengl=true game.FlappyBird

Notes

  • It is not guaranteed that birds will evolve to play the game successfuly
  • If you are interested in NEAT take a look at these books:
    • "Handbook of Neuroevolution Through Erlang" - Gene I. Sher
    • "Ai Techniques For Game Programming" - Mat Buckland

Credits

Released under the MIT License.
Authored and maintained by Dušan Josipović & Nikola Jovičić.

Blog dulex123.github.io  ·  GitHub @dulex123  ·  Twitter @josipovicd

nikolajovicic.com ·  GitHub @killx94

About

Finest flying chicken in Town!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages