An openai-gym wrapper for pikachu-volleyball
Project description
Pikachu Volleyball
Pikachu Volleyball (対戦ぴかちゅ~ ビーチバレー編) is an old Windows game which was developed by "(C) SACHI SOFT / SAWAYAKAN Programmers" and "(C) Satoshi Takenouchi" in 1997.
This is an OpenAI gym environment of the game created by translating a reversed-engineered JavaScript version by gorisanson to python.
Installation
pip install gym-pikachu-volleyball
Environment
Observation
Currently the only way for an agent to observe the environment is by the position and velocity of the ball, player1, player2 represented in a tuple of size 12.
Action
Actions are defined by 3 numbers (xDirection, yDirection, powerHit)
- xDirection : Whether the player moves left or right or not. possible values: -1, 0, 1
- yDirection : Whether the player moves up or down or not. possible values: -1, 0, 1
- powerHit : Whether the player is power hitting. possible values 0, 1 (0 being False and 1 being True)
Rewards
1 if player2 (right player) wins and -1 if player2 loses. Reward is 0 while the game is running.
Done
The episode ends when the ball hits the ground.
Interactive
By running
python3 -m gym_pikachu_volleyball.scripts.interactive
You can play against the default AI. The game will end when a point is scored.
To record your game play, add --record
to the above command and you will get a file with
all the actions you did and the seed for the game.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gym_pikachu_volleyball-0.0.4.tar.gz
.
File metadata
- Download URL: gym_pikachu_volleyball-0.0.4.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4314a5bc8444d1347a10c7ba3263bdbe15e6c57fa62a2bfb3e3c9af47c0aa62 |
|
MD5 | 68586a786ecc1b6658a721facb907262 |
|
BLAKE2b-256 | dbbcb485e452829baed7f6cd7391e00c8092c0b3bab08221a6fd88d81c11b7bc |
File details
Details for the file gym_pikachu_volleyball-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: gym_pikachu_volleyball-0.0.4-py3-none-any.whl
- Upload date:
- Size: 59.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a798314b675a3b8a4373208d8216d0e04f03b96b5779b15b611f0c11eef67b6 |
|
MD5 | 41156c055f3ac31ac213b33279829e8b |
|
BLAKE2b-256 | cfabaa45e338a8f22150a4f53e76510e9acbc5913c019514ebb25f3e3c139725 |