Flappybirdlearning

Use deep learning to auto play flappy bird
Alternatives To Flappybirdlearning
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Seq2seq Couplet5,447
3 months ago8agpl-3.0Python
Play couplet with seq2seq model. 用深度学习对对联。
Deep Pink705
6 years ago9Python
Deep Pink is a chess AI that learns to play chess using deep learning.
Reversi Alpha Zero634
a year ago28mitPython
Reversi reinforcement learning by AlphaGo Zero methods.
Ddpg Keras Torcs595
6 years ago54Python
Using Keras and Deep Deterministic Policy Gradient to play TORCS
Chinesechess Alphazero542
3 years ago7gpl-3.0Python
Implement AlphaZero/AlphaGo Zero methods on Chinese chess.
Aigames484
a year ago1mitPython
use AI to play some games.
Dpir405
6 months ago15mitPython
Plug-and-Play Image Restoration with Deep Denoiser Prior (IEEE TPAMI 2021) (PyTorch)
Game Bot199
2 years ago16apache-2.0Python
Artificial intelligence learn playing any game with watching you.
Alphatoe162
6 years ago1mitPython
Applying the deep learning techniques from Alpha Go to play tic-tac-toe
Deepqnetwork162
7 years agoLua
A modification of Google's Deep Q-Network to learn to play Super Mario Bros.
Alternatives To Flappybirdlearning
Select To Compare


Alternative Project Comparisons
Readme

FlappyBirdLearning

Join the chat at https://gitter.im/gcaaa31928/FlappyBirdLearning

Build Status Coverage Status

此為利用機器學習的方式自動學習flappy bird的專案,而學習方法則是用Q Learning

部份參考至http://sarvagyavaish.github.io/FlappyBirdRL/

Get started

npm install
bower install

Game Framework

利用Phaser.js製作出flappy bird遊戲,如下圖

(參考至 http://www.lessmilk.com/tutorial/flappy-bird-phaser-1)

Q Learning

重點在於這一個公式

而一開始利用這個公式訓練時碰到了一些困難

當只使用這兩個狀態空間時,也就是QState是一個二維的空間

造成在低點的障礙物無法得知離地面或是離天空的距離而常常超出邊界

所以我加上了一個狀態空間,為到天空的距離

但這又引發了別的問題,當我一般的速度通過磚塊時,理論上會以這個方式行動

紅點的位置會慢慢訓練成不按的情況下Q Value會比按的情況下高

但在這個情況時 由於下降的速度太快,導致於Q Value訓練成必須要按下之後才能避免撞到磚塊

也因為這兩個狀態沒辦法收斂到正確的位置,而收斂到了其他的位置

所以我們必須再加一個狀態空間為速度這個空間

基本上這樣就可以完成練習了

Authors and Contributors

@gcaaa31928

Support or Contact

有任何意見可以開issues或是pull request

Popular Play Framework Projects
Popular Deep Learning Projects
Popular Frameworks Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Deep Learning
Deep
Play
Game Framework
Flappy Bird