talendar / flappy-bird-gym Goto Github PK
View Code? Open in Web Editor NEWAn OpenAI Gym environment for the Flappy Bird game
License: MIT License
An OpenAI Gym environment for the Flappy Bird game
License: MIT License
I want him to increase the reward by 10 after passing the pipe, so as to speed up the convergence. So how can I manually modify the rewards of the environment?
Hi,I'd like to know the limit of the reward that you can get in this game.
Is that limitless because it is a boundless game or there is a max reward like the finals?
If there is a limit,Please tell me the number.
Hi, would it be possible for flappy-bird-gym to be upgraded from gym to gymnasium? Gymnasium is the maintained version of openai gym and is compatible with current RL training libraries (rllib and tianshou have already migrated, and stable-baselines3 will soon).
This is currently listed in the gymnasium third party environments but we are cleaning the list up to only include maintained gymnasium-compatible repositories.
For information about upgrading and compatibility, see migration guide and gym compatibility.
Hey buddy. Firstly, congratulations on this project.
So, I had an issue with the human mode haha 😄
Lines 77 to 79 in d014428
PS C:\Users\trajano> flappy_bird_gym
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\programdata\anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\flappy_bird_gym.exe\__main__.py", line 7, in <module>
File "c:\programdata\anaconda3\lib\site-packages\flappy_bird_gym\cli.py", line 79, in main
flappy_bird_gym.original_game.main()
File "c:\programdata\anaconda3\lib\site-packages\flappy_bird_gym\original_game.py", line 70, in main
pygame.image.load(ASSETS_DIR + '/sprites/0.png').convert_alpha(),
FileNotFoundError: No such file or directory.
I noticed that the game hangs after a few seconds. Not sure if it happens on Linux or any other Python version, but I'm on Windows 11 with Python 3.10 and it happens every time.
After Googling it, I found out that adding the line pygame.event.get()
to renderer.py right before pygame.display.update()
inside update_display
fixes the issue.
The title says it all. To train more robust agents, it's usually preferable to use images from the game's screen rather than simple parameters about the game's state.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.