r/iOSProgramming • u/_sroik_ • May 31 '20
Article Flappy Bird AI with 30 seconds of genetic learning and couple hours of development will beat anybody.
12
u/tommys234 May 31 '20
Why.... why stop at 998?
13
u/_sroik_ May 31 '20
It went for an hour without losing. You can run the project yourself and learn some ML basics
10
1
5
u/Rudy69 May 31 '20
The gates are too close to the last one. When you fast forward it looks more like a hallway than flappy bird
1
u/glowhunter Jun 01 '20
It might be that Flappy Bird is a very simple game and most of the human performance difference is due to variation in reflexes?
0
u/_sroik_ Jun 01 '20
With Q-learning you can build AI almost for every game (simple). I mean mario, some car racing games, etc. Pretty simple and powerful algorithm
0
u/Fellhuhn Jun 01 '20
Translating the game state into something the AI can understand is another difficulty. If the AI has access to the internal state it has a huge advantage. If it has to parse the generated image/screen as every human has to it then most games are still quite complex for AIs.
3
4
u/gormster May 31 '20
This game looks a million times easier than flappy bird. Virtually all the gates are directly in line with each other.
3
45
u/_sroik_ May 31 '20
In case someone interested in source code
https://github.com/sroik/flappy-bird