Flappybird Es Save

An AI agent Learning to play Flappy Bird using Evolution Strategies and deep learning models.

Project README

AI Learning to play Flappy Bird using Evolution Strategies

This AI agent uses Evolutional Strategies and deep learning models to master the Flappy Bird game.

Read Evolution Strategies as a Scalable Alternative to Reinforcement Learning from OpenAI if you are interested.

After a few hundred iterations, it masters the game.

demo

Dependencies

Usage

To see the agent playing the game:

from flappy import *

agent = Agent()

# the pre-trained weights are saved into 'weights.pkl' which you can use.
agent.load('weights.pkl')

# play one episode
agent.play(1)

To start training the agent:

# train for 100 iterations
agent.train(100)
Open Source Agenda is not affiliated with "Flappybird Es" Project. README Source: alirezamika/flappybird-es

Open Source Agenda Badge

Open Source Agenda Rating