Flappy Bird as a Farama Gymnasium environment.
Project description
Flappy Bird Env
Action Space | Discrete(2) |
Observation Shape | (800, 576, 3) |
Observation High | 255 |
Observation Low | 0 |
Import | import flappy_bird_env # noqa gymnasium.make("FlappyBird-v0") |
Description
Flappy Bird as a Farama Gymnasium environment.
You can play it by running
python -m flappy_bird_env
Press space
to flap the wings.
Action Space
Flappy Bird has the action space Discrete(2)
.
Value | Meaning |
---|---|
0 | NOOP |
1 | flap wings |
Observation Space
The observation will be the RGB image that is displayed to a human player with
observation space Box(low=0, high=255, shape=(800, 576, 3), dtype=np.uint8)
.
Rewards
You get +1
every time you pass a pipe, otherwise +0.001
for each frame where you
don't collide against the top and bottom bounds, or against a pipe.
Version History
- v0: initial version release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flappy-bird-env-0.1.4.tar.gz
(19.9 kB
view hashes)
Built Distribution
Close
Hashes for flappy_bird_env-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13dbfeedb508d373fd2d26db2c0f0b5a143c6e865b5daa14da7827e3de4aabda |
|
MD5 | d15b298e8f112bfcf51c14d23f93ae7b |
|
BLAKE2b-256 | e58b6b6e7db8d930f40c48978c36f1483bd8eeb3348fe7cd65d739d4debba23f |