yenchenlin / DeepLearningFlappyBird

Flappy Bird hack using Deep Reinforcement Learning (Deep Q-learning).
MIT License
6.62k stars 2.04k forks source link

Setting the Difficulty Level of the Game #57

Open sahisnu opened 5 years ago

sahisnu commented 5 years ago

Hi,

Thanks for your nice code and documentation.

I saw the report from Kevin Chen where he experimented with three difficulty levels (easy, medium, hard) of the game. Can you please tell me which difficulty level the game is set in your code ? and How to change the difficulty level if I want to?

I guess, it's related to value of PIPEGAPSIZE in wrapped_flappy_bird.py.. currently it's set to 100. Is that hard mode? By Increasing or decreasing the PIPEGAPSIZE, can I change the difficulty level? If so, are there any specific value for those modes?

Thanks!

DZ9 commented 5 years ago

I have the same question. Does anybody have an idea of this?

sahisnu commented 5 years ago

set PIPEGAPSIZE... I think the default is- PIPEGAPSIZE = 100 as hard mode, 150 as medium and 200 as easy. However, you can set any value based on your preference...setting PIPEGAPSIZE < 100 would make it more harder.